public static float DualBands(float combinedProc) { bool hasFire = ContextProvider.GetPickupCount(DualBandsModifier.FireBand) > 0; bool hasIce = ContextProvider.GetPickupCount(DualBandsModifier.IceBand) > 0; return((hasFire && hasIce) ? 1 - Mathf.Pow(1 - combinedProc, 2) : 0); }
public override string Format(string value) { int stacks = ContextProvider.GetPickupCount(modifyingIndices); string stacksStr = string.Empty; if (showStacks) { stacksStr += $" ({stacks})"; } return($"\t{name}{stacksStr}: {base.Format(value)}"); }
public static int GetOnlyTeamCount() { return(ContextProvider.GetPickupCount(ContextProvider.GetAllPlayerBodiesExcept(), Instance.ModifyingIndices)); }
public static int GetCount() { return(ContextProvider.GetPickupCount(Instance.ModifyingIndices)); }