Merge pull request #6148 from Verkister/patch-22

Removes melee damage from snacks.
This commit is contained in:
Atermonera
2019-05-03 21:56:22 -04:00
committed by VirgoBot
parent 4bb7073630
commit ea2860eeb3
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
var/list/nutriment_desc = list("food" = 1)
center_of_mass = list("x"=16, "y"=16)
w_class = ITEMSIZE_SMALL
force = 1
force = 0
/obj/item/weapon/reagent_containers/food/snacks/Initialize()
. = ..()
+2
View File
@@ -62,6 +62,8 @@
update_desc()
if(reagents.total_volume > 0)
bitesize = 1+round(reagents.total_volume / 2, 1)
if(seed.get_trait(TRAIT_STINGS))
force = 1
/obj/item/weapon/reagent_containers/food/snacks/grown/proc/update_desc()
+3
View File
@@ -728,6 +728,9 @@
clr = get_trait(TRAIT_BIOLUM_COLOUR)
product.set_light(get_trait(TRAIT_BIOLUM), l_color = clr)
if(get_trait(TRAIT_STINGS))
product.force = 1
//Handle spawning in living, mobile products (like dionaea).
if(istype(product,/mob/living))
product.visible_message("<span class='notice'>The pod disgorges [product]!</span>")