Skip to content

Commit

Permalink
[Balance] Small xenos ( larva, huggers ) has a smaller chance of bein…
Browse files Browse the repository at this point in the history
…g hit (#4365)

# About the pull request

Just a part of looking at projectile hit chances.

Noticed that while big xenos had a hit buff, that was it. Decided it
might be good for small ( only larva and huggers, lessers unaffected by
this change ) can get a slight nerf to their hit chance. Basically
opposite of the big hit chance increase.

# Explain why it's good for the game

Well, for small creatures, just a slgihtly better dodge.

Obviously, shouldn't change too much as -10% is a small buff. But should
feel a bit better than consistently dying to stray bullets without even
a chance considering huggers take 3 minutes to respawn.

</details>


# Changelog
:cl:
balance: Huggers and larvas are slightly harder to hit
code: Replace some w_class magic numbers with defines
/:cl:
  • Loading branch information
TeDGamer committed Sep 9, 2023
1 parent f816638 commit e02f93f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -677,13 +677,13 @@
var/hitchance = P.get_effective_accuracy()

switch(w_class) //smaller items are harder to hit
if(1)
if(SIZE_TINY)
hitchance -= 50
if(2)
if(SIZE_SMALL)
hitchance -= 30
if(3)
if(SIZE_MEDIUM)
hitchance -= 20
if(4)
if(SIZE_LARGE)
hitchance -= 10

#if DEBUG_HIT_CHANCE
Expand Down Expand Up @@ -756,7 +756,8 @@

. = P.get_effective_accuracy()

if(lying && stat) . += 15 //Bonus hit against unconscious people.
if(lying && stat)
. += 15 //Bonus hit against unconscious people.

if(isliving(P.firer))
var/mob/living/shooter_living = P.firer
Expand Down Expand Up @@ -799,7 +800,10 @@
if(X.hivenumber == hivenumber)
return FALSE

if(mob_size >= MOB_SIZE_BIG) . += 10
if(mob_size == MOB_SIZE_SMALL)
. -= 10
else if(mob_size >= MOB_SIZE_BIG)
. += 10
if(evasion > 0)
. -= evasion

Expand Down

0 comments on commit e02f93f

Please sign in to comment.