tigercat & falseincarnate code suggestions

This commit is contained in:
Citinited
2018-04-14 16:40:25 +01:00
parent e352741f2b
commit b66c700a63
4 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -1054,7 +1054,7 @@
icon_state = "fortune_cookie"
filling_color = "#E8E79E"
list_reagents = list("nutriment" = 3)
trash = /obj/item/weapon/paper
trash = /obj/item/weapon/paper/fortune
/obj/item/weapon/reagent_containers/food/snacks/badrecipe
name = "Burned mess"
@@ -181,12 +181,11 @@
/datum/recipe/oven/fortunecookie/make_food(obj/container)
var/obj/item/weapon/paper/P = locate() in container
P.loc = null //So we don't delete the paper while cooking the cookie
var/obj/item/weapon/reagent_containers/food/snacks/fortunecookie/being_cooked = ..()
if(P.info)
P.loc = being_cooked //Prevents the oven deleting our paper
if(P.info) //If there's anything written on the paper, just move it into the fortune cookie
P.forceMove(being_cooked) //Prevents the oven deleting our paper
being_cooked.trash = P //so the paper is left behind as trash without special-snowflake(TM Nodrak) code ~carn
else
being_cooked.trash = new /obj/item/weapon/paper/fortune(being_cooked)
return being_cooked
/datum/recipe/oven/pizzamargherita
+1 -1
View File
@@ -486,7 +486,7 @@
/obj/item/weapon/paper/fortune/New()
..()
var/fortunemessage = pick(fortune_cookie_messages)
var/fortunemessage = pick(GLOB.fortune_cookie_messages)
info = "<p style='text-align:center;font-family:[deffont];font-size:120%;font-weight:bold;'>[fortunemessage]</p>"
info += "<span style='text-align:center;'><strong>Lucky numbers</strong>: [rand(1,49)], [rand(1,49)], [rand(1,49)], [rand(1,49)], [rand(1,49)]</span>"