Adds missing feature flags

This commit is contained in:
Kamron Batman 2026-07-26 09:35:07 -07:00
parent cb22c07cfb
commit d728dea1a2
No known key found for this signature in database
GPG key ID: 7D81DF26D9A5D94A
7 changed files with 27 additions and 21 deletions

View file

@ -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; }
}

View file

@ -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}\"";