Remove Sokoban luck penalties for things you can't cheat with

Jumping, Newton's 3rd Law hurtling, and throwing an iron ball:
attempting to do any of these in such a way that you would diagonally
pass between boulders/walls causes the Luck penalty. However, none of
these actually get you through the diagonal gap, thus they can't be used
to cheat and the penalty doesn't make sense.
This commit is contained in:
copperwater
2018-09-11 11:57:24 -04:00
committed by Patric Mueller
parent 5267a50c7e
commit 9e29b516de
4 changed files with 1 additions and 3 deletions

View File

@@ -106,6 +106,7 @@ default shk sell prompt to N (github #265)
teach non-mindless monsters about the Castle trapdoors (github #265)
always print a message when the hero teleports (github #265)
always print a message when the hero level teleports (github #265)
remove Sokoban luck penalties for actions you can't cheat with (github #260)
Code Cleanup and Reorganization

View File

@@ -1808,7 +1808,6 @@ int magic; /* 0=Physical, otherwise skill level */
* the effects of landing on the final position.
*/
teleds(cc.x, cc.y, FALSE);
sokoban_guilt();
nomul(-1);
g.multi_reason = "jumping around";
g.nomovemsg = "";

View File

@@ -967,7 +967,6 @@ xchar x, y;
newsym(u.ux0, u.uy0); /* clean up old position */
if (u.ux0 != u.ux || u.uy0 != u.uy) {
spoteffects(TRUE);
sokoban_guilt();
}
}
}

View File

@@ -842,7 +842,6 @@ boolean verbose;
You("%s in the opposite direction.", range > 1 ? "hurtle" : "float");
/* if we're in the midst of shooting multiple projectiles, stop */
endmultishot(TRUE);
sokoban_guilt();
uc.x = u.ux;
uc.y = u.uy;
/* this setting of cc is only correct if dx and dy are [-1,0,1] only */