EvilHack icon indicating copy to clipboard operation
EvilHack copied to clipboard

Ogresmasher knocks back small monsters, the smaller the farther.

Open krmaxson opened this issue 3 years ago • 2 comments

This introduces code to let weapons knock back monsters a fixed distance or based on their size. It is only used by Ogresmasher. Ogresmasher will knock back tiny monsters 3 squares, small monsters 2, and medium monsters 1 square. There is no collateral effect when the knockback is blocked. Code in uhitm rather than artifact_hit to make it accessible for other potential uses. There is NO comparable code in mhitu for small player races so this is currently just player-to-monster.

krmaxson avatar Dec 13 '21 15:12 krmaxson

This is a really cool idea, I like it. Couple things:

  1. The knockback shouldn't happen with every single hit, but randomly, say every !rn2(5) or some other variable.
  2. This really needs to apply across the board (player vs monster, monster vs player, monster vs monster) just like other artifact special effects do.

k21971 avatar Dec 13 '21 21:12 k21971

I agree with both -- will revisit with another push. Thanks for looking!

krmaxson avatar Dec 13 '21 21:12 krmaxson