mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
* tgchat day zero changes * Update code/game/verbs/ooc.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
//TODO
|
|
// Admin button to override with your own
|
|
// Sabotage objective for tators
|
|
// Multiple goals with less impact but more department focused
|
|
|
|
/datum/station_goal
|
|
var/name = "Generic Goal"
|
|
var/weight = 1 //In case of multiple goals later.
|
|
var/required_crew = 10
|
|
var/list/gamemode_blacklist = list()
|
|
var/completed = FALSE
|
|
var/report_message = "Complete this goal."
|
|
|
|
/datum/station_goal/proc/send_report()
|
|
GLOB.minor_announcement.Announce("Priority Nanotrasen directive received. Project \"[name]\" details inbound.", "Incoming Priority Message", 'sound/AI/commandreport.ogg')
|
|
print_command_report(get_report(), "Nanotrasen Directive [pick(GLOB.phonetic_alphabet)] \Roman[rand(1,50)]", FALSE)
|
|
on_report()
|
|
|
|
/datum/station_goal/proc/on_report()
|
|
//Additional unlocks/changes go here
|
|
return
|
|
|
|
/datum/station_goal/proc/get_report()
|
|
return report_message
|
|
|
|
/datum/station_goal/proc/check_completion()
|
|
return completed
|
|
|
|
/datum/station_goal/proc/print_result()
|
|
if(check_completion())
|
|
to_chat(world, "<b>Station Goal</b>: [name]: <span class='greenannounce'>Completed!</span>")
|
|
else
|
|
to_chat(world, "<b>Station Goal</b>: [name]: <span class='boldannounceic'>Failed!</span>")
|
|
|
|
/datum/station_goal/Destroy()
|
|
SSticker.mode.station_goals -= src
|
|
. = ..()
|
|
|
|
/datum/station_goal/Topic(href, href_list)
|
|
..()
|
|
|
|
if(!check_rights(R_EVENT))
|
|
return
|
|
|
|
if(href_list["announce"])
|
|
on_report()
|
|
send_report()
|
|
else if(href_list["remove"])
|
|
qdel(src)
|