Add Station Goals

Still to-do:
* Remove old BSA computer.
* Add NanoUI interfaces for all goals.
* Test it.
This commit is contained in:
Markolie
2017-01-23 22:02:29 +01:00
parent 0c3813134e
commit a06c997629
26 changed files with 1050 additions and 52 deletions
+21
View File
@@ -3017,6 +3017,27 @@
error_viewer.showTo(usr, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"])
else
error_viewer.showTo(usr, null, href_list["viewruntime_linear"])
else if(href_list["add_station_goal"])
if(!check_rights(R_EVENT))
return
var/list/type_choices = typesof(/datum/station_goal)
var/picked = input("Choose goal type") in type_choices|null
if(!picked)
return
var/datum/station_goal/G = new picked()
if(picked == /datum/station_goal)
var/newname = input("Enter goal name:") as text|null
if(!newname)
return
G.name = newname
var/description = input("Enter centcom message contents:") as message|null
if(!description)
return
G.report_message = description
message_admins("[key_name_admin(usr)] created \"[G.name]\" station goal.")
ticker.mode.station_goals += G
modify_goals()
/proc/admin_jump_link(var/atom/target)
if(!target) return