From e8174234787d46aa4ddd9e1b79ddcdeb861c501e Mon Sep 17 00:00:00 2001 From: JixS4v <61665800+JixS4v@users.noreply.github.com> Date: Sat, 27 Jan 2024 15:05:13 +0100 Subject: [PATCH] Lowers zombie infection chance when hit (#10544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * infection chance * Ratón fucked up * Forgive my stupidity * Document. * Auto something idk --- code/modules/zombie/items.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/zombie/items.dm b/code/modules/zombie/items.dm index 602755735e9f0..0db298a77e73a 100644 --- a/code/modules/zombie/items.dm +++ b/code/modules/zombie/items.dm @@ -12,6 +12,8 @@ var/icon_right = "bloodhand_right" hitsound = 'sound/hallucinations/growl1.ogg' force = 21 // Just enough to break airlocks with melee attacks + /// Base infection chance of 80%, gets lowered with armour + var/base_infection_chance = 80 damtype = BRUTE /obj/item/zombie_hand/Initialize(mapload) @@ -37,7 +39,7 @@ var/flesh_wound = ran_zone(user.get_combat_bodyzone(target)) if(H.check_shields(src, 0)) return - if(prob(100-H.getarmor(flesh_wound, MELEE, armour_penetration))) + if(prob(base_infection_chance-H.getarmor(flesh_wound, MELEE, armour_penetration))) try_to_zombie_infect(target) else check_feast(target, user)