empserver/tests
Markus Armbruster 542a9ef83f edit &c: Add remaining missing sector change reporting
edit, setresource and setsector report change in three ways:

* Print a message.

* Send a bulletin to the changed object's owner.  This should be done
  if and only if the change is visible to the owner, e.g. in census or
  xdump.

* Report divine aid in news.  This should be done if and only if a
  bulletin was sent, except for changes that are neither negative nor
  positive, such as changing the distribution sector.

Fix the places that don't get it right for sectors:

    cmd  key    sctstr member   before  after   notes
    -------------------------------------------------
    edit l O    sct_oldown      --      B-
    edit l F    sct_fallout     --      BN      1
    edit l M    sct_mines       --      BN      2 3
    edit l D    sct_dist_x,y    --      B-      1
    edit l s    sct_type        --      B-      1
    edit l S    sct_newtype     --      B-      1
    setse ow    sct_own         B-      BN
    setse ol    sct_oldown      --      B-
    setse e     sct_effic       --      BN      2
    setse mo    sct_mobil       --      BN      2
    setse a     sct_avail       --      BN      2
    setse w     sct_work        --      BN      2

The two characters in columns before, after show whether the command
sends a bulletin (B) or not (-), and whether it reports news (N) or
not (-).

Notes:

1. Printed message massaged slightly for consistency with other keys.

2. Printed message improved to show the old value, too.  Necessary to
   give the deity a chance to catch unexpected changes, e.g. a player
   laying mines right before the deity edits them.  Watching out for
   such changes is especially important with non-interactive edit.

3. Bulletin and news suppressed for occupied sectors.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2013-06-06 19:55:00 +02:00
..
actofgod edit &c: Add remaining missing sector change reporting 2013-06-06 19:55:00 +02:00
fairland Change fairland island size probability distribution 2013-05-08 06:57:55 +02:00
files Use int instead of signed char for pln_flags 2013-05-08 06:57:54 +02:00
smoke tests: Capture player output via journal instead of client 2013-05-31 10:52:50 +02:00
actofgod-test tests/actofgod: New, disabled for now because it oopses 2013-06-06 19:52:20 +02:00
fairland-test Switch PRNG from BSD random() to Mersenne Twister 2013-05-08 06:55:21 +02:00
files-test Add files test to make check 2013-05-08 06:55:18 +02:00
normalize.pl tests: Cut off log file timestamp instead of normalizing it 2013-05-31 09:54:50 +02:00
smoke-test tests: Capture player output via journal instead of client 2013-05-31 10:52:50 +02:00
test-common.sh tests: Capture player output via journal instead of client 2013-05-31 10:52:50 +02:00