6 return this.m_active(
this, actor);
9 void StatusEffects_tick(
entity actor)
11 FOREACH(StatusEffect, it.m_active(it, actor),
21 store = actor.statuseffects;
24 return store.statuseffect_time[this.
m_id];
30 this.m_apply(
this, actor, eff_time, eff_flags);
40 store.statuseffect_time[it.m_id] =
time +
this.statuseffect_time[it.m_id] - time_offset;
42 store.statuseffect_time[it.m_id] =
this.statuseffect_time[it.m_id];
43 store.statuseffect_flags[it.m_id] =
this.statuseffect_flags[it.m_id];
49 this.m_remove(
this, actor, removal_type);
52 void StatusEffects_removeall(
entity actor,
int removal_type)
54 if(!actor.statuseffects)
58 it.m_remove(it, actor, removal_type);
#define FOREACH(list, cond, body)