mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Swedish Military Assets Pack v1.10 support (#90)
* Added a pydcs extension for Swedish Military Assets for DCS by Currenthill v1.10 (2022-11-01). Also added shipmod decorator for the ships added in the mod and remove_ship function in faction.py * Added unit yamls for Swedish Military Assets for DCS by Currenthill v1.10 (2022-11-01) * Added missing RBS-15 group yaml and Ag 90 Sniper Team unit yaml. * Fixed swedishmilitaryassetspack imports. * Renamed some unit yamls for Swedish Military Assets pack. * Encoded LvKv9040.yaml in UTF-8. * Encoded Grkpbv90.yaml in UTF-8. * Encoded BV410*.yaml in UTF-8. * Encoded CV9040.yaml in UTF-8. * Fixed Strv103 yaml syntax. * Encoded Strv2000.yaml in UTF-8. * Renamed some unit yamls for Swedish Military Assets pack. * Renamed BV410 air-defence units. * Added Swedish short-range air defence groups. * Added Swedish medium- and long-range air defence groups (LvS-103 batteries). * Added icons for some Swedish Military Assets units. * Added faction files for: sweden_1997 sweden_2020
This commit is contained in:
@@ -2,8 +2,9 @@ from typing import Type
|
||||
|
||||
from dcs.helicopters import HelicopterType, helicopter_map
|
||||
from dcs.planes import PlaneType, plane_map
|
||||
from dcs.unittype import VehicleType
|
||||
from dcs.unittype import VehicleType, ShipType
|
||||
from dcs.vehicles import vehicle_map
|
||||
from dcs.ships import ship_map
|
||||
|
||||
|
||||
def helicoptermod(helicopter: Type[HelicopterType]) -> Type[HelicopterType]:
|
||||
@@ -19,3 +20,8 @@ def planemod(plane: Type[PlaneType]) -> Type[PlaneType]:
|
||||
def vehiclemod(vehicle: Type[VehicleType]) -> Type[VehicleType]:
|
||||
vehicle_map[vehicle.id] = vehicle
|
||||
return vehicle
|
||||
|
||||
|
||||
def shipmod(ship: Type[ShipType]) -> Type[ShipType]:
|
||||
ship_map[ship.id] = ship
|
||||
return ship
|
||||
|
||||
Reference in New Issue
Block a user