called when something has been done (breaking a boulder, for instance) which entails a luck penalty if performed on a sokoban level */
| 7036 | /* called when something has been done (breaking a boulder, for instance) |
| 7037 | which entails a luck penalty if performed on a sokoban level */ |
| 7038 | void |
| 7039 | sokoban_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 */ |
| 7058 | staticfn void |
no test coverage detected