Exemple #1
0
        public static string getCause(AfflictionType buff)
        {
            string result;

            causes.TryGetValue(buff, out result);
            return(result);
        }
        public static void Prefix(ref string causeStr, AfflictionType affType)
        {
            string trackedCause = BuffCauseTracker.getCause(affType);

            if (!string.IsNullOrEmpty(trackedCause))
            {
                causeStr = trackedCause;
            }
        }
Exemple #3
0
 public static void setCause(AfflictionType buff, string cause)
 {
     if (causes.ContainsKey(buff))
     {
         causes[buff] = cause;
     }
     else
     {
         causes.Add(buff, cause);
     }
 }
Exemple #4
0
 private static bool HasAffliction(AfflictionType afflictionType)
 {
     return(GameManager.GetConditionComponent().HasSpecificAffliction(afflictionType));
 }