Skip to content

Commit

Permalink
reduces the weirdness of RNG and also prevents sub1 damage. which is …
Browse files Browse the repository at this point in the history
…probably good?
  • Loading branch information
KoishiVibe committed Mar 28, 2024
1 parent 2a6f1d8 commit 99f3994
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -994,12 +994,13 @@

damage_result = armor_damage_reduction(GLOB.marine_ranged, damage, armor, P.ammo.penetration)

if(damage_result <= 5)
if(damage_result <= 20)
to_chat(src,SPAN_XENONOTICE("Your armor absorbs the force of [P]!"))
if(damage_result <= 3)
damage_result = 0
if(damage_result <= 10)
bullet_ping(P)
visible_message(SPAN_AVOIDHARM("[src]'s armor deflects [P]!"))
if(damage_result <= 1)
damage_result = 0
if(P.ammo.sound_armor) playsound(src, P.ammo.sound_armor, 50, 1)

if(P.ammo.debilitate && stat != DEAD && ( damage || ( ammo_flags & AMMO_IGNORE_RESIST) ) ) //They can't be dead and damage must be inflicted (or it's a xeno toxin).
Expand Down

0 comments on commit 99f3994

Please sign in to comment.