Continues work on new Event System

Ports and adds some more events, including dust, meteors, carp, etc.
Tweaks meteors, now has a 10 minute warning beforehand and meteors only approach from one direction now.
This commit is contained in:
Neerti
2017-01-29 19:32:20 -05:00
parent b50190d762
commit 9b9de138e6
12 changed files with 273 additions and 14 deletions
+14 -2
View File
@@ -24,7 +24,7 @@
for(var/datum/gm_action/action in available_actions)
if(action.enabled == FALSE)
continue
HTML += "[action.name] ([english_list(action.departments)]) (weight: [action.get_weight()])<br>"
HTML += "[action.name] ([english_list(action.departments)]) (weight: [action.get_weight()]) <a href='?src=\ref[action];force=1'>\[Force\]</a> <br>"
HTML += "<br>"
HTML += "All living mobs activity: [metric.assess_all_living_mobs()]%<br>"
@@ -77,4 +77,16 @@
adjust_danger(amount)
message_admins("GM danger was adjusted by [amount] by [usr.key].")
interact(usr) // To refresh the UI.
interact(usr) // To refresh the UI.
/datum/gm_action/Topic(href, href_list)
if(..())
return
if(!is_admin(usr))
message_admins("[usr] has attempted to force an event without being an admin.")
return
if(href_list["force"])
gm.run_action(src)
message_admins("GM event [name] was forced by [usr.key].")