Merge pull request #11993 from Ghommie/Ghommie-cit704

porting CEV-Eris pickweight procs.
This commit is contained in:
Lin
2020-04-25 18:30:26 +00:00
committed by GitHub
6 changed files with 64 additions and 20 deletions
+1 -1
View File
@@ -483,7 +483,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/start/new_player)
if(!SSmapping.station_room_templates[t])
log_world("Station room spawner placed at ([T.x], [T.y], [T.z]) has invalid ruin name of \"[t]\" in its list")
templates -= t
template_name = pickweightAllowZero(templates)
template_name = pickweight(templates, 0)
if(!template_name)
GLOB.stationroom_landmarks -= src
qdel(src)