mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Datumized Tips (#15348)
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
global_hud.holomap
|
||||
)
|
||||
|
||||
// Populate global list of tips by category
|
||||
populate_tip_list()
|
||||
|
||||
// Create robolimbs for chargen.
|
||||
populate_robolimb_list()
|
||||
|
||||
|
||||
@@ -41,8 +41,7 @@ var/datum/controller/subsystem/ticker/SSticker
|
||||
var/delay_end = 0 //if set to nonzero, the round will not restart on it's own
|
||||
|
||||
var/triai = 0 //Global holder for Triumvirate
|
||||
var/tipped = FALSE //Did we broadcast the tip of the day yet?
|
||||
var/selected_tip // What will be the tip of the day?
|
||||
var/tipped = FALSE //Did we broadcast the tip of the day yet?
|
||||
var/testmerges_printed = FALSE
|
||||
|
||||
var/round_end_announced = 0 // Spam Prevention. Announce round end only once.
|
||||
@@ -113,8 +112,6 @@ var/datum/controller/subsystem/ticker/SSticker
|
||||
delay_end = SSticker.delay_end
|
||||
|
||||
triai = SSticker.triai
|
||||
tipped = SSticker.tipped
|
||||
selected_tip = SSticker.selected_tip
|
||||
|
||||
round_end_announced = SSticker.round_end_announced
|
||||
|
||||
@@ -397,18 +394,17 @@ var/datum/controller/subsystem/ticker/SSticker
|
||||
if(NP.ready)
|
||||
update_ready_list(NP)
|
||||
|
||||
/datum/controller/subsystem/ticker/proc/send_tip_of_the_round()
|
||||
var/m
|
||||
if(selected_tip)
|
||||
m = selected_tip
|
||||
/datum/controller/subsystem/ticker/proc/send_tip_of_the_round(var/tip_override)
|
||||
var/message
|
||||
if(tip_override)
|
||||
message = tip_override
|
||||
else
|
||||
var/list/randomtips = file2list("config/tips.txt")
|
||||
if(randomtips.len)
|
||||
m = pick(randomtips)
|
||||
var/chosen_tip_category = pick(tips_by_category)
|
||||
var/datum/tip/tip_datum = tips_by_category[chosen_tip_category]
|
||||
message = pick(tip_datum.messages)
|
||||
|
||||
if(m)
|
||||
to_world("<span class='vote'><b>Tip of the round: \
|
||||
</b>[html_encode(m)]</span>")
|
||||
if(message)
|
||||
to_world(SPAN_VOTE(SPAN_BOLD("Tip of the round:") + " [html_encode(message)]"))
|
||||
|
||||
/datum/controller/subsystem/ticker/proc/print_testmerges()
|
||||
var/data = revdata.testmerge_overview()
|
||||
|
||||
Reference in New Issue
Block a user