public static int GetDDArmorMalus(NubiaMobile mob) { NubiaArmor armor = GetBiggerArmor(mob); int malus = 0; if (armor != null) { malus = armor.MalusArmure; } Item item = mob.FindItemOnLayer(Layer.TwoHanded); if (item != null) { if (item is NubiaShield) { NubiaShield bouclier = item as NubiaShield; if (bouclier.MalusArmure < malus) { malus = bouclier.MalusArmure; } } } return(malus); }
public static int GetDexArmorLimite(NubiaMobile mob) { NubiaArmor armor = GetBiggerArmor(mob); int limit = 50; if (armor != null) { limit = armor.ModDexMaximum; } Item item = mob.FindItemOnLayer(Layer.TwoHanded); if (item != null) { if (item is NubiaShield) { NubiaShield bouclier = item as NubiaShield; if (bouclier.ModDexMaximum < limit) { limit = bouclier.ModDexMaximum; } } } return(limit); }
public NubiaShield getBouclier() { Item ibouc = FindItemOnLayer(Layer.TwoHanded); if (ibouc != null && ibouc is BaseShield) { NubiaShield bouclier = ibouc as NubiaShield; return(bouclier); } return(null); }