Skip to content

Commit

Permalink
Lowers zombie infection chance when hit (BeeStation#10544)
Browse files Browse the repository at this point in the history
* infection chance

* Ratón fucked up

* Forgive my stupidity

* Document.

* Auto something idk
  • Loading branch information
JixS4v authored Jan 27, 2024
1 parent b14a343 commit e817423
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/zombie/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit e817423

Please sign in to comment.