mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add hit points to unit yamls.
This PR: - Introduces a new member of UnitType, hit_points, which is an abstract representation of the durability of a unit, and loads it in from the YAML files in the various subclasses (Ship, Ground etc). - Adds scripts for populating/updating the unit YAML files with hit point data from DCS. This script also gets the data for static objects, but I'll leave the plugging in of static object data into Liberation for another PR. - Updates the unit YAML files by running the above scripts. I did toy with the idea of adding this data to the unit definitions in pydcs via an export from DCS, but it would be a more involved change, since the current pydcs export script runs in the Hooks Lua environment in DCS and AFAICT the hit points (via Unit.getLife()) is run in the mission scripting environment.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
Corvette 1124.4 Grish: null
|
||||
Corvette 1124.4 Grish: null
|
||||
hit_points: 1600
|
||||
|
||||
@@ -2,3 +2,4 @@ class: LandingShip
|
||||
price: 0
|
||||
variants:
|
||||
LS Ropucha: null
|
||||
hit_points: 2000
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Boat
|
||||
price: 0
|
||||
variants:
|
||||
Castle Class: null
|
||||
hit_points: 1200
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: AircraftCarrier
|
||||
price: 0
|
||||
variants:
|
||||
CV-59 Forrestal: null
|
||||
CV-59 Forrestal: null
|
||||
hit_points: 7300
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Boat
|
||||
price: 0
|
||||
variants:
|
||||
Handy Wind: null
|
||||
hit_points: 1000
|
||||
|
||||
@@ -2,3 +2,4 @@ class: LandingShip
|
||||
price: 0
|
||||
variants:
|
||||
Boat LCVP Higgins: null
|
||||
hit_points: 4
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Submarine
|
||||
price: 0
|
||||
variants:
|
||||
SSK 636 Improved Kilo: null
|
||||
hit_points: 300
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Submarine
|
||||
price: 0
|
||||
variants:
|
||||
SSK 877V Kilo: null
|
||||
SSK 877V Kilo: null
|
||||
hit_points: 300
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: AircraftCarrier
|
||||
price: 0
|
||||
variants:
|
||||
CV 1143.5 Admiral Kuznetsov: null
|
||||
CV 1143.5 Admiral Kuznetsov: null
|
||||
hit_points: 7000
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: HelicopterCarrier
|
||||
price: 0
|
||||
variants:
|
||||
LHA-1 Tarawa: null
|
||||
LHA-1 Tarawa: null
|
||||
hit_points: 7300
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: LandingShip
|
||||
price: 0
|
||||
variants:
|
||||
LST Mk.II: null
|
||||
LST Mk.II: null
|
||||
hit_points: 2100
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Destroyer
|
||||
price: 0
|
||||
variants:
|
||||
FAC La Combattante IIa: null
|
||||
FAC La Combattante IIa: null
|
||||
hit_points: 750
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
Corvette 1241.1 Molniya: null
|
||||
Corvette 1241.1 Molniya: null
|
||||
hit_points: 700
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Cruiser
|
||||
price: 0
|
||||
variants:
|
||||
Cruiser 1164 Moskva: null
|
||||
Cruiser 1164 Moskva: null
|
||||
hit_points: 5200
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Destroyer
|
||||
price: 0
|
||||
variants:
|
||||
Frigate 11540 Neustrashimy: null
|
||||
Frigate 11540 Neustrashimy: null
|
||||
hit_points: 2180
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Destroyer
|
||||
price: 0
|
||||
variants:
|
||||
FFG Oliver Hazard Perry: null
|
||||
FFG Oliver Hazard Perry: null
|
||||
hit_points: 2100
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Destroyer
|
||||
price: 0
|
||||
variants:
|
||||
Frigate 1135M Rezky: null
|
||||
Frigate 1135M Rezky: null
|
||||
hit_points: 1800
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Boat
|
||||
price: 0
|
||||
variants:
|
||||
Boat Schnellboot type S130: null
|
||||
Boat Schnellboot type S130: null
|
||||
hit_points: 50
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: AircraftCarrier
|
||||
price: 0
|
||||
variants:
|
||||
CVN-74 John C. Stennis: null
|
||||
CVN-74 John C. Stennis: null
|
||||
hit_points: 7300
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Cruiser
|
||||
price: 0
|
||||
variants:
|
||||
CG Ticonderoga: null
|
||||
CG Ticonderoga: null
|
||||
hit_points: 2700
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Destroyer
|
||||
price: 0
|
||||
variants:
|
||||
Type 052B Destroyer: null
|
||||
Type 052B Destroyer: null
|
||||
hit_points: 2700
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Destroyer
|
||||
price: 0
|
||||
variants:
|
||||
Type 052C Destroyer: null
|
||||
Type 052C Destroyer: null
|
||||
hit_points: 3200
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
Type 054A Frigate: null
|
||||
Type 054A Frigate: null
|
||||
hit_points: 2500
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: HelicopterCarrier
|
||||
price: 0
|
||||
variants:
|
||||
Type 071 Amphibious Transport Dock: null
|
||||
Type 071 Amphibious Transport Dock: null
|
||||
hit_points: 7300
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Submarine
|
||||
price: 0
|
||||
variants:
|
||||
Type 093 Attack Submarine: null
|
||||
hit_points: 1500
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Destroyer
|
||||
price: 0
|
||||
variants:
|
||||
DDG Arleigh Burke IIa: null
|
||||
DDG Arleigh Burke IIa: null
|
||||
hit_points: 2100
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Boat
|
||||
price: 0
|
||||
variants:
|
||||
LS Samuel Chase: null
|
||||
hit_points: 2100
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class: Submarine
|
||||
price: 0
|
||||
variants:
|
||||
U-boat VIIC U-flak: null
|
||||
U-boat VIIC U-flak: null
|
||||
hit_points: 800
|
||||
|
||||
@@ -4,3 +4,4 @@ variants:
|
||||
ARA Vienticinco de Mayo: {}
|
||||
ARA Veinticinco de Mayo: {}
|
||||
HMAS Melbourne: {}
|
||||
hit_points: 7200
|
||||
|
||||
@@ -2,3 +2,4 @@ class: HelicopterCarrier
|
||||
price: 0
|
||||
variants:
|
||||
HMS Invincible (R05): null
|
||||
hit_points: 7200
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
HMS Achilles (F12): null
|
||||
hit_points: 1000
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
HMS Andromeda (F57): null
|
||||
hit_points: 1000
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
HMS Ariadne (F72): null
|
||||
hit_points: 1000
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
CNS Almirante Condell (PFG-06): null
|
||||
hit_points: 1000
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Frigate
|
||||
price: 0
|
||||
variants:
|
||||
CNS Almirante Lynch (PFG-07): null
|
||||
hit_points: 1000
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Submarine
|
||||
price: 0
|
||||
variants:
|
||||
ARA Santa Fe S-21: null
|
||||
hit_points: 100
|
||||
|
||||
@@ -2,3 +2,4 @@ class: Boat
|
||||
price: 0
|
||||
variants:
|
||||
Boat Armed Hi-speed: null
|
||||
hit_points: 1
|
||||
|
||||
Reference in New Issue
Block a user