mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-11 10:02:24 +00:00
Adds Fact of the Round (#29647)
* fact * percent change * fix * Update strings/facts.txt Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update strings/facts.txt Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update strings/facts.txt Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update strings/facts.txt Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update strings/facts.txt Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * feex * satisfactory * word change * mars * facts.txt * Update code/controllers/subsystem/SSticker.dm Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update code/controllers/subsystem/SSticker.dm Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * the * Update facts.txt Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update SSticker.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * n * Update strings/facts.txt Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update strings/facts.txt Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> * Update strings/facts.txt Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> --------- Signed-off-by: PopeDaveThe3th <80988376+PopeDaveThe3th@users.noreply.github.com> Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
@@ -43,6 +43,10 @@ SUBSYSTEM_DEF(ticker)
|
||||
var/tipped = FALSE
|
||||
/// What will be the tip of the round?
|
||||
var/selected_tip
|
||||
/// Did we broadcast the fact of the round yet?
|
||||
var/facted = FALSE
|
||||
/// What will be the fact of the round?
|
||||
var/selected_fact
|
||||
/// This is used for calculations for the statpanel
|
||||
var/pregame_timeleft
|
||||
/// If set to TRUE, the round will not restart on it's own
|
||||
@@ -104,6 +108,10 @@ SUBSYSTEM_DEF(ticker)
|
||||
send_tip_of_the_round()
|
||||
tipped = TRUE
|
||||
|
||||
if(pregame_timeleft <= 120 SECONDS && !facted)
|
||||
send_fact_of_the_round()
|
||||
facted = TRUE
|
||||
|
||||
if(pregame_timeleft <= 0 || force_start)
|
||||
current_state = GAME_STATE_SETTING_UP
|
||||
Master.SetRunLevel(RUNLEVEL_SETUP)
|
||||
@@ -553,6 +561,18 @@ SUBSYSTEM_DEF(ticker)
|
||||
if(m)
|
||||
to_chat(world, "<span class='purple'><b>Tip of the round: </b>[html_encode(m)]</span>")
|
||||
|
||||
/datum/controller/subsystem/ticker/proc/send_fact_of_the_round()
|
||||
var/factoid
|
||||
if(selected_fact)
|
||||
factoid = selected_fact
|
||||
else
|
||||
var/list/random_facts = file2list("strings/facts.txt")
|
||||
if(length(random_facts))
|
||||
factoid = pick(random_facts)
|
||||
|
||||
if(length(factoid))
|
||||
to_chat(world, "<span class='green'><b>Fact of the round: </b>[html_encode(factoid)]</span>")
|
||||
|
||||
/datum/controller/subsystem/ticker/proc/declare_completion()
|
||||
GLOB.nologevent = TRUE //end of round murder and shenanigans are legal; there's no need to jam up attack logs past this point.
|
||||
GLOB.disable_explosions = TRUE // that said, if people want to be """FUNNY""" and bomb at EORG, they can fuck themselves up
|
||||
|
||||
Reference in New Issue
Block a user