[MIRROR] Conversion many Globals to Managed Globals (Part 1) (#10665)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-17 16:06:35 -07:00
committed by GitHub
parent 06f0821bcf
commit f7219329ca
235 changed files with 1263 additions and 1255 deletions

View File

@@ -297,7 +297,7 @@ var/global/list/Holiday = list() //Holidays are lists now, so we can have more t
message_admins(span_notice("DEBUG: Event: Egg spawned at [Egg.loc] ([Egg.x],[Egg.y],[Egg.z])"))*/
if("End of the World")
if(prob(eventchance)) GameOver()
if(prob(GLOB.eventchance)) GameOver()
if("Christmas","Christmas Eve")
if(prob(eventchance)) ChristmasEvent()
if(prob(GLOB.eventchance)) ChristmasEvent()

View File

@@ -1,6 +1,6 @@
/proc/GameOver()
if(!hadevent)
hadevent = 1
if(!GLOB.hadevent)
GLOB.hadevent = 1
message_admins("The apocalypse has begun! (this holiday event can be disabled by toggling events off within 60 seconds)")
spawn(600)
if(!CONFIG_GET(flag/allow_random_events)) return