Use custom ship label for Rondel guards

master
WKFO 2020-12-29 20:57:36 +03:00 committed by Webster Sheets
parent ebd928c957
commit 8c33211cfc
2 changed files with 5 additions and 1 deletions

View File

@ -22,5 +22,9 @@
"HOSTILE_ACTION_REPORTED": {
"description": "",
"message": "Hostile action reported. Intercept and destroy!"
},
"HABER_DEFENSE_CRAFT": {
"description": "",
"message": "Haber Defense Craft"
}
}

View File

@ -85,7 +85,7 @@ local onEnterSystem = function (player)
local shipdef = ShipDef[system.faction.policeShip]
for i = 1, 7 do
ship = Space.SpawnShipNear(shipdef.id, player, 50, 100)
ship:SetLabel(l_ui_core.POLICE)
ship:SetLabel(l_rondel.HABER_DEFENSE_CRAFT)
ship:AddEquip(Equipment.laser.pulsecannon_2mw)
table.insert(patrol, ship)
end