[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 <timothymtorres@gmail.com>
This commit is contained in:
SkyratBot
2022-08-25 14:46:50 +01:00
committed by GitHub
co-authored by Tim
parent 9f0a93ba5a
commit a706c39d2c
+9 -4
View File
@@ -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)