mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[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:
committed by
GitHub
parent
06f0821bcf
commit
f7219329ca
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user