Skip to content

Commit

Permalink
Long worm segments have lower chance to be cut.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Dec 22, 2024
1 parent abd026b commit 52b2118
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/worm.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ cutworm(struct monst *worm, coordxy x, coordxy y,
return; /* hit on head */

/* cutting goes best with a cuttier weapon */
cut_chance = rnd(20); /* Normally 1-16 does not cut, 17-20 does, */
cut_chance = rnd(40); /* Normally 1-36 does not cut, 37-20 does, */
if (cuttier)
cut_chance += 10; /* with a blade 1- 6 does not cut, 7-20 does. */
cut_chance += 10; /* with a blade 1- 26 does not cut, 27-40 does. */

if (cut_chance < 17)
if (cut_chance < 37)
return; /* not good enough */

/* Find the segment that was attacked. */
Expand Down

0 comments on commit 52b2118

Please sign in to comment.