April sync (#360)
* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
var/max_occurrences = 20 //The maximum number of times this event can occur (naturally), it can still be forced.
|
||||
//By setting this to 0 you can effectively disable an event.
|
||||
|
||||
var/holidayID = "" //string which should be in the SSevents.holidays list if you wish this event to be holiday-specific
|
||||
var/holidayID = "" //string which should be in the SSeventss.holidays list if you wish this event to be holiday-specific
|
||||
//anything with a (non-null) holidayID which does not match holiday, cannot run.
|
||||
var/wizardevent = 0
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
return FALSE
|
||||
if(earliest_start >= world.time)
|
||||
return FALSE
|
||||
if(wizardevent != SSevent.wizardmode)
|
||||
if(wizardevent != SSevents.wizardmode)
|
||||
return FALSE
|
||||
if(players_amt < min_players)
|
||||
return FALSE
|
||||
@@ -51,7 +51,7 @@
|
||||
return FALSE
|
||||
if(gamemode_whitelist.len && !(gamemode in gamemode_whitelist))
|
||||
return FALSE
|
||||
if(holidayID && (!SSevent.holidays || !SSevent.holidays[holidayID]))
|
||||
if(holidayID && (!SSevents.holidays || !SSevents.holidays[holidayID]))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
triggering = FALSE
|
||||
message_admins("[key_name_admin(usr)] cancelled event [name].")
|
||||
log_admin_private("[key_name(usr)] cancelled event [name].")
|
||||
feedback_add_details("admin_verb","CancelEvent: [typepath]")
|
||||
feedback_add_details("admin_verb","Cancel Event: [typepath]")
|
||||
|
||||
/datum/round_event_control/proc/runEvent(random)
|
||||
var/datum/round_event/E = new typepath()
|
||||
@@ -175,12 +175,12 @@
|
||||
//which should be the only place it's referenced.
|
||||
//Called when start(), announce() and end() has all been called.
|
||||
/datum/round_event/proc/kill()
|
||||
SSevent.running -= src
|
||||
SSevents.running -= src
|
||||
|
||||
|
||||
//Sets up the event then adds the event to the the list of running events
|
||||
/datum/round_event/New(my_processing = TRUE)
|
||||
setup()
|
||||
processing = my_processing
|
||||
SSevent.running += src
|
||||
SSevents.running += src
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user