Mercurial > mm7
diff Items.cpp @ 1104:5d5c78088274
strcmpi to stricmp conversion
author | Grumpy7 |
---|---|
date | Mon, 27 May 2013 21:37:14 +0200 |
parents | 7033eb155558 |
children | 29a8defbad9e 23632c91ed0a |
line wrap: on
line diff
--- a/Items.cpp Mon May 27 21:30:40 2013 +0200 +++ b/Items.cpp Mon May 27 21:37:14 2013 +0200 @@ -544,107 +544,107 @@ break; case 4: //Equip Stat { - if ( !_strcmpi(test_string, "weapon") ) + if ( !_stricmp(test_string, "weapon") ) { pItems[item_counter].uEquipType = EQUIP_OFF_HAND; break; } - if ( !_strcmpi(test_string, "weapon2") ) + if ( !_stricmp(test_string, "weapon2") ) { pItems[item_counter].uEquipType = EQUIP_MAIN_HAND; break; } - if ( !_strcmpi(test_string, "weapon1or2") ) + if ( !_stricmp(test_string, "weapon1or2") ) { pItems[item_counter].uEquipType = EQUIP_OFF_HAND; break; } - if ( !(_strcmpi(test_string, "missile")&&_strcmpi(test_string, "bow"))) + if ( !(_stricmp(test_string, "missile")&&_stricmp(test_string, "bow"))) { pItems[item_counter].uEquipType = EQUIP_BOW; break; } - if ( !_strcmpi(test_string, "armor") ) + if ( !_stricmp(test_string, "armor") ) { pItems[item_counter].uEquipType = EQUIP_ARMOUR; break; } - if ( !_strcmpi(test_string, "shield") ) + if ( !_stricmp(test_string, "shield") ) { pItems[item_counter].uEquipType = EQUIP_SHIELD; break; } - if ( !_strcmpi(test_string, "helm") ) + if ( !_stricmp(test_string, "helm") ) { pItems[item_counter].uEquipType = EQUIP_HELMET; break; } - if ( !_strcmpi(test_string, "belt") ) + if ( !_stricmp(test_string, "belt") ) { pItems[item_counter].uEquipType = EQUIP_BELT; break; } - if ( !_strcmpi(test_string, "cloak") ) + if ( !_stricmp(test_string, "cloak") ) { pItems[item_counter].uEquipType = EQUIP_CLOAK; break; } - if ( !_strcmpi(test_string, "gauntlets") ) + if ( !_stricmp(test_string, "gauntlets") ) { pItems[item_counter].uEquipType = EQUIP_GAUNTLETS; break; } - if ( !_strcmpi(test_string, "boots") ) + if ( !_stricmp(test_string, "boots") ) { pItems[item_counter].uEquipType = EQUIP_BOOTS; break; } - if ( !_strcmpi(test_string, "ring") ) + if ( !_stricmp(test_string, "ring") ) { pItems[item_counter].uEquipType = EQUIP_RING; break; } - if ( !_strcmpi(test_string, "amulet") ) + if ( !_stricmp(test_string, "amulet") ) { pItems[item_counter].uEquipType = EQUIP_AMULET; break; } - if ( !_strcmpi(test_string, "weaponw") ) + if ( !_stricmp(test_string, "weaponw") ) { pItems[item_counter].uEquipType = EQUIP_WAND; break; } - if ( !(_strcmpi(test_string, "herb")&&_strcmpi(test_string, "reagent"))) + if ( !(_stricmp(test_string, "herb")&&_stricmp(test_string, "reagent"))) { pItems[item_counter].uEquipType = EQUIP_REAGENT; break; } - if ( !_strcmpi(test_string, "bottle") ) + if ( !_stricmp(test_string, "bottle") ) { pItems[item_counter].uEquipType = EQUIP_POTION; break; } - if ( !_strcmpi(test_string, "sscroll") ) + if ( !_stricmp(test_string, "sscroll") ) { pItems[item_counter].uEquipType = EQUIP_SPELL_SCROLL; break; } - if ( !_strcmpi(test_string, "book") ) + if ( !_stricmp(test_string, "book") ) { pItems[item_counter].uEquipType = EQUIP_BOOK; break; } - if ( !_strcmpi(test_string, "mscroll") ) + if ( !_stricmp(test_string, "mscroll") ) { pItems[item_counter].uEquipType = EQUIP_MESSAGE_SCROLL; break; } - if ( !_strcmpi(test_string, "gold") ) + if ( !_stricmp(test_string, "gold") ) { pItems[item_counter].uEquipType = EQUIP_GOLD; break; } - if ( !_strcmpi(test_string, "gem") ) + if ( !_stricmp(test_string, "gem") ) { pItems[item_counter].uEquipType = EQUIP_GEM; break; @@ -654,67 +654,67 @@ } case 5: //Skill Group { - if ( !_strcmpi(test_string, "staff") ) + if ( !_stricmp(test_string, "staff") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_STAFF; break; } - if ( !_strcmpi(test_string, "sword") ) + if ( !_stricmp(test_string, "sword") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_SWORD; break; } - if ( !_strcmpi(test_string, "dagger") ) + if ( !_stricmp(test_string, "dagger") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_DAGGER; break; } - if ( !_strcmpi(test_string, "axe") ) + if ( !_stricmp(test_string, "axe") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_AXE; break; } - if ( !_strcmpi(test_string, "spear") ) + if ( !_stricmp(test_string, "spear") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_SPEAR; break; } - if ( !_strcmpi(test_string, "bow") ) + if ( !_stricmp(test_string, "bow") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_BOW; break; } - if ( !_strcmpi(test_string, "mace") ) + if ( !_stricmp(test_string, "mace") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_MACE; break; } - if ( !_strcmpi(test_string, "blaster") ) + if ( !_stricmp(test_string, "blaster") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_BLASTER; break; } - if ( !_strcmpi(test_string, "shield") ) + if ( !_stricmp(test_string, "shield") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_SHIELD; break; } - if ( !_strcmpi(test_string, "leather") ) + if ( !_stricmp(test_string, "leather") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_LEATHER; break; } - if ( !_strcmpi(test_string, "chain") ) + if ( !_stricmp(test_string, "chain") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_CHAIN; break; } - if ( !_strcmpi(test_string, "plate") ) + if ( !_stricmp(test_string, "plate") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_PLATE; break; } - if ( !_strcmpi(test_string, "club") ) + if ( !_stricmp(test_string, "club") ) { pItems[item_counter].uSkillType = PLAYER_SKILL_CLUB; break; @@ -756,17 +756,17 @@ break; case 8: //material { - if ( !_strcmpi(test_string, "artifact") ) + if ( !_stricmp(test_string, "artifact") ) { pItems[item_counter].uMaterial = MATERIAL_ARTEFACT; break; } - if ( !_strcmpi(test_string, "relic") ) + if ( !_stricmp(test_string, "relic") ) { pItems[item_counter].uMaterial = MATERIAL_RELIC; break; } - if ( !_strcmpi(test_string, "special") ) + if ( !_stricmp(test_string, "special") ) { pItems[item_counter].uMaterial = MATERIAL_SPECIAL; break;