Adds missing feature flags
This commit is contained in:
parent
cb22c07cfb
commit
d728dea1a2
7 changed files with 27 additions and 21 deletions
|
|
@ -10,4 +10,5 @@ public static class ServerFeatureFlags
|
|||
public static bool PvPCombat { get; set; } = true;
|
||||
public static bool BankAccess { get; set; } = true;
|
||||
public static bool SpeedhackDetection { get; set; }
|
||||
public static bool InsuranceEnabled { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1884,7 +1884,7 @@ public partial class Item : IHued, IComparable<Item>, ISpawnable, IObjectPropert
|
|||
{
|
||||
list.Add(1049643); // cursed
|
||||
}
|
||||
else if (Insured)
|
||||
else if (ServerFeatureFlags.InsuranceEnabled && Insured)
|
||||
{
|
||||
list.Add(1061682); // <b>insured</b>
|
||||
}
|
||||
|
|
@ -4215,11 +4215,13 @@ public partial class Item : IHued, IComparable<Item>, ISpawnable, IObjectPropert
|
|||
Delete();
|
||||
}
|
||||
|
||||
public virtual bool CheckBlessed(Mobile m) => m_LootType == LootType.Blessed || Insured || m != null && m == BlessedFor;
|
||||
public virtual bool CheckBlessed(Mobile m) =>
|
||||
m_LootType == LootType.Blessed || ServerFeatureFlags.InsuranceEnabled && Insured || m != null && m == BlessedFor;
|
||||
|
||||
public virtual bool CheckNewbied() => m_LootType == LootType.Newbied;
|
||||
|
||||
public virtual bool IsStandardLoot() => !Insured && BlessedFor == null && m_LootType == LootType.Regular;
|
||||
public virtual bool IsStandardLoot() =>
|
||||
(!ServerFeatureFlags.InsuranceEnabled || !Insured) && BlessedFor == null && m_LootType == LootType.Regular;
|
||||
|
||||
public override string ToString() => $"{Serial} \"{GetType().Name}\"";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue