[s] Adds a rare tips file to the tip of the day (#17988)

* Allows for rare meme tips

web editor pull, doesn't work by itself

* Injecting memes

* W H O O P S
This commit is contained in:
Incoming5643
2016-05-30 10:55:07 +12:00
committed by oranges
parent 0d608250fa
commit e1d600f847
2 changed files with 30 additions and 2 deletions
+5 -2
View File
@@ -450,9 +450,12 @@ var/datum/subsystem/ticker/ticker
/datum/subsystem/ticker/proc/send_random_tip()
var/list/randomtips = file2list("config/tips.txt")
if(randomtips.len)
var/list/memetips = file2list("config/sillytips.txt")
if(randomtips.len && prob(95))
world << "<font color='purple'><b>Tip of the round: </b>[html_encode(pick(randomtips))]</font>"
else if(memetips.len)
world << "<font color='purple'><b>Tip of the round: </b>[html_encode(pick(memetips))]</font>"
/datum/subsystem/ticker/proc/check_queue()
if(!queued_players.len || !config.hard_popcap)
return