public TimeBoostToken(ITimeBoost boost, int amount) : base(Utility.RandomList(4173, 4174)) { Boost = boost; Stackable = true; Amount = Math.Max(1, Math.Min(60000, amount)); LootType = LootType.Blessed; }
public static void Write(this GenericWriter writer, ITimeBoost boost) { writer.SetVersion(0); if (boost != null) { writer.Write(true); writer.Write(boost.Value); } else { writer.Write(false); } }
public TimeBoostToken(ITimeBoost boost) : this(boost, 1) { }
public static bool Consume(PlayerMobile m, ITimeBoost b, int amount) { return(m != null && Consume(m.Account, b, amount)); }
public static bool Consume(IAccount a, ITimeBoost b, int amount) { var p = EnsureProfile(a); return(p != null && p.Consume(b, amount)); }
public TimeBoostToken(ITimeBoost boost, int amount) : base(Utility.RandomList(4173, 4174)) { Boost = boost; Stackable = true; Amount = Math.Max(1, Math.Min(60000, amount)); LootType = LootType.Blessed; }
public static bool CanCredit(PlayerMobile m, ITimeBoost b, int amount) { return(m != null && CanCredit(m.Account, b, amount)); }
public TimeBoostToken(ITimeBoost boost) : this(boost, 1) { }
public static bool Credit(PlayerMobile m, ITimeBoost b, int amount) { return m != null && Credit(m.Account, b, amount); }
public static void Write(this GenericWriter writer, ITimeBoost boost) { writer.SetVersion(0); if (boost != null) { writer.Write(true); writer.Write(boost.Value); } else { writer.Write(false); } }
public static bool Consume(IAccount a, ITimeBoost b, int amount) { var p = EnsureProfile(a); return p != null && p.Consume(b, amount); }
public static bool CanConsume(PlayerMobile m, ITimeBoost b, int amount) { return m != null && CanConsume(m.Account, b, amount); }