living

Vars | |
gnome_act_timer | hold an int that determines what the interval a gnome acts |
---|---|
gnome_move_range | how far the gnome should choose for teleportation purposes |
gnome_origin | original gnome spawn location, used as an emergency backup |
max_tries | sanity cap to prevent gnome spending too much time calculating possible teleport areas, it's theoretically possible to store the gnome in an impossible area so we need to check this |
pipe_mode | used for determining if a gnome is in the pipe network |
pipe_mode_chance | how likely are we to enter a pipe |
possible_mobs | list for keeping track of the mobs around us |
targetturf | list for keeping track of items in current gnome turf |
teleport_retries | how many failed teleports we've done |
Procs | |
do_flavor_actions | various flavor actions |
get_teleport_prereqs | validate that the turf we're attempting to teleport to is not dense in space etc |
gnome_act | root proc for handling gnome AI routines |
handle_ladders | targetturf stores our position at the start of routine in all. teleport_routine uses it as a baseline for determining where to find teleport locations also |
handle_pipe_mode | handles gnome transportation using pipes |
teleport_routine | handles gnome teleportation when not being observed by players |
Var Details
gnome_act_timer

hold an int that determines what the interval a gnome acts
gnome_move_range

how far the gnome should choose for teleportation purposes
gnome_origin

original gnome spawn location, used as an emergency backup
max_tries

sanity cap to prevent gnome spending too much time calculating possible teleport areas, it's theoretically possible to store the gnome in an impossible area so we need to check this
pipe_mode

used for determining if a gnome is in the pipe network
pipe_mode_chance

how likely are we to enter a pipe
possible_mobs

list for keeping track of the mobs around us
targetturf

list for keeping track of items in current gnome turf
teleport_retries

how many failed teleports we've done
Proc Details
do_flavor_actions
various flavor actions
get_teleport_prereqs
validate that the turf we're attempting to teleport to is not dense in space etc
gnome_act
root proc for handling gnome AI routines
handle_ladders
targetturf stores our position at the start of routine in all. teleport_routine uses it as a baseline for determining where to find teleport locations also
handle_pipe_mode
handles gnome transportation using pipes
teleport_routine
handles gnome teleportation when not being observed by players