Fixes a kudzu runtime (#25911)

* Fixes a runtime and also makes it (very slightly) less dumb

* Update code/modules/events/spacevine.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com>

* Update code/modules/events/spacevine.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com>

---------

Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
BiancaWilkson
2024-06-16 12:17:47 +00:00
committed by GitHub
co-authored by DGamerL
parent 9ddfe201af
commit 984672c209
+4 -3
View File
@@ -306,10 +306,11 @@
holder.obj_integrity = holder.max_integrity
/datum/spacevine_mutation/woodening/on_hit(obj/structure/spacevine/holder, mob/living/hitter, obj/item/I, expected_damage)
. = expected_damage
if(!I)
return
if(!I.sharp)
. = expected_damage * 0.5
else
. = expected_damage
return expected_damage * 0.5
/datum/spacevine_mutation/flowering
name = "flowering"