-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:
MaddMugsy
2006-06-26 17:55:11 +00:00
parent 8579bc4a24
commit 3b38f5dac5
3 changed files with 25 additions and 22 deletions
+13 -13
View File
@@ -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