Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
CORE: augments now apply mods correctly (fixes #1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
takhlaq committed Jul 2, 2015
1 parent 9691924 commit cc5c20b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/map/items/item_armor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,13 @@ void CItemArmor::SetAugmentMod(uint16 type, uint8 value)

// apply modifier to item. increase modifier power by 'value' (default magnitude 1 for most augments) if multiplier isn't specified
// otherwise increase modifier power using the multiplier
// check if we should be adding to or taking away from the mod power (handle scripted augments properly)
modValue = (modValue > 0 ? modValue + value : modValue - value) * (multiplier > 1 ? multiplier : 1);

if (!type)
addModifier(new CModifier(modId, (multiplier > 1 ? modValue + (value * multiplier) : modValue + value)));
addModifier(new CModifier(modId, modValue));
else
addPetModifier(new CModifier(modId, (multiplier > 1 ? modValue + (value * multiplier) : modValue + value)));
addPetModifier(new CModifier(modId, modValue));
}
}

Expand Down

0 comments on commit cc5c20b

Please sign in to comment.