diff --git a/code/game/objects/items/food/pastries.dm b/code/game/objects/items/food/pastries.dm index cd7d4f5d71c..4dc69af48d3 100644 --- a/code/game/objects/items/food/pastries.dm +++ b/code/game/objects/items/food/pastries.dm @@ -135,7 +135,7 @@ name = "fortune cookie" desc = "A true prophecy in each cookie!" icon_state = "fortune_cookie" - trash_type = /obj/item/paper/paperslip + trash_type = /obj/item/paper/paperslip/fortune food_reagents = list(/datum/reagent/consumable/nutriment = 5) tastes = list("cookie" = 1) foodtypes = GRAIN | SUGAR @@ -152,11 +152,8 @@ return fortune // Otherwise, use a generic one - var/obj/item/paper/paperslip/fortune_slip = new trash_type(drop_location) - fortune_slip.name = "fortune slip" + var/obj/item/paper/paperslip/fortune/fortune_slip = new trash_type(drop_location) // if someone adds lottery tickets in the future, be sure to add random numbers to this - fortune_slip.default_raw_text = pick(GLOB.wisdoms) - return fortune_slip /obj/item/food/fortunecookie/make_leave_trash() diff --git a/code/modules/paperwork/paper_cutter.dm b/code/modules/paperwork/paper_cutter.dm index ab7c4b2b537..128abc48177 100644 --- a/code/modules/paperwork/paper_cutter.dm +++ b/code/modules/paperwork/paper_cutter.dm @@ -202,6 +202,13 @@ righthand_file = 'icons/mob/inhands/equipment/idcards_righthand.dmi' grind_results = list(/datum/reagent/cellulose = 1.5) //It's a normal paper sheet divided in 2. 3 divided by 2 equals 1.5, this way you can't magically dupe cellulose +/obj/item/paper/paperslip/fortune + name = "fortune slip" + +/obj/item/paper/paperslip/fortune/Initialize(mapload) + default_raw_text = pick(GLOB.wisdoms) + return ..() + /obj/item/paper/paperslip/corporate //More fancy and sturdy paper slip which is a "plastic card", used for things like spare ID safe code name = "corporate plastic card" desc = "A plastic card for confidential corporate matters. Can be written on with pen somehow."