MCPcopy Create free account
hub / github.com/NetHack/NetHack / sokoban_guilt

Function sokoban_guilt

src/trap.c:7038–7055  ·  view source on GitHub ↗

called when something has been done (breaking a boulder, for instance) which entails a luck penalty if performed on a sokoban level */

Source from the content-addressed store, hash-verified

7036/* called when something has been done (breaking a boulder, for instance)
7037 which entails a luck penalty if performed on a sokoban level */
7038void
7039sokoban_guilt(void)
7040{
7041 if (Sokoban) {
7042 u.uconduct.sokocheat++;
7043 change_luck(-1);
7044 /*
7045 * TODO:
7046 * Issue some feedback so that player can learn that whatever
7047 * he/she just did is a naughty thing to do in sokoban and
7048 * should probably be avoided in future....
7049 *
7050 * Caveat: doing this might introduce message sequencing
7051 * issues, depending upon feedback during the various actions
7052 * which trigger Sokoban luck penalties.
7053 */
7054 }
7055}
7056
7057/* called when a trap has been deleted or had its ttyp replaced */
7058staticfn void

Callers 6

dismount_steedFunction · 0.85
cannot_pushFunction · 0.85
moverock_coreFunction · 0.85
poly_objFunction · 0.85
fracture_rockFunction · 0.85
seffect_earthFunction · 0.85

Calls 1

change_luckFunction · 0.85

Tested by

no test coverage detected