mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 04:01:41 +00:00
This tracks the seconds per tick of a subsystem, however note that it is not completely accurate, as subsystems can be delayed, however it's useful to have this number as a multiplier or ratio, so that if in future someone changes the subsystem wait time code correctly adjusts how fast it applies effects regexes used git grep --files-with-matches --name-only 'DT_PROB' | xargs -l sed -i 's/DT_PROB/SPT_PROB/g' git grep --files-with-matches --name-only 'delta_time' | xargs -l sed -i 's/delta_time/seconds_per_tick/g'
11 lines
462 B
Plaintext
11 lines
462 B
Plaintext
///used by cows
|
|
/datum/ai_planning_subtree/tip_reaction
|
|
|
|
/datum/ai_planning_subtree/tip_reaction/SelectBehaviors(datum/ai_controller/controller, seconds_per_tick)
|
|
. = ..()
|
|
var/tip_reacting = controller.blackboard[BB_BASIC_MOB_TIP_REACTING]
|
|
if(!tip_reacting)
|
|
return
|
|
controller.queue_behavior(/datum/ai_behavior/tipped_reaction, BB_BASIC_MOB_TIPPER, BB_BASIC_MOB_TIP_REACTING)
|
|
return SUBTREE_RETURN_FINISH_PLANNING //no point in trying, boy. you're TIPPED.
|