mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-11 21:45:43 -04:00
Fixed an armour calculation bug
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user