Track sokoban cheating (taking actions that incur a luck penalty). The pull request only reported the number of times (possibly zero) that the player broke nethack's sokoban rules when reporting the "you obtained the Sokoban prize" achievement, which is when the count is most meaningful, but this implements it as a full-fledged conduct instead. This way the #conduct command can be used after "creative nethacking" to check immediately whether an action has violated the Sokoban rules so a player willing to put in a bit of effort can eventually learn which actions have a negative impact. The new conduct is only shown during games where the character has entered the Sokoban branch, but once that has happened it gets shown no matter the location at the time of #conduct or end of game. Most of this wasn't in the pull request: expanding the Guidebook to give more information about sokoban and its conduct. Bump EDITLEVEL to invalidate to-be-3.7 save files because u.uconduct has been extended. Fixes #355
22 KiB
22 KiB