edit: Fix fortification limit of embarked planes and land units
We generally preserve the invariant "land units and missiles loaded on a land unit or ship are never fortified / hardened": fortify and harden refuse to touch embarked land units and missiles, load and lload zap land unit fortification on load, and refuse to load hardened missiles. The exception is edit, which happily fortifies embarked land units (edit u key 'F'), hardens embarked missiles (edit p key 'F'), loads fortified land units (edit u keys 'S' and 'Y') and hardened planes (edit p keys 's' and 'y'). Fix the first two by correcting the new value's upper limit to zero for embarked land units and planes. The next commit will take care of the rest. The fix is visible in tests where test setup fortifies land units with "edit u * F ?..." without excepting embarked ones. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
b2be5a227d
commit
f5514cb452
5 changed files with 17 additions and 10 deletions
|
@ -213,8 +213,8 @@ uid owner xloc yloc type effic mobil off tech opx opy mission radius army ship h
|
|||
11 2 1 1 0 100 127 0 30 1 1 reserve 3 "" -1 127 42 (bombed) "hhhhn" 0 5 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
12 1 1 1 0 100 127 0 30 1 1 reserve 3 "" -1 127 42 (bombed) "hhhhn" 0 5 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
13 1 1 1 0 100 127 0 30 1 1 reserve 3 "" -1 127 42 (bombed) "hhhhn" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
14 1 1 1 0 100 127 0 30 1 1 reserve 3 "" 1 127 42 (bombed) "hhhhn" 0 2 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
15 1 1 1 0 100 127 0 30 1 1 reserve 3 "" -1 127 42 (bombed) "hhhhn" 0 2 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 1 0
|
||||
14 1 1 1 0 100 127 0 30 1 1 reserve 3 "" 1 0 42 (bombed) "hhhhn" 0 2 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
15 1 1 1 0 100 127 0 30 1 1 reserve 3 "" -1 0 42 (bombed) "hhhhn" 0 2 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 1 0
|
||||
20 1 3 3 0 100 105 0 30 1 3 none 3 "" -1 0 42 () "" 0 5 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
21 1 2 4 0 100 105 0 30 1 3 none 3 "" -1 0 42 () "" 0 5 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
22 1 3 3 7 100 60 0 40 0 0 none 0 "" -1 0 42 () "" 0 5 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 -1 0
|
||||
|
|
|
@ -1575,8 +1575,8 @@
|
|||
Play#0 output Play#0 1 2 11 cav cavalry 1,1 100% 5 127 127 0 30 42% 0 0
|
||||
Play#0 output Play#0 1 1 12 cav cavalry 1,1 100% 5 127 127 0 30 42% 0 0
|
||||
Play#0 output Play#0 1 1 13 cav cavalry 1,1 100% 0 127 127 0 30 42% 0 0
|
||||
Play#0 output Play#0 1 1 14 cav cavalry 1,1 100% 2 127 127 0 30 42% 0 0 1S
|
||||
Play#0 output Play#0 1 1 15 cav cavalry 1,1 100% 2 127 127 0 30 42% 0 0 1L
|
||||
Play#0 output Play#0 1 1 14 cav cavalry 1,1 100% 2 0 127 0 30 42% 0 0 1S
|
||||
Play#0 output Play#0 1 1 15 cav cavalry 1,1 100% 2 0 127 0 30 42% 0 0 1L
|
||||
Play#0 output Play#0 1 1 20 cav cavalry 3,3 100% 5 0 105 0 30 42% 0 0
|
||||
Play#0 output Play#0 1 1 21 cav cavalry 2,4 100% 5 0 105 0 30 42% 0 0
|
||||
Play#0 output Play#0 1 1 22 tra train 3,3 100% 5 0 60 0 40 42% 0 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue