Committing Carn's patch from here: http://bit.ly/ww7gmD

Game Admins and Game Masters can now toggle random events from happening during a round, it is also an option in the config file.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3017 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
Superxpdude@gmail.com
2012-01-30 15:54:16 +00:00
parent 6b77009789
commit 298932e028
6 changed files with 33 additions and 9 deletions
+5 -1
View File
@@ -36,6 +36,7 @@
var/list/modes = list() // allowed modes
var/list/votable_modes = list() // votable modes
var/list/probabilities = list() // relative probability of each mode
var/allow_random_events = 0 // enables random events mid-round when set to 1
var/allow_ai = 1 // allow ai job
var/hostedby = null
var/respawn = 1
@@ -245,7 +246,10 @@
else
diary << "Incorrect probability configuration definition: [prob_name] [prob_value]."
if ("kick_inactive")
if("allow_random_events")
config.allow_random_events = 1
if("kick_inactive")
config.kick_inactive = 1
if("load_jobs_from_txt")