DropModificationManager() { StateResetter.Subscribe(() => { _instance = null; }); DropModifiers.AddNullSafe(ModifierSetQualityLevel.Instance); DropModifiers.AddNullSafe(ModifierLoaderEpicLoot.MagicItem); // Should run AFTER epic loot modifier DropModifiers.AddNullSafe(ModifierSetDurability.Instance); }
ConditionChecker() { StateResetter.Subscribe(() => { _instance = null; }); // Add OnStart conditions OnStartConditions = new HashSet <ICondition>(); OnStartConditions.AddNullSafe(ConditionInventory.Instance); OnStartConditions.AddNullSafe(ConditionLocation.Instance); OnStartConditions.AddNullSafe(ConditionDistanceToCenter.Instance); OnStartConditions.AddNullSafe(ConditionBiome.Instance); // Add OnDeath conditions OnDeathConditions = new HashSet <ICondition>(); OnDeathConditions.AddNullSafe(ConditionCreatureState.Instance); OnDeathConditions.AddNullSafe(ConditionLoaderSpawnThat.ConditionTemplateId); OnDeathConditions.AddNullSafe(ConditionFaction.Instance); OnDeathConditions.AddNullSafe(ConditionNotFaction.Instance); OnDeathConditions.AddNullSafe(ConditionKilledByDamageType.Instance); OnDeathConditions.AddNullSafe(ConditionKilledBySkillType.Instance); OnDeathConditions.AddNullSafe(ConditionKilledWithStatus.Instance); OnDeathConditions.AddNullSafe(ConditionKilledWithStatuses.Instance); OnDeathConditions.AddNullSafe(ConditionKilledByEntityType.Instance); OnDeathConditions.AddNullSafe(ConditionEnvironments.Instance); OnDeathConditions.AddNullSafe(ConditionGlobalKeys.Instance); OnDeathConditions.AddNullSafe(ConditionLevel.Instance); OnDeathConditions.AddNullSafe(ConditionDaytime.Instance); OnDeathConditions.AddNullSafe(ConditionHitByEntityTypeRecently.Instance); OnDeathConditions.AddNullSafe(ConditionLoaderCLLC.ConditionBossAffix); OnDeathConditions.AddNullSafe(ConditionLoaderCLLC.ConditionInfusion); OnDeathConditions.AddNullSafe(ConditionLoaderCLLC.ConditionCreatureExtraEffect); OnDeathConditions.AddNullSafe(ConditionLoaderCLLC.ConditionWorldLevel); }