|
|
@ -46,12 +46,32 @@ public class Resists { |
|
|
|
case "Mine": |
|
|
|
case "Mine": |
|
|
|
setMineResists(); |
|
|
|
setMineResists(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case "Dropper": |
|
|
|
|
|
|
|
setDropperResists(); |
|
|
|
default: |
|
|
|
default: |
|
|
|
setGenericResists(); |
|
|
|
setGenericResists(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void setDropperResists() { |
|
|
|
|
|
|
|
this.immuneToAll = false; |
|
|
|
|
|
|
|
this.resists.put(DamageType.Slash, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Crush, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Pierce, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Magic, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Bleed, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Poison, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Mental, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Holy, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Unholy, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Lightning, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Fire, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Cold, 75f); |
|
|
|
|
|
|
|
this.resists.put(DamageType.Healing, 75f); |
|
|
|
|
|
|
|
this.immuneTo.put(DamageType.Siege, true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Resists(Resists r) { |
|
|
|
public Resists(Resists r) { |
|
|
|
for (DamageType dt : r.resists.keySet()) |
|
|
|
for (DamageType dt : r.resists.keySet()) |
|
|
|
this.resists.put(dt, r.resists.get(dt)); |
|
|
|
this.resists.put(dt, r.resists.get(dt)); |
|
|
|