mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 04:21:42 +00:00
http://forums.nanotrasen.com/viewtopic.php?f=16&t=12245#p189186 Ported all the random events to Pete/Gia's event system: >Event system now supports weighting. default is 10. a weight of 5 is half as likely as default, 20 twice as likely....etc. >Increased the frequency of events (dust happens over 60% of the time though) >tidied up some ninja code: ninjas now get ~5 objectives. So they are hardmode. >made the gravity toggle into a random event >event system now supports round-start events >event system now supports holiday events >event system now supports events which can only happen after the round has lasted a certain number of ticks >event system now supports max_occurrences for events. Setting any event's max_occurrences to 0 will stop it randomly occurring >events now support being fed associative lists inside new(). This allows you to override their variables easily. >wormhole events no longer cause loads of lag. They are extremely deadly. wormholes should be avoided Other: >replaced the procs for fetching candidates for ninjas and aliums with /proc/get_candidates(be_special_flag), it returns a list of active clients with that be_special preference enabled. >minor fixes to minds >your memories are displayed to you at Login() >removed aliens_allowed >removed ninjas_allowed >pick_n_take() is now more efficient (uses Cut() rather than Remove() Things I added: - Made the pandemic call ..() instead of doing the checks itself. - Made the staff of animation use more charge. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5720 316c924e-a436-60f5-8080-3fe189b3f50e
82 lines
2.9 KiB
Plaintext
82 lines
2.9 KiB
Plaintext
//TODO: rewrite and standardise all controller datums to the datum/controller type
|
|
//TODO: allow all controllers to be deleted for clean restarts (see WIP master controller stuff) - MC done - lighting done
|
|
|
|
/client/proc/restart_controller(controller in list("Master","Failsafe","Lighting","Supply Shuttle"))
|
|
set category = "Debug"
|
|
set name = "Restart Controller"
|
|
set desc = "Restart one of the various periodic loop controllers for the game (be careful!)"
|
|
|
|
if(!holder) return
|
|
usr = null
|
|
src = null
|
|
switch(controller)
|
|
if("Master")
|
|
new /datum/controller/game_controller()
|
|
master_controller.process()
|
|
feedback_add_details("admin_verb","RMC")
|
|
if("Failsafe")
|
|
new /datum/controller/failsafe()
|
|
feedback_add_details("admin_verb","RFailsafe")
|
|
if("Lighting")
|
|
new /datum/controller/lighting()
|
|
lighting_controller.process()
|
|
feedback_add_details("admin_verb","RLighting")
|
|
if("Supply Shuttle")
|
|
supply_shuttle.process()
|
|
feedback_add_details("admin_verb","RSupply")
|
|
message_admins("Admin [key_name_admin(usr)] has restarted the [controller] controller.")
|
|
return
|
|
|
|
|
|
/client/proc/debug_controller(controller in list("Master","Failsafe","Ticker","Lighting","Air","Jobs","Sun","Radio","Supply Shuttle","Emergency Shuttle","Configuration","pAI", "Cameras", "Events"))
|
|
set category = "Debug"
|
|
set name = "Debug Controller"
|
|
set desc = "Debug the various periodic loop controllers for the game (be careful!)"
|
|
|
|
if(!holder) return
|
|
switch(controller)
|
|
if("Master")
|
|
debug_variables(master_controller)
|
|
feedback_add_details("admin_verb","DMC")
|
|
if("Failsafe")
|
|
debug_variables(Failsafe)
|
|
feedback_add_details("admin_verb","DFailsafe")
|
|
if("Ticker")
|
|
debug_variables(ticker)
|
|
feedback_add_details("admin_verb","DTicker")
|
|
if("Lighting")
|
|
debug_variables(lighting_controller)
|
|
feedback_add_details("admin_verb","DLighting")
|
|
if("Air")
|
|
debug_variables(air_master)
|
|
feedback_add_details("admin_verb","DAir")
|
|
if("Jobs")
|
|
debug_variables(job_master)
|
|
feedback_add_details("admin_verb","DJobs")
|
|
if("Sun")
|
|
debug_variables(sun)
|
|
feedback_add_details("admin_verb","DSun")
|
|
if("Radio")
|
|
debug_variables(radio_controller)
|
|
feedback_add_details("admin_verb","DRadio")
|
|
if("Supply Shuttle")
|
|
debug_variables(supply_shuttle)
|
|
feedback_add_details("admin_verb","DSupply")
|
|
if("Emergency Shuttle")
|
|
debug_variables(emergency_shuttle)
|
|
feedback_add_details("admin_verb","DEmergency")
|
|
if("Configuration")
|
|
debug_variables(config)
|
|
feedback_add_details("admin_verb","DConf")
|
|
if("pAI")
|
|
debug_variables(paiController)
|
|
feedback_add_details("admin_verb","DpAI")
|
|
if("Cameras")
|
|
debug_variables(cameranet)
|
|
feedback_add_details("admin_verb","DCameras")
|
|
if("Events")
|
|
debug_variables(events)
|
|
feedback_add_details("admin_verb","DEvents")
|
|
message_admins("Admin [key_name_admin(usr)] is debugging the [controller] controller.")
|
|
return
|