Mercurial > mm7
comparison Player.cpp @ 1411:2423bc2af692
+InitializaDialogueOptions
+InitializaDialogueOptions_Shops
+InitializaDialogueOptions_Tavern
author | Nomad |
---|---|
date | Fri, 26 Jul 2013 23:35:34 +0200 |
parents | c9e3b93ec570 |
children | 5930342f092b |
comparison
equal
deleted
inserted
replaced
1410:38df78aba732 | 1411:2423bc2af692 |
---|---|
1064 equipType = pItemsTable->pItems[idemId].uEquipType; | 1064 equipType = pItemsTable->pItems[idemId].uEquipType; |
1065 itemValue = pItem->GetValue(); | 1065 itemValue = pItem->GetValue(); |
1066 | 1066 |
1067 switch (building_type) | 1067 switch (building_type) |
1068 { | 1068 { |
1069 case BildingType_WeaponShop: | 1069 case BuildingType_WeaponShop: |
1070 if (idemId >= ITEM_ARTIFACT_HERMES_SANDALS) | 1070 if (idemId >= ITEM_ARTIFACT_HERMES_SANDALS) |
1071 return 5; | 1071 return 5; |
1072 if (equipType > EQUIP_BOW) | 1072 if (equipType > EQUIP_BOW) |
1073 return 4; | 1073 return 4; |
1074 break; | 1074 break; |
1075 case BildingType_ArmorShop: | 1075 case BuildingType_ArmorShop: |
1076 if (idemId >= ITEM_ARTIFACT_HERMES_SANDALS) | 1076 if (idemId >= ITEM_ARTIFACT_HERMES_SANDALS) |
1077 return 5; | 1077 return 5; |
1078 if ( equipType < EQUIP_ARMOUR || equipType > EQUIP_BOOTS) | 1078 if ( equipType < EQUIP_ARMOUR || equipType > EQUIP_BOOTS) |
1079 return 4; | 1079 return 4; |
1080 break; | 1080 break; |
1081 case BildingType_MagicShop: | 1081 case BuildingType_MagicShop: |
1082 if (idemId >= ITEM_ARTIFACT_HERMES_SANDALS) | 1082 if (idemId >= ITEM_ARTIFACT_HERMES_SANDALS) |
1083 return 5; | 1083 return 5; |
1084 if ( pItemsTable->pItems[idemId].uSkillType != PLAYER_SKILL_MISC ) | 1084 if ( pItemsTable->pItems[idemId].uSkillType != PLAYER_SKILL_MISC ) |
1085 return 4; | 1085 return 4; |
1086 break; | 1086 break; |
1087 case BildingType_AlchemistShop: | 1087 case BuildingType_AlchemistShop: |
1088 if ((idemId >= ITEM_ARTIFACT_HERMES_SANDALS && idemId < ITEM_RECIPE_REJUVENATION) || idemId > ITEM_RECIPE_BODY_RESISTANCE) | 1088 if ((idemId >= ITEM_ARTIFACT_HERMES_SANDALS && idemId < ITEM_RECIPE_REJUVENATION) || idemId > ITEM_RECIPE_BODY_RESISTANCE) |
1089 return 5; | 1089 return 5; |
1090 if ( !(equipType == EQUIP_REAGENT || equipType == EQUIP_POTION || equipType == EQUIP_MESSAGE_SCROLL)) | 1090 if ( !(equipType == EQUIP_REAGENT || equipType == EQUIP_POTION || equipType == EQUIP_MESSAGE_SCROLL)) |
1091 return 4; | 1091 return 4; |
1092 break; | 1092 break; |