Skip to content

Commit

Permalink
Changes for Type-8 update
Browse files Browse the repository at this point in the history
  • Loading branch information
lekeno committed Aug 10, 2024
1 parent 25caeb5 commit 92cb72f
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 8 deletions.
5 changes: 5 additions & 0 deletions edr/data/modulenames.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"type7_armour_grade3": { "name":"military grade composite (1I)", "shortname": "Military (1I)"},
"type7_armour_mirrored": { "name":"mirrored surface composite (1I)", "shortname": "Mirrored (1I)"},
"type7_armour_reactive": { "name":"reactive surface composite (1I)", "shortname": "Reactive (1I)"},
"type8_armour_grade1": { "name":"lightweight alloy (1I)", "shortname": "Lightweight (1I)"},
"type8_armour_grade2": { "name":"reinforced alloy (1I)", "shortname": "Reinforced (1I)"},
"type8_armour_grade3": { "name":"military grade composite (1I)", "shortname": "Military (1I)"},
"type8_armour_mirrored": { "name":"mirrored surface composite (1I)", "shortname": "Mirrored (1I)"},
"type8_armour_reactive": { "name":"reactive surface composite (1I)", "shortname": "Reactive (1I)"},
"asp_armour_grade1": { "name":"lightweight alloy (1I)", "shortname": "Lightweight (1I)"},
"asp_armour_grade2": { "name":"reinforced alloy (1I)", "shortname": "Reinforced (1I)"},
"asp_armour_grade3": { "name":"military grade composite (1I)", "shortname": "Military (1I)"},
Expand Down
2 changes: 1 addition & 1 deletion edr/data/odyssey_mats.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"ionisedgas": { "upgrades": 28, "type": "item", "locations": ["RES buildings", "PWR buildings", "IND buildings", "EXT buildings", "AGRI buildings", "Mission reward"], "used": 28},
"compressionliquefiedgas": { "upgrades": 16, "type": "item", "locations": ["RES buildings", "PWR buildings", "IND buildings", "EXT buildings", "AGRI buildings", "Mission reward"], "used": 20},
"healthmonitor": { "upgrades": 12, "type": "item", "locations": ["MED room", "RES buildings", "HAB buildings", "Mission reward", "Surface crash site"], "used": 12},
"largecapacitypowerregulator": { "upgrades": 12, "type": "item", "locations": ["Settlements"], "used": 12},
"largecapacitypowerregulator": { "useless": true, "upgrades": 0, "type": "item", "locations": ["Settlements"], "used": 0},
"suitschematic": { "upgrades": 12, "type": "item", "locations": ["STO buildings", "PWR buildings", "CMD buildings", "Mission reward"], "used": 12},
"surveillanceequipment": { "blueprints": 3, "type": "item", "locations": ["STO buildings", "EXT buildings", "CMD buildings"], "used": 3, "referer": "Kit Fowler", "refer": "Yarden Bond"},
"gmeds": { "blueprints": 3, "type": "item", "locations": ["Irregular markers", "MED room", "RES buildings", "CMD buildings", "AGRI buildings", "Settlements", "Mission reward", "Surface crash site"], "used": 3},
Expand Down
1 change: 1 addition & 0 deletions edr/data/shipnames.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"type6": "Type-6 Transporter",
"dolphin": "Dolphin",
"type7": "Type-7 Transporter",
"type8": "Type-8 Transporter",
"asp": "Asp Explorer",
"vulture": "Vulture",
"vulture_taxi": "Vulture Frontlines",
Expand Down
12 changes: 6 additions & 6 deletions edr/edengineers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def dibs(self, materials):
if self.progress is None:
needed["push"] = 5
if self.progress != "Unlocked":
needed["opinionpolls"] = 20
needed["opinionpolls"] = 5
return needed

def relevant(self, material_name):
Expand All @@ -63,7 +63,7 @@ def dibs(self, materials):
if self.progress is None:
needed["surveillanceequipment"] = 5
if self.progress != "Unlocked":
needed["smearcampaignplans"] = 8
needed["smearcampaignplans"] = 5
return needed

def relevant(self, material_name):
Expand Down Expand Up @@ -155,14 +155,14 @@ def dibs(self, materials):
me = materials.get("multimediaentertainment", 0)
ce = materials.get("classicentertainment", 0)
cm = materials.get("catmedia", 0)
me = max(min(25, me), 8)
ce = max(min(25-me, ce), 25-me-8)
cm = 25-me-ce
me = max(min(15, me), 5)
ce = max(min(15-me, ce), 15-me-5)
cm = 15-me-ce

needed = {"multimedia entertainment":me, "classic entertainment":ce, "cat media": cm}

if self.progress is None:
needed["settlementdefenceplans"] = 15
needed["settlementdefenceplans"] = 5
return needed

def relevant(self, material_name):
Expand Down
1 change: 1 addition & 0 deletions edr/edrfleet.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class EDRFleet(object):
"cobra": "cobramkiii",
"t6": "type6",
"t7": "type7",
"t8": "type8",
"t9": "type9",
"t10": "type9_military",
"aspx": "asp",
Expand Down
2 changes: 1 addition & 1 deletion edr/edrinventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"unknownorganiccircuitry": {"localized": _(u"Thargoid Organic Circuitry"), "raw": "Thargoid Organic Circuitry", "category": "manufactured", "grade": 5},
"unknowntechnologycomponents": {"localized": _(u"Thargoid Technological Components"), "raw": "Thargoid Technological Components", "category": "manufactured", "grade": 4},
"bypass": { "localized": _(u"E-Breach"), "category": "consumable", "raw": "E-Breach", "grade":0},
"largecapacitypowerregulator": { "localized": _(u"Power Regulator"), "category": "item", "raw": "Power Regulator", "grade":0, "comments": _("Suits upgrades")},
"largecapacitypowerregulator": { "localized": _(u"Power Regulator"), "category": "item", "raw": "Power Regulator", "grade":0},
"chemicalinventory": { "localized": _(u"Chemical Inventory"), "category": "data", "raw": "Chemical Inventory", "grade":0, "comments": _("Extra backpack")},
"dutyrota": { "localized": _(u"Duty Rota"), "category": "data", "raw": "Duty Rota", "grade":0},
"evacuationprotocols": { "localized": _(u"Evacuation Protocols"), "category": "data", "raw": "Evacuation Protocols", "grade":0, "comments": _("Combat movement")},
Expand Down
12 changes: 12 additions & 0 deletions edr/edvehicles.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,17 @@ def __init__(self):
self.hull_hardness = 54
self.hull_base_strength = 612 / 1.8

class EDT8Transporter(EDVehicle):
def __init__(self):
super(EDT8Transporter, self).__init__()
self.type = u'Type-8 Transporter'
self.size = EDVehicleSize.MEDIUM
self.value = 0 # TODO
self.shield_base_strength = 122
self.hull_mass = 400
self.hull_hardness = 54 # TODO
self.hull_base_strength = 792 / 1.8

class EDAspExplorer(EDVehicle):
def __init__(self):
super(EDAspExplorer, self).__init__()
Expand Down Expand Up @@ -1388,6 +1399,7 @@ class EDVehicleFactory(object):
"type6": EDT6Transporter,
"dolphin": EDDolphin,
"type7": EDT7Transporter,
"type8": EDT8Transporter,
"asp": EDAspExplorer,
"vulture": EDVulture,
"vulture_taxi": EDVultureFrontlines,
Expand Down

0 comments on commit 92cb72f

Please sign in to comment.