mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #2718 from CHOMPStationBot/upstream-merge-11334
[MIRROR] Update vore space prot test
This commit is contained in:
@@ -91,9 +91,20 @@
|
||||
fail("[pred.vore_selected].nom_mob([prey]) did not put prey inside [pred]")
|
||||
return 1
|
||||
else
|
||||
var/turf/T = locate(/turf/space)
|
||||
// Get an empty space level instead of just picking a random space turf
|
||||
var/empty_z = using_map.get_empty_zlevel()
|
||||
if(!empty_z)
|
||||
fail("Unable to get empty z-level for vore space protection test!")
|
||||
return 1
|
||||
|
||||
// Away from map edges so they don't transit while we're testing
|
||||
var/mid_w = round(world.maxx*0.5)
|
||||
var/mid_h = round(world.maxy*0.5)
|
||||
|
||||
var/turf/T = locate(mid_w, mid_h, empty_z)
|
||||
|
||||
if(!T)
|
||||
fail("could not find a space turf for testing")
|
||||
fail("Unable to get turf for vore space protection test!")
|
||||
return 1
|
||||
else
|
||||
pred.forceMove(T)
|
||||
|
||||
Reference in New Issue
Block a user