mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
fix initial gearkit costs for AIM members (thanks Toni)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9330 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -804,8 +804,15 @@ BOOLEAN LoadMercProfiles(void)
|
||||
//get the item
|
||||
usItem = gMercProfiles[ uiLoop ].inv[ uiLoop2 ];
|
||||
|
||||
// for an item stack, we obviously need to account fot the number of items
|
||||
// for single items, the number is not always set, so just to be sure...
|
||||
// initialise to first gearkit
|
||||
int number = 1;
|
||||
if ( gMercProfileGear[uiLoop][0].iNumber.size( ) >= uiLoop2 )
|
||||
number = max( 1, gMercProfileGear[uiLoop][0].iNumber[uiLoop2] );
|
||||
|
||||
//add the cost
|
||||
tempGearCost += Item[ usItem ].usPrice;
|
||||
tempGearCost += (Item[ usItem ].usPrice * number);
|
||||
}
|
||||
}
|
||||
//tais: added optional price modifier for gearkits, reads the xml tag mPriceMod from MercStartingGear.xml
|
||||
|
||||
Reference in New Issue
Block a user