]> git.pond.sub.org Git - empserver/commitdiff
tests/actofgod: Test plane type change's effect on range
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 6 Jan 2015 13:45:51 +0000 (14:45 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:47 +0000 (08:20 +0100)
Demonstrate bugs: doesn't always preserve unlimited range, and doesn't
always cut range back to maximum.

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

index 03c6a092aedd199e0c261a82191ab96c7ede905e..6d7338a8952fe82729cd492e4e09f123c4122a4b 100644 (file)
@@ -187,6 +187,8 @@ uid owner xloc yloc type effic mobil off tech opx opy mission radius wing range
 4 3 3 -1 0 100 127 0 32767 0 0 none 0 "" 18 0 -1 4 () 0 0.00000
 5 3 1 -1 0 100 127 0 32767 1 -1 air\040defense 4 "" 18 0 -1 -1 () 0 0.00000
 6 1 0 0 9 10 0 0 90 0 0 none 0 "" 0 0 -1 -1 () 0 0.00000
+7 0 0 0 9 0 0 0 90 0 0 none 0 "" 4 0 -1 -1 () 0 0.00000
+8 0 0 0 0 0 0 0 90 0 0 none 0 "" 15 0 -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
 config land
index b6f1df4caede7780f93d50d93c8820d9579eb5d3..c176e42d70e68ba194f2c8ec217bff146df12456 100755 (executable)
@@ -252,6 +252,8 @@ edit_int('ship', 2, (
 
 # plane: type
 edit('plane', 6, 'T', 'mb', 'O', 1, 'T', 'mb', 'T', 'hb', 'T', 'mb');
+edit('plane', 7, 'r', 255, 'T', 'hb', 'T', 'mb');
+edit('plane', 8, 'T', 'hb', 'r', 255, 'T', 'f1');
 
 # plane: effic mobil range tech
 edit_int('plane', 2, (
index 51491ce56fb9dd2e9c2bbd6955700c6986b463b9..3acdf34cfe0238c2dc4c16f55be7fbfd956c8593 100644 (file)
     Play#0 output Play#0 1 Tech level of hb   B-26B Marauder #6 changed from 80 to 90
     Play#0 output Play#0 1 Type of hb   B-26B Marauder #6 changed to mb   medium bomber
     Play#0 output Play#0 6 0 640
+    Play#0 input edit p 7 r 255 T hb T mb
+    Play#0 command edit
+    Play#0 output Play#0 1 Range of f1   Sopwith Camel #7 changed from 0 to 4
+    Play#0 output Play#0 1 Type of f1   Sopwith Camel #7 changed to hb   B-26B Marauder
+    Play#0 output Play#0 1 Tech level of hb   B-26B Marauder #7 changed from 0 to 90
+    Play#0 output Play#0 1 Type of hb   B-26B Marauder #7 changed to mb   medium bomber
+    Play#0 output Play#0 6 0 640
+    Play#0 input edit p 8 T hb r 255 T f1
+    Play#0 command edit
+    Play#0 output Play#0 1 Type of f1   Sopwith Camel #8 changed to hb   B-26B Marauder
+    Play#0 output Play#0 1 Tech level of hb   B-26B Marauder #8 changed from 0 to 90
+    Play#0 output Play#0 1 Range of hb   B-26B Marauder #8 changed from 0 to 15
+    Play#0 output Play#0 1 Type of hb   B-26B Marauder #8 changed to f1   Sopwith Camel
+    Play#0 output Play#0 6 0 640
     Play#0 input edit p 2 e 0
     Play#0 command edit
     Play#0 output Play#0 1 Efficiency of f1   Sopwith Camel #2 unchanged