public override double GetPoints(Mobile m) { if (Points > 0) { return(Points); } return(BulkOrderSystem.GetPoints(m, this.BODType)); }
public RewardsGump(Mobile owner, PlayerMobile user, BODType type, int points = 0) : base(owner, user, BulkOrderSystem.GetRewardCollection(type), 1157082, points == 0 ? BulkOrderSystem.GetPoints(user, type) : points) { BODType = type; UsingBanked = points == 0; var entry = new GumpLabel(230, 65, 0x64, GetPoints(user).ToString("0.000000")); entry.Parent = this; Entries.Insert(10, entry); }