Fixed an armour calculation bug

This commit is contained in:
Seefo
2014-04-05 14:37:42 -04:00
parent 586c652ac6
commit 890d395e3a
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ public class SWGMap<K, V> implements Map<K, V> {
V value = map.remove(key);
if (value != null) {
queue(item(1, key, ((IDelta) value).getBytes(), true, true));
queue(item(1, (String) key, ((IDelta) value).getBytes(), true, true));
}
return value;
@@ -611,7 +611,7 @@ public class CreatureObject extends TangibleObject implements IPersistent {
public void removeSkillMod(SkillMod mod) {
if (mod != null) {
skillMods.remove(mod);
skillMods.remove(mod.getName());
}
}
-1
View File
@@ -221,7 +221,6 @@ public class EquipmentService implements INetworkDispatch {
if(equipping)
{
if(item.getStringAttribute("cat_wpn_damage.wpn_category") != null) creature.addSkillMod("display_only_critical", getWeaponCriticalChance(creature, item));
if(item.getStringAttribute("protection_level") != null) addForceProtection(creature, item);
if(item.getStringAttribute("proc_name") != null) core.buffService.addBuffToCreature(creature, item.getStringAttribute("proc_name").replace("@ui_buff:", ""), creature);
for(Entry<String, Object> e : attributes.entrySet())