mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Squish Runtime Bugs
This commit is contained in:
@@ -68,8 +68,6 @@ Class Procs:
|
|||||||
ASSERT(!air_master.has_valid_zone(T))
|
ASSERT(!air_master.has_valid_zone(T))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(!istype(T))
|
|
||||||
return
|
|
||||||
var/datum/gas_mixture/turf_air = T.return_air()
|
var/datum/gas_mixture/turf_air = T.return_air()
|
||||||
add_tile_air(turf_air)
|
add_tile_air(turf_air)
|
||||||
T.zone = src
|
T.zone = src
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
//
|
//
|
||||||
// VOREStation extensions to unit test framework.
|
// VOREStation extensions to unit test framework.
|
||||||
//
|
//
|
||||||
|
//CHOMPStation Edit 14/1/20 TFF - Bugger you, runtimes. Forces test mobs to spawn at these coords for unit checks.
|
||||||
/datum/unit_test
|
/datum/unit_test
|
||||||
var/static/default_mobloc = locate(133,122,2)
|
var/static/default_mobloc = locate(133,122,2)
|
||||||
|
|
||||||
/datum/unit_test/proc/create_test_mob(var/turf/mobloc = null, var/mobtype = /mob/living/carbon/human, var/with_mind = FALSE)
|
/datum/unit_test/proc/create_test_mob(var/turf/mobloc = null, var/mobtype = /mob/living/carbon/human, var/with_mind = FALSE)
|
||||||
world.log << "creating test mob"
|
|
||||||
if(isnull(mobloc))
|
if(isnull(mobloc))
|
||||||
if(!default_mobloc)
|
if(!default_mobloc)
|
||||||
for(var/turf/simulated/floor/tiled/T in world)
|
for(var/turf/simulated/floor/tiled/T in world)
|
||||||
@@ -20,9 +19,6 @@
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
var/mob/living/carbon/human/H = new mobtype(mobloc)
|
var/mob/living/carbon/human/H = new mobtype(mobloc)
|
||||||
world.log << "Mobloc X,Y,Z: [mobloc.x], [mobloc.y], [mobloc.z]"
|
|
||||||
world.log << "Mobloc air: [mobloc.air]"
|
|
||||||
world.log << "SSair: [SSair.state], [SSair.times_fired]"
|
|
||||||
|
|
||||||
if(with_mind)
|
if(with_mind)
|
||||||
H.mind_initialize("TestKey[rand(0,10000)]")
|
H.mind_initialize("TestKey[rand(0,10000)]")
|
||||||
|
|||||||
Reference in New Issue
Block a user