From a706c39d2cff29d0053dbd63dfdce6998d099ffe Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 25 Aug 2022 15:46:50 +0200 Subject: [PATCH] [MIRROR] Add wisdom text to fortune cookies [MDB IGNORE] (#15728) * Add wisdom text to fortune cookies (#69235) * Add wisdom text to fortune cookies Co-authored-by: Tim --- code/game/objects/items/food/pastries.dm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/food/pastries.dm b/code/game/objects/items/food/pastries.dm index 7f5e07fd58c..1e42b1f500c 100644 --- a/code/game/objects/items/food/pastries.dm +++ b/code/game/objects/items/food/pastries.dm @@ -116,7 +116,7 @@ name = "fortune cookie" desc = "A true prophecy in each cookie!" icon_state = "fortune_cookie" - trash_type = /obj/item/paper + trash_type = /obj/item/paperslip food_reagents = list(/datum/reagent/consumable/nutriment = 5) tastes = list("cookie" = 1) foodtypes = GRAIN | SUGAR @@ -131,9 +131,14 @@ if (fortune) fortune.forceMove(drop_location) return fortune - // Otherwise, make a blank page. - var/out_paper = new trash_type(drop_location) - return out_paper + + // Otherwise, use a generic one + var/obj/item/paperslip/fortune_slip = new trash_type(drop_location) + fortune_slip.name = "fortune slip" + // if someone adds lottery tickets in the future, be sure to add random numbers to this + fortune_slip.desc = pick(GLOB.wisdoms) + + return fortune_slip /obj/item/food/fortunecookie/MakeLeaveTrash() if(trash_type)