]> git.pond.sub.org Git - empserver/commitdiff
tests/actofgod: Cover loading hardened missiles
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 11 May 2018 06:27:12 +0000 (08:27 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:18 +0000 (07:25 +0100)
Demonstrates that edit leaves a missile's hardening intact on load.

Loading fortified land units is already covered, and also leaves
fortification intact.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
tests/actofgod/final.xdump
tests/actofgod/geninput.pl
tests/actofgod/journal.log

index 0470238e03318c69b809defee1dbbf9be5e53e8d..34ac59b53ec0c61ba065d365e7ee088b5a4d9b39 100644 (file)
@@ -191,7 +191,7 @@ uid owner xloc yloc type effic mobil off tech opx opy mission radius wing range
 8 1 0 0 0 10 0 0 90 0 0 none 0 "" 9 0 -1 -1 () 0 0.00000
 12 1 0 0 28 10 0 0 145 0 0 none 0 "" 0 0 -1 -1 () 0 0.00000
 13 1 0 0 28 10 0 0 145 0 0 none 0 "" 0 0 -1 -1 () 0 0.00000
-14 1 0 0 28 10 0 0 145 0 0 none 0 "" 0 127 -1 -1 () 0 0.00000
+14 1 1 -1 28 10 0 0 145 1 -1 none 0 "" 0 127 4 -1 () 0 0.00000
 15 1 0 0 28 10 0 0 145 0 0 none 0 "" 0 127 -1 -1 () 0 0.00000
 49 0 0 0 0 0 0 0 0 0 0 none 0 "" 0 0 -1 -1 () 0 0.00000
 /config
index 520e33b8b8d440b1d2e0d29c0815204bc873bd1b..ce595139f7c008e9f453a3ff2cc3fa3487f231b0 100755 (executable)
@@ -342,8 +342,14 @@ unit_carrier('nuke', 'p');
 edit('plane', 4, 'l', '5,1');
 
 # special case: load teleports to carrier
+# (previous loads already zapped fortification)
+# BUG: fortification not zapped
 edit('land', 4, 'S', 2);
 
+# special case: load teleports to carrier and zaps fortification
+# BUG: fortification not zapped
+edit('plane', 14, 's', 4);
+
 # interactive edit
 iedit('ship', 0, 'M 2', 'm 1', 'f 1');
 iedit('ship', 0, 'R n', 'R ""');
index c131547a6c4b1b8e7516097359614cf6c80ba448..2360501c897283054cef09a4dfa522228357a723 100644 (file)
     Play#0 output Play#0 1 sup  supply #4 loaded onto ship #2
     Play#0 output Play#0 1 sup  supply #4 teleported from 1,-1 to 3,-1!
     Play#0 output Play#0 6 0 640
+    Play#0 input edit p 14 s 4
+    Play#0 command edit
+    Play#0 output Play#0 1 ssm  V2 #14 loaded onto ship #4
+    Play#0 output Play#0 1 ssm  V2 #14 teleported from 0,0 to 1,-1!
+    Play#0 output Play#0 6 0 640
     Play#0 input edit s 0
     Play#0 command edit
     Play#0 output Play#0 1 POGO (#0) cs   cargo ship (#0)
     Play#0 output Play#0 1 15kt  fission warhead #6 given to you by an act of POGO!
     Play#0 output Play#0 1 Type of 15kt  fission warhead #6 changed to 50kt  fission by an act of POGO
     Play#0 output Play#0 1 Type of 50kt  fission warhead #6 changed to 15kt  fission by an act of POGO
+    Play#0 output Play#0 1 ssm  V2 #14 loaded onto ship #4 by an act of POGO!
     Play#0 output Play#0 1 BTUs changed from 0 to 1 by an act of POGO!
     Play#0 output Play#0 1 BTUs changed from 1 to 0 by an act of POGO!
     Play#0 output Play#0 1 Military reserves changed from 0 to 1 by an act of POGO!