mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 14:47:50 +01:00
Merge pull request #3235 from CHOMPStation2/upstream-merge-11907
[MIRROR] Makes wallrot affect all station z-levels (but not dorms)
This commit is contained in:
@@ -7,10 +7,13 @@
|
||||
|
||||
// 100 attempts
|
||||
for(var/i=0, i<100, i++)
|
||||
var/turf/candidate = locate(rand(1, world.maxx), rand(1, world.maxy), 1)
|
||||
var/z_level = pick(using_map.station_levels)
|
||||
var/turf/candidate = locate(rand(1, world.maxx), rand(1, world.maxy), z_level)
|
||||
if(istype(candidate, /turf/simulated/wall))
|
||||
center = candidate
|
||||
return 1
|
||||
var/area/A = get_area(candidate)
|
||||
if(!A.forbid_events)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/datum/event/wallrot/announce()
|
||||
|
||||
Reference in New Issue
Block a user