mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
Del The World: Unit testing for hard deletes (#59612)
Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
co-authored by
SteelSlayer
parent
0304206af3
commit
cd576ab519
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user