Del The World: Unit testing for hard deletes (#59612)

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
LemonInTheDark
2021-08-15 21:09:26 -07:00
committed by GitHub
co-authored by SteelSlayer
parent 0304206af3
commit cd576ab519
91 changed files with 788 additions and 168 deletions
+6
View File
@@ -3,6 +3,7 @@
var/area/bound_area
var/turf/reset_turf
var/datum/movement_detector/move_tracker
var/moving = FALSE //Used to prevent infinite recursion if your reset turf places you somewhere on enter or something
/datum/component/areabound/Initialize()
if(!ismovable(parent))
@@ -18,7 +19,12 @@
if(!reset_turf || reset_turf.loc != bound_area)
stack_trace("Invalid areabound configuration") //qdel(src)
return
if(moving)
stack_trace("Moved during a reset move, giving up to prevent infinite recursion. Turf: [reset_turf.type] at [reset_turf.x], [reset_turf.y], [reset_turf.z]")
return
moving = TRUE
AM.forceMove(reset_turf)
moving = FALSE
/datum/component/areabound/Destroy(force, silent)
QDEL_NULL(move_tracker)
+2
View File
@@ -127,6 +127,8 @@
name = "nutrient sac"
/obj/item/udder/gutlunch/initial_conditions()
if(!udder_mob)
return
if(udder_mob.gender == FEMALE)
START_PROCESSING(SSobj, src)
RegisterSignal(udder_mob, COMSIG_HOSTILE_PRE_ATTACKINGTARGET, .proc/on_mob_attacking)