mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
BACKPACKWEIGHT_LOWERS_AP controls wether backpack weight affects APs negatively
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6364 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-1
@@ -1376,7 +1376,8 @@ void LoadGameExternalOptions()
|
||||
gGameExternalOptions.fAllNamedNpcsDecideAction = iniReader.ReadBoolean("Tactical Gameplay Settings", "ALL_NAMED_NPCS_DECIDE_ACTION", FALSE);
|
||||
|
||||
gGameExternalOptions.fAccessOtherMercInventories = iniReader.ReadBoolean("Tactical Gameplay Settings","ACCESS_OTHER_MERC_INVENTORIES", TRUE);
|
||||
|
||||
gGameExternalOptions.fBackPackWeightLowersAP = iniReader.ReadBoolean("Tactical Gameplay Settings","BACKPACKWEIGHT_LOWERS_AP", TRUE);
|
||||
|
||||
//################# Tactical Cover System Settings ##################
|
||||
|
||||
// CPT: Cover System Settings
|
||||
|
||||
@@ -492,6 +492,9 @@ typedef struct
|
||||
// Flugente - allow accessing other mercs inventory via 'stealing'
|
||||
BOOLEAN fAccessOtherMercInventories;
|
||||
|
||||
// Moa - weight of filled backpack lowers our AP
|
||||
BOOLEAN fBackPackWeightLowersAP;
|
||||
|
||||
// WDS - Improve Tony's and Devin's inventory like BR's
|
||||
// silversurfer: not used anymore, see "Tactical\XML_Merchants.cpp" for "useBRSetting"
|
||||
// BOOLEAN tonyUsesBRSetting;
|
||||
|
||||
+1
-1
@@ -504,7 +504,7 @@ INT16 ActionPointCost( SOLDIERTYPE *pSoldier, INT32 sGridNo, INT8 bDir, UINT16 u
|
||||
}
|
||||
// Check for backpack
|
||||
// Moa: apply penalty for heavily packed backpack (wobble penalty)
|
||||
if ( UsingNewInventorySystem() == true )
|
||||
if ( UsingNewInventorySystem() == true && gGameExternalOptions.fBackPackWeightLowersAP )
|
||||
{
|
||||
INT8 bSlot= FindBackpackOnSoldier( pSoldier );
|
||||
if ( bSlot != ITEM_NOT_FOUND )
|
||||
|
||||
Reference in New Issue
Block a user