mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
fix for customizable foods
names - no more meat, meat and egg sandwich sandwich sandwich type names - this would now be an egg and double meat triple decker sandwich commented sandwich.dm out. was almost duplicate code, but if a sandwich was being made with a shard or customizable food, it was making it a different object (/food/snacks/csandwich instead of food/snacks/customizable/sandwich), only thing it processed that the other didn't was if there was a shard in the food, which is now dealt with in customizable
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/*
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/breadslice/attackby(obj/item/W as obj, mob/user as mob)
|
||||
|
||||
if(istype(W,/obj/item/weapon/shard) || istype(W,/obj/item/weapon/reagent_containers/food/snacks))
|
||||
@@ -98,4 +100,5 @@
|
||||
if(H && shard && M == user) //This needs a check for feeding the food to other people, but that could be abusable.
|
||||
H << "\red You lacerate your mouth on a [shard.name] in the sandwich!"
|
||||
H.adjustBruteLoss(5) //TODO: Target head if human.
|
||||
..()
|
||||
..()
|
||||
*/
|
||||
Reference in New Issue
Block a user