Skip to content

Commit

Permalink
fix: apply Elson feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Oct 21, 2023
1 parent a1b2fff commit c1c4819
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/items/functions/item/item_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,7 @@ void ItemParse::parseAbsorbPercent(const std::string &tmpStrValue, pugi::xml_att
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_ENERGYDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentfire") {
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_FIREDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentpoison") {
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_EARTHDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentearth") {
} else if (stringValue == "absorbpercentpoison" || stringValue == "absorbpercentearth") {
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_EARTHDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
} else if (stringValue == "absorbpercentice") {
itemType.getAbilities().absorbPercent[combatTypeToIndex(COMBAT_ICEDAMAGE)] += pugi::cast<int16_t>(valueAttribute.value());
Expand Down

0 comments on commit c1c4819

Please sign in to comment.