Merge pull request #7145 from VOREStation/aro-randomfixes

Fix 2 minor issues
This commit is contained in:
Leshana
2020-04-08 19:26:14 -04:00
committed by GitHub
2 changed files with 9 additions and 5 deletions

View File

@@ -99,6 +99,9 @@ SUBSYSTEM_DEF(xenoarch)
if(isnull(M.artifact_find) && digsite != DIGSITE_GARDEN && digsite != DIGSITE_ANIMAL)
artifact_spawning_turfs.Add(archeo_turf)
//Larger maps will convince byond this is an infinite loop, so let go for a second
CHECK_TICK
//create artifact machinery
var/num_artifacts_spawn = rand(ARTIFACTSPAWNNUM_LOWER, ARTIFACTSPAWNNUM_UPPER)
while(artifact_spawning_turfs.len > num_artifacts_spawn)