class_types.c

lima-1.0b5/lib/std/adversary/blows/class_types.c · 559 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>

inherit CLASS_EVENT_INFO;

nosave class event_info array queue = ({});

void add_event(object target, object weapon, mixed target_extra, mixed data)
{
   if(!stringp(data) && !arrayp(data))
      data = ({ weapon ? weapon->query_damage_type() : "blow", data });

   queue += ({ new(class event_info,
               target: target, weapon: weapon, data: data
#ifdef HEALTH_USES_LIMBS
               , target_extra: target_extra
#endif
            ) });
}

Site Stats

Snippets: 1791
Codebases: 571