示例#1
0
        public static void StatusEffects_RemoveTrait(Trait __state)
        {
            CustomTrait trait = __state?.GetHook <CustomTrait>();

            if (__state != null && RogueFramework.IsDebugEnabled(DebugFlags.Traits))
            {
                RogueFramework.LogDebug($"Removing trait {trait} ({__state.traitName}, {__state.GetStatusEffects().agent.agentName}).");
            }
            trait?.OnRemoved();
        }