From 984672c209848997f5f625886df38ef0ca90d710 Mon Sep 17 00:00:00 2001 From: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> Date: Sun, 16 Jun 2024 08:17:47 -0400 Subject: [PATCH] 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> --- code/modules/events/spacevine.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm index 8b6d4f1cad3..a04d7095846 100644 --- a/code/modules/events/spacevine.dm +++ b/code/modules/events/spacevine.dm @@ -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"