Skip to content

Commit

Permalink
feat(equipment): add larger OPLI internal missile racks
Browse files Browse the repository at this point in the history
Add the missing OPLI internal missile racks for S3 and S4. Number and
types of missiles taken from descriptions in the relevant ship
definitions.

Other statistics (volume, mass, price) made up on the spot.
  • Loading branch information
mwerle committed Dec 7, 2024
1 parent 7051604 commit 737d6d4
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
22 changes: 22 additions & 0 deletions data/lang/equipment-core/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,32 @@
"description": "Equipment name for an OKB-Kaluri Bowfin internal missile launcher",
"message": "Bowfin Missile Launcher"
},

"OPLI_INTERNAL_MISSILE_RACK_S2": {
"description": "Equipment name for an OPLI internal missile rack",
"message": "OPLI Internal Missile Rack"
},
"OPLI_INTERNAL_MISSILE_RACK_S2_DESCRIPTION": {
"description": "Short description and tooltip.",
"message": "Internal missile bay for 5x medium missiles."
},
"OPLI_INTERNAL_MISSILE_RACK_S3": {
"description": "Equipment name for an OPLI internal missile rack",
"message": "OPLI Internal Missile Rack"
},
"OPLI_INTERNAL_MISSILE_RACK_S3_DESCRIPTION": {
"description": "Short description and tooltip.",
"message": "Internal missile bay for 8x medium missiles."
},
"OPLI_INTERNAL_MISSILE_RACK_S4": {
"description": "Equipment name for an OPLI internal missile rack",
"message": "OPLI Internal Missile Rack"
},
"OPLI_INTERNAL_MISSILE_RACK_S4_DESCRIPTION": {
"description": "Short description and tooltip.",
"message": "Internal missile bay for 12x medium missiles."
},

"ORBIT_SCANNER": {
"description": "A ship equipment that records data of terrain, for cartography mapping/geological survey. Note: Scout Mission module reference and distinguishes between 'orbital' and 'surface' scanner types, the former scans planet from orbit, the latter from low altitude.",
"message": "Orbital scanner XKM-650"
Expand Down
43 changes: 43 additions & 0 deletions data/modules/Equipment/Weapons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ Equipment.Register("missile_rack.111", EquipType.New {
-- Internal Missile Bays
--===============================================

-- For the Coronatrix, Malabar, Sinonatrix (and Police), and Vatakara
Equipment.Register("missile_bay.opli_internal_s2", EquipType.New {
l10n_key="OPLI_INTERNAL_MISSILE_RACK_S2",
price=150, purchasable=true, tech_level=1,
Expand All @@ -412,6 +413,48 @@ Equipment.Register("missile_bay.opli_internal_s2", EquipType.New {
icon_name="equip_missile_unguided"
})

-- For the Natrix, and Nerodia
Equipment.Register("missile_bay.opli_internal_s3", EquipType.New {
l10n_key="OPLI_INTERNAL_MISSILE_RACK_S3",
price=450, purchasable=true, tech_level=5,
volume=8.5, mass=0.9,
slot = { type = "missile_bay.opli_internal", size=3, hardpoint=true },
provides_slots = {
Slot:clone { id = "1", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "2", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "3", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "4", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "5", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "6", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "7", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "8", type = "missile", size = 2, hardpoint = true },
},
icon_name="equip_missile_unguided"
})

-- For the Molar Ramsayi
Equipment.Register("missile_bay.opli_internal_s4", EquipType.New {
l10n_key="OPLI_INTERNAL_MISSILE_RACK_S4",
price=950, purchasable=true, tech_level=7,
volume=11.0, mass=1.1,
slot = { type = "missile_bay.opli_internal", size=4, hardpoint=true },
provides_slots = {
Slot:clone { id = "1", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "2", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "3", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "4", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "5", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "6", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "7", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "8", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "9", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "10", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "11", type = "missile", size = 2, hardpoint = true },
Slot:clone { id = "12", type = "missile", size = 2, hardpoint = true },
},
icon_name="equip_missile_unguided"
})

Equipment.Register("missile_bay.bowfin_internal", EquipType.New {
l10n_key="OKB_KALURI_BOWFIN_MISSILE_RACK",
price=150, purchasable=true, tech_level=1,
Expand Down

0 comments on commit 737d6d4

Please sign in to comment.