A basic version of starting character rerolling
This adds a "reroll" option that lets players reroll their character's attributes and starting inventory. Although I generally think doing this makes the game worse, a) some players are going to do it regardless and b) if a player is going for a challenge game, rather than to win, it may be required. So in the absence of an option like this, players repeatedly start and quit games instead, creating a large number of junk logfile entries and generally causing problems for other players on the same shared machine (because repeatedly reloading the game is very CPU-intensive). This should in theory be windowport-agnostic (although in practice it may not be). Tested on tty, X11 and curses; on tty and X11 it works fine (although X11 treats the change in attributes as something that needs a status highlight), on curses it is slightly jankier in terms of what other windows are drawn in the background (but still plays correctly and I suspect this is a pre-existing bug). To form a complete implementation, we will need to consider the following: - Should there be a delay on a) starting the game and/or b) rerolling? If so, what should it be (maybe configurable via sysconf?) - Should we take more steps to discourage players from rerolling? It would be bad if players see the option exists and turn it on just because it exists, or (worse) treat it as condoning the particular style of play. - Should we take steps to detect that players are rerolling manually and a) tell them to use the option instead, b) tell them that this is not an intended way to play (and may make the game less enjoyable and/or prevent them getting the practice they need to eventually win)? Breaks save and bones files.
This commit is contained in:
@@ -4556,6 +4556,16 @@ If \f(CRrace\fP is not specified, there is no default value;
|
||||
player will be prompted unless role forces a choice for race.
|
||||
Cannot be set with the \(oq\f(CRO\fP\(cq command.
|
||||
Persistent.
|
||||
.lp reroll
|
||||
Allows rerolling your character's starting inventory and attributes (default
|
||||
false). Persistent.
|
||||
.lp ""
|
||||
Note that rerolling your character is not a recommended way to play if aiming
|
||||
merely to win (a lucky start has a much smaller influence on whether or not
|
||||
you win the game than your actions later in the game). This option exists
|
||||
partly as an acknowledgement that some players will insist on doing so anyway,
|
||||
and partly because rerolling may be necessary for certain types of challenge
|
||||
games.
|
||||
.lp rest_on_space
|
||||
Make the space bar a synonym for the \(oq.\(cq (#wait) command (default off).
|
||||
Persistent.
|
||||
|
||||
Reference in New Issue
Block a user