Skip to content

Commit

Permalink
remove magic numbers for defines
Browse files Browse the repository at this point in the history
  • Loading branch information
TeDGamer committed Sep 8, 2023
1 parent f183357 commit a49234f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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

0 comments on commit a49234f

Please sign in to comment.