Adding or removing a command to/from a test has unfortunate effects: * Before the previous commit: if the command consumes pseudorandom numbers, all subsequent users of pseudorandom numbers get different ones. This has always been a major headache. * Since the previous commit: all subsequent users of pseudorandom numbers get different ones whether the command consumes any or not. That's even worse. * If the command uses BTUs, subsequent prompts are changed. Not nearly as bad as the above, but still annoying. Create a new command __cmd to allow compensating for adding/removing commands for tests. Throw in the ability to compensate treasury changes for good measure. Three arguments: command count, BTU use, money use. Usage example: say you add a convert command to a test, and it uses 3 BTUs and $15. Then you compensate by adding "__cmd added 1 3 15" right after it. The command must not be available unless running_test_suite is on, of course. Make it require the new player command capability TESTING, and give that to all players when running_test_suite is on. The command is intentionally not documented in info. Switch running_test_suite off for info-test, to hide it (and any future TESTING commands) from info-test. Suppress the command counter increment for TESTING commands, so they can be used without upsetting pseudorandom numbers Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
53 lines
861 B
Text
53 lines
861 B
Text
__cmd added -1 -2 -101
|
|
__cmd added 1 2 101
|
|
xdump sect 0,0
|
|
break
|
|
expl c 0,0 1 uh
|
|
expl c 2,0 1 jh
|
|
expl c 2,0 1 uh
|
|
expl c 2,0 1 nh
|
|
expl c 2,0 1 bh
|
|
expl c 0,0 1 yh
|
|
expl c 0,0 1 gh
|
|
expl c 0,0 1 bh
|
|
desi * ?ne=- +
|
|
expl c 2,0 1 njh
|
|
expl c 2,0 1 nnh
|
|
expl c 2,0 1 bnh
|
|
expl c 0,0 1 bbh
|
|
expl c 0,0 1 yyh
|
|
expl c 0,0 1 yuh
|
|
expl c 0,0 1 bnh
|
|
expl c 2,0 1 yuh
|
|
expl c 2,0 1 uuh
|
|
expl c 2,0 1 juh
|
|
desi * ?ne=- +
|
|
expl c 2,0 1 nnnh
|
|
expl c 2,0 1 nnjh
|
|
expl c 2,0 1 njjh
|
|
expl c 2,0 1 uujh
|
|
expl c 0,0 1 bbnh
|
|
expl c 0,0 1 bnnh
|
|
expl c 0,0 1 yygh
|
|
expl c 0,0 1 yuuh
|
|
desi * ?ne=- +
|
|
expl c 2,0 1 nnjjh
|
|
desi * ?ne=- +
|
|
expl c 2,0 1 nnjjjh
|
|
desi * ?ne=- +
|
|
mov u 0,0 75 jh
|
|
demob 0:2,0 55 y
|
|
desi 2,0 m
|
|
mov c 0,0 600 -1,-1
|
|
desi -1,-1 g
|
|
mov c 0,0 275 1,-1
|
|
mov c 2,0 274 1,-1
|
|
desi 1,-1 m
|
|
deliver i 2,0 230 u
|
|
deliver i 1,-1 0 j
|
|
dist 4,0 2,0
|
|
thres i 2,0 1
|
|
des 0,-2 c
|
|
capital 0,-2
|
|
des 0,0 g
|
|
thres d 0,0 1
|