Adds comment

This commit is contained in:
Kamron Batman 2026-07-26 09:46:39 -07:00
parent b92a7fa4f4
commit aa4086a2cd
No known key found for this signature in database
GPG key ID: 7D81DF26D9A5D94A

View file

@ -11,16 +11,12 @@ namespace Server.Engines.Insurance;
public static class Insurance
{
public static bool Enabled => ServerFeatureFlags.InsuranceEnabled;
private static Dictionary<Mobile, InsuranceContext> _insuranceContexts;
private static readonly Dictionary<Mobile, InsuranceContext> _insuranceContexts = [];
public static void Configure()
{
// Legacy, but not expected to be used anymore in favor of the feature flag system
ServerFeatureFlags.InsuranceEnabled = ServerConfiguration.GetSetting("insurance.enable", Core.AOS);
if (Enabled)
{
_insuranceContexts = [];
}
}
public static int GetInsuranceCost(Mobile from, Item item) => 600;