diff --git a/code/_globalvars/lists/fortunes.dm b/code/_globalvars/lists/fortunes.dm new file mode 100644 index 00000000000..0ccf794d6b0 --- /dev/null +++ b/code/_globalvars/lists/fortunes.dm @@ -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.
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!") diff --git a/code/modules/food_and_drinks/food/snacks.dm b/code/modules/food_and_drinks/food/snacks.dm index c9885f9cf80..41275152a9c 100644 --- a/code/modules/food_and_drinks/food/snacks.dm +++ b/code/modules/food_and_drinks/food/snacks.dm @@ -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, "[F] falls out of [src]!") + user.put_in_hands(F) /obj/item/weapon/reagent_containers/food/snacks/badrecipe name = "Burned mess" diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 68d74d57a5d..446718986f2 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -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 = "

[fortunemessage]

" + info += "Lucky numbers: [rand(1,49)], [rand(1,49)], [rand(1,49)], [rand(1,49)], [rand(1,49)]" + +/obj/item/weapon/paper/fortune/update_icon() + ..() + icon_state = initial(icon_state) /* * Premade paper */ diff --git a/icons/obj/bureaucracy.dmi b/icons/obj/bureaucracy.dmi index 720fafd8847..8593012e528 100644 Binary files a/icons/obj/bureaucracy.dmi and b/icons/obj/bureaucracy.dmi differ diff --git a/paradise.dme b/paradise.dme index 56dc61e5140..ea3daa4b847 100644 --- a/paradise.dme +++ b/paradise.dme @@ -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"