mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-removed some hard coded item indexes from ArmsDealerInvInit.cpp & items.cpp
-fixed canteen merging w/ctrl+click git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@306 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -900,21 +900,21 @@ UINT8 GetCurrentSuitabilityForItem( INT8 bArmsDealer, UINT16 usItemIndex, BOOLEA
|
||||
}
|
||||
|
||||
// the following staple items are always deemed highly suitable regardless of player's progress:
|
||||
switch (usItemIndex)
|
||||
{
|
||||
case FIRSTAIDKIT:
|
||||
case MEDICKIT:
|
||||
case TOOLKIT:
|
||||
case LOCKSMITHKIT:
|
||||
|
||||
case CANTEEN:
|
||||
case CROWBAR:
|
||||
case JAR:
|
||||
case JAR_ELIXIR:
|
||||
case JAR_CREATURE_BLOOD:
|
||||
//switch (usItemIndex)
|
||||
//{
|
||||
// case FIRSTAIDKIT:
|
||||
// case MEDICKIT:
|
||||
// case TOOLKIT:
|
||||
// case LOCKSMITHKIT:
|
||||
|
||||
// case CANTEEN:
|
||||
// case CROWBAR:
|
||||
// case JAR:
|
||||
// case JAR_ELIXIR:
|
||||
// case JAR_CREATURE_BLOOD:
|
||||
if ( Item[usItemIndex].medical || Item[usItemIndex].canteen || Item[usItemIndex].medicalkit || Item[usItemIndex].locksmithkit || Item[usItemIndex].toolkit || Item[usItemIndex].crowbar || Item[usItemIndex].jar )
|
||||
return(ITEM_SUITABILITY_ALWAYS);
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
// If it's not BobbyRay, Tony, or Devin
|
||||
|
||||
Reference in New Issue
Block a user