Skip to content

Commit

Permalink
* Accept multiples
Browse files Browse the repository at this point in the history
  • Loading branch information
jprzimba committed Jan 18, 2025
1 parent a6141ea commit 739742a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/XML/outfits.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<outfit type="0" looktype="1777" name="Beekeeper" premium="no" unlocked="no" enabled="yes" from="store" />

<!-- Male -->
<outfit type="1" looktype="128" name="Citizen" premium="no" unlocked="yes" enabled="yes" manaShield="yes" speed="220" attackspeed="500">
<outfit type="1" looktype="128" name="Citizen" premium="no" unlocked="yes" enabled="yes" manaShield="yes" speed="220" attackSpeed="500">
<skills>
<fist value="1" />
<club value="2" />
Expand Down
4 changes: 2 additions & 2 deletions src/creatures/appearance/outfit/outfit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ bool Outfits::loadFromXml() {
pugi::cast<uint16_t>(lookTypeAttribute.value())
);

outfit->manaShield = outfitNode.attribute("manaShield").as_bool();
outfit->manaShield = outfitNode.attribute("manaShield").as_bool() || outfitNode.attribute("manashield").as_bool();
outfit->invisible = outfitNode.attribute("invisible").as_bool();
outfit->speed = outfitNode.attribute("speed").as_int();
outfit->attackSpeed = outfitNode.attribute("attackspeed").as_int();
outfit->attackSpeed = outfitNode.attribute("attackSpeed").as_int() || outfitNode.attribute("attackspeed").as_int();

if (auto skillsNode = outfitNode.child("skills")) {
for (auto skillNode : skillsNode.children()) {
Expand Down

0 comments on commit 739742a

Please sign in to comment.