mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
[MIRROR] Fortune cookies now give you your fortune [MDB IGNORE] (#10650)
* Fortune cookies now give you your fortune (#63993) I have no idea when fortune cookies stopped doing this, but I am 100% certain they used to. * Fortune cookies now give you your fortune Co-authored-by: Ron <flavivs.clavdivs.jvlianvs@gmail.com>
This commit is contained in:
@@ -585,12 +585,29 @@
|
||||
name = "fortune cookie"
|
||||
desc = "A true prophecy in each cookie!"
|
||||
icon_state = "fortune_cookie"
|
||||
trash_type = /obj/item/paper
|
||||
food_reagents = list(/datum/reagent/consumable/nutriment = 5)
|
||||
tastes = list("cookie" = 1)
|
||||
foodtypes = GRAIN | SUGAR
|
||||
food_flags = FOOD_FINGER_FOOD
|
||||
w_class = WEIGHT_CLASS_SMALL
|
||||
|
||||
/obj/item/food/fortunecookie/proc/get_fortune()
|
||||
var/atom/drop_location = drop_location()
|
||||
|
||||
var/obj/item/paper/fortune = locate(/obj/item/paper) in src
|
||||
// If a fortune exists, use that.
|
||||
if (fortune)
|
||||
fortune.forceMove(drop_location)
|
||||
return fortune
|
||||
// Otherwise, make a blank page.
|
||||
var/out_paper = new trash_type(drop_location)
|
||||
return out_paper
|
||||
|
||||
/obj/item/food/fortunecookie/MakeLeaveTrash()
|
||||
if(trash_type)
|
||||
AddElement(/datum/element/food_trash, trash_type, food_flags, /obj/item/food/fortunecookie/proc/get_fortune)
|
||||
|
||||
/obj/item/food/poppypretzel
|
||||
name = "poppy pretzel"
|
||||
desc = "It's all twisted up!"
|
||||
|
||||
Reference in New Issue
Block a user