public int GetEffectIdForTeam(FreezeTeam Team, EffectType Type) { if (Type.Equals(EffectType.Helmet)) { if (Team.Equals(FreezeTeam.Red)) { return RED_HELMET_EFFECT; } else if (Team.Equals(FreezeTeam.Blue)) { return BLUE_HELMET_EFFECT; } else if (Team.Equals(FreezeTeam.Green)) { return GREEN_HELMET_EFFECT; } else if (Team.Equals(FreezeTeam.Yellow)) { return YELLOW_HELMET_EFFECT; } } else if (Type.Equals(EffectType.Shield)) { if (Team.Equals(FreezeTeam.Red)) { return RED_SHIELD_EFFECT; } else if (Team.Equals(FreezeTeam.Blue)) { return BLUE_SHIELD_EFFECT; } else if (Team.Equals(FreezeTeam.Green)) { return GREEN_SHIELD_EFFECT; } else if (Team.Equals(FreezeTeam.Yellow)) { return YELLOW_SHIELD_EFFECT; } } return -1; }