@ -46,12 +46,32 @@ public class Resists {
@@ -46,12 +46,32 @@ public class Resists {
case "Mine" :
setMineResists ( ) ;
break ;
case "Dropper" :
setDropperResists ( ) ;
default :
setGenericResists ( ) ;
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 ) {
for ( DamageType dt : r . resists . keySet ( ) )
this . resists . put ( dt , r . resists . get ( dt ) ) ;