public int GetPercentage(BoostedAttributeType boostedAttributeType) { var percentage = 0; if (Boosters.ContainsKey((short)boostedAttributeType)) { foreach (var booster in Boosters[(short)boostedAttributeType]) { percentage += GetBoosterPercentage(booster.Type); } } return(percentage); }
public int GetPercentage(BoostedAttributeType boostedAttributeType) { switch (boostedAttributeType) { case BoostedAttributeType.DAMAGE: return((DamageTypes.Count - 1) * 10); case BoostedAttributeType.SHIELD: return((ShieldTypes.Count - 1) * 10); case BoostedAttributeType.MAXHP: return((MaxHpTypes.Count - 1) * 10); default: return(0); } }