1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-27 07:52:25 +01:00

Nerf boulder damage

Now that the bugs that were reducing damage are gone, they have to be nerfed.

Boulders now have a 2/3 chance (up from 1/3) to knock to the side, greatly reducing chained spike damage.
Rolling boulder traps get less bonus damage.
This commit is contained in:
NeroOneTrueKing 2020-12-22 21:22:56 -06:00
parent d676fb1b9d
commit 9f3462a322

View file

@ -12830,7 +12830,7 @@ int vis; /* True if action is at all visible to the player */
} else if (trap){
/* some traps deal increased damage */
if (trap->ttyp == ROLLING_BOULDER_TRAP)
bonsdmg += d(2, level_difficulty()/3+1);
bonsdmg += d(2, level_difficulty()/3+1) - 5; /* can be negative at early depths */
if (trap->ttyp == ARROW_TRAP)
bonsdmg += d(2, level_difficulty()/4+1);
if (trap->ttyp == DART_TRAP)
@ -13957,8 +13957,8 @@ int vis; /* True if action is at all visible to the player */
impossible("hurtle with no direction");
}
/* boulders can knock to the side as well -- 1/3 chance to move out of the way, 2/3 to go straight back */
if (fired && weapon && is_boulder(weapon) && !rn2(2)) {
/* boulders can knock to the side as well -- 2/3 chance to move out of the way, 1/3 to go straight back and be struck again*/
if (fired && weapon && is_boulder(weapon)) {
int tx = dx, ty = dy;
dx = (tx&&!ty) ? tx : (!tx&&ty) ? rn2(3)-1 : tx*(!rn2(3));
dy = (ty&&!tx) ? ty : (!ty&&tx) ? rn2(3)-1 : ty*(!rn2(3));