mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Adds fortunes to fortune cookies
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
var/global/list/fortune_cookie_messages = list("A woman named [pick(first_names_female)] may have an opportunity for you.",
|
||||
"A man named [pick(first_names_male)] may have an opportunity for you.",
|
||||
"If you feel you are right, stand firmly by your convictions.",
|
||||
"A stranger is a friend you have not spoken to yet.",
|
||||
"Yesterday, you said tomorrow. Just do it!",
|
||||
"Luck always favours the prepared mind.",
|
||||
"Failure is the mother of success.",
|
||||
"A rolling stone gathers no moss.",
|
||||
"When life gives you lemons, make lemonade.",
|
||||
"You will inherit some money or a small piece of land.",
|
||||
"Happy news is on its way to you.",
|
||||
"You will live a long, happy life.",
|
||||
"When one door closes, another opens.",
|
||||
"Life is a canvas, and you are its painter.",
|
||||
"Failure to prepare is to prepare to fail.",
|
||||
"Beware the robot that thinks for itself.",
|
||||
"A foolish man listens to his heart.<br>A wise man listens to cookies.",
|
||||
"A chance meeting opens new doors to success and friendship.",
|
||||
"The greatest danger could be your stupidity.",
|
||||
"He who laughs at himself never runs out of things to laugh at.",
|
||||
"Help! I'm being held prisoner in a Nanotrasen bakery!")
|
||||
@@ -1054,6 +1054,15 @@
|
||||
icon_state = "fortune_cookie"
|
||||
filling_color = "#E8E79E"
|
||||
list_reagents = list("nutriment" = 3)
|
||||
var/obj/item/weapon/paper/fortune/F
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/fortunecookie/New()
|
||||
..()
|
||||
F = new /obj/item/weapon/paper/fortune(src)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/fortunecookie/Post_Consume(mob/living/carbon/human/user)
|
||||
to_chat(user, "<span class='notice'>[F] falls out of [src]!</span>")
|
||||
user.put_in_hands(F)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/badrecipe
|
||||
name = "Burned mess"
|
||||
|
||||
@@ -478,6 +478,21 @@
|
||||
/obj/item/weapon/paper/crumpled/bloody
|
||||
icon_state = "scrap_bloodied"
|
||||
|
||||
/obj/item/weapon/paper/fortune
|
||||
name = "fortune"
|
||||
icon_state = "slip"
|
||||
paper_height = 150
|
||||
var/fortunemessage
|
||||
|
||||
/obj/item/weapon/paper/fortune/New()
|
||||
..()
|
||||
var/fortunemessage = pick(fortune_cookie_messages)
|
||||
info = "<p style='text-align:center;font-family:[deffont];font-size:120%;font-weight:bold;'>[fortunemessage]</p>"
|
||||
info += "<span style='text-align:center;'><strong>Lucky numbers</strong>: [rand(1,49)], [rand(1,49)], [rand(1,49)], [rand(1,49)], [rand(1,49)]</span>"
|
||||
|
||||
/obj/item/weapon/paper/fortune/update_icon()
|
||||
..()
|
||||
icon_state = initial(icon_state)
|
||||
/*
|
||||
* Premade paper
|
||||
*/
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
+2
-1
@@ -100,6 +100,7 @@
|
||||
#include "code\_globalvars\station.dm"
|
||||
#include "code\_globalvars\unused.dm"
|
||||
#include "code\_globalvars\lists\flavor_misc.dm"
|
||||
#include "code\_globalvars\lists\fortunes.dm"
|
||||
#include "code\_globalvars\lists\misc.dm"
|
||||
#include "code\_globalvars\lists\mobs.dm"
|
||||
#include "code\_globalvars\lists\names.dm"
|
||||
@@ -206,8 +207,8 @@
|
||||
#include "code\controllers\ProcessScheduler\core\processScheduler.dm"
|
||||
#include "code\controllers\subsystem\air.dm"
|
||||
#include "code\controllers\subsystem\fires.dm"
|
||||
#include "code\controllers\subsystem\nightshift.dm"
|
||||
#include "code\controllers\subsystem\nanoui.dm"
|
||||
#include "code\controllers\subsystem\nightshift.dm"
|
||||
#include "code\controllers\subsystem\spacedrift.dm"
|
||||
#include "code\controllers\subsystem\sun.dm"
|
||||
#include "code\controllers\subsystem\throwing.dm"
|
||||
|
||||
Reference in New Issue
Block a user