1 Treasury update can be lost on EOF and shutdown
3 Commands can accumulate cost in player->dolcost. status() charges the
4 accumulated cost. This is skipped when the command gets aborted by
5 the player signalling EOF, or by server shutdown, and after a quit
6 command. The latter is harmless, as quitting is always free.
8 EOF can happen when a command prompts for input.
10 shutdown can additionally happen when a command blocks on output. No
11 command that messes with dolcost blocks on output (all have C_MOD
14 Commands build bridge, build tower, designate, and improve prompt for
15 input after adding to dolcost. This can be abused to build bridges,
16 towers and infrastructures free of charge. It can also be abused to
17 designate sectors for free, but the stock game's sector types are all
20 Command scuttle prompts for input after subtracting from dolcost. A
21 player can lose payment for tradeships when the command gets aborted
22 by EOF or shutdown at the "Are you sure you want to scuttle" prompt.
24 Similarly, a player can lose the gains from sacking a capital, for
25 instance at the attack command's "move in" prompts.
27 Commands build ship, build plane, build land, build nuke, change,
28 collect, consider accept, convert, demobilize, harden, repay, shark,
29 upgrade, and work, are believed not to prompt after messing with
32 Already broken in BSD Empire 1.1.