porting CEV-Eris pickweight procs.

This commit is contained in:
Ghommie
2020-04-23 21:47:54 +02:00
parent debbd3edab
commit de531bd047
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)