Lua: location-specific timers
Expose map-location specific timers to lua scripts. For example: nh.start_timer_at(x,y, "melt-ice", 10); Currently only available timer type is "melt-ice".
This commit is contained in:
@@ -39,6 +39,7 @@ enum timeout_types {
|
||||
NUM_TIME_FUNCS
|
||||
};
|
||||
|
||||
#define timer_is_pos(ttype) ((ttype) == MELT_ICE_AWAY)
|
||||
#define timer_is_obj(ttype) ((ttype) == ROT_ORGANIC \
|
||||
|| (ttype) == ROT_CORPSE \
|
||||
|| (ttype) == REVIVE_MON \
|
||||
|
||||
Reference in New Issue
Block a user