Fix kebab. (#10173)

Adds rods and brains to the permissible list of items that can be inserted into a cooking container, so you can make the hardcoded kebabs and brain sammiches.

Also fixes a problem with the variable food code that would cause recursion and fail to give the output food a name.

(Tbqh you can technically make kebabs and sandwiches out of anything buuuuuut. Kebab.)
This commit is contained in:
FirinMaLazors
2020-10-06 08:25:08 -04:00
committed by GitHub
parent 5fee837a67
commit 16e026e71e
3 changed files with 8 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
return name
/obj/item/reagent_containers/food/snacks/variable/get_name_sans_prefix()
return jointext(splittext(get_name_sans_prefix(), " ") - prefix, " ")
return jointext(splittext(..(), " ") - prefix, " ")
/obj/item/reagent_containers/food/snacks/variable/proc/update_scale()
if (reagents && reagents.total_volume)

View File

@@ -12,7 +12,9 @@
/obj/item/reagent_containers/food/snacks,
/obj/item/holder,
/obj/item/paper,
/obj/item/flame/candle
/obj/item/flame/candle,
/obj/item/stack/rods,
/obj/item/organ/internal/brain
)
var/appliancetype // Bitfield, uses the same as appliances
w_class = ITEMSIZE_NORMAL