mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-externalized assignment (repair, doctor, training) constants to ja2_options.ini, and added a few for good measure ;)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@432 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1063,7 +1063,7 @@ UINT8 ChanceOfItemTransaction( INT8 bArmsDealer, UINT16 usItemIndex, BOOLEAN fDe
|
||||
|
||||
// Madd
|
||||
if ( !fDealerIsSelling && fBobbyRay )
|
||||
ubChance *= gGameOptions.ubBobbyRay;
|
||||
ubChance = min(100,gGameOptions.ubBobbyRay * ubChance);
|
||||
|
||||
// if there's any uncertainty
|
||||
if ((ubChance > 0) && (ubChance < 100))
|
||||
@@ -1181,6 +1181,7 @@ UINT8 HowManyItemsAreSold( INT8 bArmsDealerID, UINT16 usItemIndex, UINT8 ubNumIn
|
||||
UINT8 HowManyItemsToReorder(UINT8 ubWanted, UINT8 ubStillHave)
|
||||
{
|
||||
UINT8 ubNumReordered;
|
||||
DebugMsg(TOPIC_JA2, DBG_LEVEL_3,String("HowManyItemsToReorder: wanted = %d, still have = %d",ubWanted, ubStillHave));
|
||||
|
||||
Assert(ubStillHave <= ubWanted);
|
||||
|
||||
@@ -1197,6 +1198,7 @@ UINT8 HowManyItemsToReorder(UINT8 ubWanted, UINT8 ubStillHave)
|
||||
break;
|
||||
}
|
||||
|
||||
DebugMsg(TOPIC_JA2, DBG_LEVEL_3,String("HowManyBRItemsToOrder: reordered = %d",ubNumReordered));
|
||||
return(ubNumReordered);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user