Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wording change for commands in the "Crew Roster" window #5641

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 14 additions & 16 deletions data/pigui/modules/info-view/05-crew.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ local crewTasks = {
end,

DESTROY_ENEMY_SHIP = function ()
local crewMember = checkPilotLockout() and testCrewMember('piloting')
if not crewMember then
pilotLockout()
return (l.THERE_IS_NOBODY_ELSE_ON_BOARD_ABLE_TO_FLY_THIS_SHIP)
end
if Game.player.flightState ~= 'FLYING'
then
return (({
Expand All @@ -104,18 +109,17 @@ local crewTasks = {
elseif not Game.player:GetCombatTarget() then
return (l.YOU_MUST_FIRST_SELECT_A_COMBAT_TARGET_COMMANDER)
else
local crewMember = checkPilotLockout() and testCrewMember('piloting')
if not crewMember then
pilotLockout()
return (l.THERE_IS_NOBODY_ELSE_ON_BOARD_ABLE_TO_FLY_THIS_SHIP)
else
Game.player:AIKill(Game.player:GetCombatTarget())
return (l.PILOT_SEAT_IS_NOW_OCCUPIED_BY_NAME:interp({name = crewMember.name}))
end
Game.player:AIKill(Game.player:GetCombatTarget())
return (l.PILOT_SEAT_IS_NOW_OCCUPIED_BY_NAME:interp({name = crewMember.name}))
end
end,

DOCK_AT_CURRENT_TARGET = function ()
local crewMember = checkPilotLockout() and testCrewMember('piloting')
if not crewMember then
pilotLockout()
return (l.THERE_IS_NOBODY_ELSE_ON_BOARD_ABLE_TO_FLY_THIS_SHIP)
end
local target = Game.player:GetNavTarget()
if Game.player.flightState ~= 'FLYING'
then
Expand All @@ -130,14 +134,8 @@ local crewTasks = {
elseif not (target and target:isa('SpaceStation')) then
return (l.YOU_MUST_FIRST_SELECT_A_SUITABLE_NAVIGATION_TARGET_COMMANDER)
else
local crewMember = checkPilotLockout() and testCrewMember('piloting')
if not crewMember then
pilotLockout()
return (l.THERE_IS_NOBODY_ELSE_ON_BOARD_ABLE_TO_FLY_THIS_SHIP)
else
Game.player:AIDockWith(target)
return (l.PILOT_SEAT_IS_NOW_OCCUPIED_BY_NAME:interp({name = crewMember.name}))
end
Game.player:AIDockWith(target)
return (l.PILOT_SEAT_IS_NOW_OCCUPIED_BY_NAME:interp({name = crewMember.name}))
end
end
}
Expand Down