Exemple #1
0
        public static void Postfix(FatigueBuff __instance)
        {
            GearItem gearItem = ModUtils.GetComponent <GearItem>(__instance);

            if (gearItem != null)
            {
                BuffCauseTracker.setCause(AfflictionType.ReducedFatigue, gearItem.m_LocalizedDisplayName.Text());
            }
        }
        public static void Prefix(ref string causeStr, AfflictionType affType)
        {
            string trackedCause = BuffCauseTracker.getCause(affType);

            if (!string.IsNullOrEmpty(trackedCause))
            {
                causeStr = trackedCause;
            }
        }