Skip to content

Commit bbc687c

Browse files
committed
Make "can't arm HWP" message more helpful
1 parent a469507 commit bbc687c

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

bin/standard/xcom1/Language/en-GB.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ en-GB:
859859
STR_REAPER_CORPSE: "Reaper Corpse"
860860
STR_SECTOPOD_CORPSE: "Sectopod Corpse"
861861
STR_CYBERDISC_CORPSE: "Cyberdisc Corpse"
862-
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough {0} to arm HWP"
862+
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough ammunition to arm HWP{SMALLLINE}Each HWP requires {0} {1}."
863863
STR_NOT_ENOUGH_EQUIPMENT_TO_FULLY_RE_EQUIP_SQUAD: "Not enough equipment to fully re-equip squad"
864864
STR_MARS_CYDONIA_LANDING: "Mars: Cydonia Landing"
865865
STR_MARS_CYDONIA_LANDING_BRIEFING: "Your Avenger craft has landed in the region of Cydonia on the surface of Mars. Our information indicates that one of the pyramid constructions contains a green access lift to an underground complex. Once you have assembled all your soldiers in the lift area click on the 'abort mission' icon to continue to the next stage."

bin/standard/xcom1/Language/en-US.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ en-US:
859859
STR_REAPER_CORPSE: "Reaper Corpse"
860860
STR_SECTOPOD_CORPSE: "Sectopod Corpse"
861861
STR_CYBERDISC_CORPSE: "Cyberdisc Corpse"
862-
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough {0} to arm HWP"
862+
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough ammunition to arm HWP{SMALLLINE}Each HWP requires {0} {1}."
863863
STR_NOT_ENOUGH_EQUIPMENT_TO_FULLY_RE_EQUIP_SQUAD: "Not enough equipment to fully re-equip squad"
864864
STR_MARS_CYDONIA_LANDING: "Mars: Cydonia Landing"
865865
STR_MARS_CYDONIA_LANDING_BRIEFING: "Your Avenger craft has landed in the region of Cydonia on the surface of Mars. Our information indicates that one of the pyramid constructions contains a green access lift to an underground complex. Once you have assembled all your soldiers in the lift area click on the 'abort mission' icon to continue to the next stage."

bin/standard/xcom2/Language/en-GB.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ en-GB:
10081008
STR_HALLUCINOID_CORPSE: "Hallucinoid Corpse"
10091009
STR_XARQUID_CORPSE: "Xarquid Corpse"
10101010

1011-
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough {0} to arm SWS"
1011+
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough ammunition to arm SWS{SMALLLINE}Each SWS requires {0} {1}."
10121012
STR_NOT_ENOUGH_EQUIPMENT_TO_FULLY_RE_EQUIP_SQUAD: "Not enough equipment to fully re-equip squad"
10131013
STR_YOU_NEED_TO_RESEARCH_ITEM_TO_PRODUCE_ITEM: "You will need to research a{NEWLINE}{0}{NEWLINE}in order to produce the{NEWLINE}{1}"
10141014
STR_THE_ALIENS_HAVE_DESTROYED_THE_UNDEFENDED_BASE: "The Aliens have destroyed the undefended base {0}"

bin/standard/xcom2/Language/en-US.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ en-US:
10071007
STR_HALLUCINOID_CORPSE: "Hallucinoid Corpse"
10081008
STR_XARQUID_CORPSE: "Xarquid Corpse"
10091009

1010-
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough {0} to arm SWS"
1010+
STR_NOT_ENOUGH_AMMO_TO_ARM_HWP: "Not enough ammunition to arm SWS{SMALLLINE}Each SWS requires {0} {1}."
10111011
STR_NOT_ENOUGH_EQUIPMENT_TO_FULLY_RE_EQUIP_SQUAD: "Not enough equipment to fully re-equip squad"
10121012
STR_YOU_NEED_TO_RESEARCH_ITEM_TO_PRODUCE_ITEM: "You will need to research a{NEWLINE}{0}{NEWLINE}in order to produce the{NEWLINE}{1}"
10131013
STR_THE_ALIENS_HAVE_DESTROYED_THE_UNDEFENDED_BASE: "The Aliens have destroyed the undefended base {0}"

src/Basescape/CraftEquipmentState.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ void CraftEquipmentState::moveRightByValue(int change)
542542
int canBeAdded = std::min(change, baseQty);
543543
if (canBeAdded > 0)
544544
{
545-
for (int i=0; i < canBeAdded; ++i)
545+
for (int i = 0; i < canBeAdded; ++i)
546546
{
547547
if (_game->getSavedGame()->getMonthsPassed() != -1)
548548
{
@@ -556,12 +556,12 @@ void CraftEquipmentState::moveRightByValue(int change)
556556
{
557557
// So we haven't managed to increase the count of vehicles because of the ammo
558558
_timerRight->stop();
559-
LocalizedText msg(tr("STR_NOT_ENOUGH_AMMO_TO_ARM_HWP").arg(tr(ammo->getType())));
559+
LocalizedText msg(tr("STR_NOT_ENOUGH_AMMO_TO_ARM_HWP").arg(ammoPerVehicle).arg(tr(ammo->getType())));
560560
_game->pushState(new ErrorMessageState(msg, _palette, _game->getMod()->getInterface("craftEquipment")->getElement("errorMessage")->color, "BACK04.SCR", _game->getMod()->getInterface("craftEquipment")->getElement("errorPalette")->color));
561561
}
562562
}
563563
else
564-
for (int i=0; i < change; ++i)
564+
for (int i = 0; i < change; ++i)
565565
{
566566
c->getVehicles()->push_back(new Vehicle(item, item->getClipSize(), size));
567567
if (_game->getSavedGame()->getMonthsPassed() != -1)

0 commit comments

Comments
 (0)