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; } }
public static void setCause(AfflictionType buff, string cause) { if (causes.ContainsKey(buff)) { causes[buff] = cause; } else { causes.Add(buff, cause); } }
private static bool HasAffliction(AfflictionType afflictionType) { return(GameManager.GetConditionComponent().HasSpecificAffliction(afflictionType)); }