public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Charges = reader.ReadInt(); m_Ward = (WardingEffect)reader.ReadInt(); }
public static bool IsUnderWardingEffect(Mobile m, WardingEffect effect) { WardingContext context; if (!m_UnderEffect.TryGetValue(m, out context)) { return(false); } return(context.Effect == effect); }
public RunedSashOfWarding() { Hue = 1157; m_Charges = 50; if(Utility.RandomBool()) m_Ward = WardingEffect.WeaponDamage; else m_Ward = WardingEffect.SpellDamage; Attributes.Brittle = 1; }
public RunedSashOfWarding() { Hue = 1157; m_Charges = 50; if (Utility.RandomBool()) { m_Ward = WardingEffect.WeaponDamage; } else { m_Ward = WardingEffect.SpellDamage; } Attributes.Brittle = 1; }
public static bool IsUnderEffects(Mobile from, WardingEffect type) { return(m_Table.ContainsKey(from) && m_Table[from] == type); }
public static bool IsUnderEffects(Mobile from, WardingEffect type) { return m_Table.ContainsKey(from) && m_Table[from] == type; }
public RunedSashOfWarding() : base(0x485) { m_Charges = 50; m_WardingEffect = Utility.RandomBool() ? WardingEffect.WeaponDamage : WardingEffect.SpellDamage; }
public WardingContext(WardingEffect effect, Timer removeTimer) { Effect = effect; RemoveTimer = removeTimer; }