Skip to content

Commit

Permalink
fix: fix: correct configuring of weapon wand
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Mar 18, 2024
1 parent 39d0d84 commit 1eee07c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/items/functions/item/item_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,7 @@ void ItemParse::createAndRegisterScript(ItemType &itemType, pugi::xml_node attri
} else {
g_logger().warn("[{}] - wandtype '{}' does not exist", __FUNCTION__, elementName);
}

} else if (stringKey == "chain" && weapon) {
if (auto value = subValueAttribute.as_double()) {
weapon->setChainSkillValue(value);
Expand All @@ -1182,6 +1183,7 @@ void ItemParse::createAndRegisterScript(ItemType &itemType, pugi::xml_node attri
g_logger().trace("Added weapon damage from '{}', to '{}'", fromDamage, toDamage);
weaponWand->setMinChange(fromDamage);
weaponWand->setMaxChange(toDamage);
weaponWand->configureWeapon(itemType);
}

auto combat = weapon->getCombat();
Expand Down

0 comments on commit 1eee07c

Please sign in to comment.