types.c

lima-1.0b5/lib/std/classes/event_info/types.c · 320 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

#include <combat_modules.h>

class event_info
{
   object target;
#ifdef HEALTH_USES_LIMBS
   string target_extra;
#endif
   object weapon;
   mixed data;
}

int event_damage(class event_info evt)
{
   return evt->data[sizeof(evt->data) - 1];
}

Site Stats

Snippets: 1791
Codebases: 571