Beispiel #1
0
    public void CheckTurnBonux()
    {
        foreach (CardInfo info in cards)
        {
            if (info.ca.HasTurnEffect)
            {
                foreach (CardEffect effect in info.ca.TurnEffects)
                {
                    switch (effect.turnEffect)
                    {
                    case "jiyi+":
                        pRoleMdl.AddJiyi(int.Parse(effect.effectString));
                        break;

                    case "meili+":
                        pRoleMdl.AddMeili(int.Parse(effect.effectString));
                        break;

                    case "fanying+":
                        pRoleMdl.AddFanying(int.Parse(effect.effectString));
                        break;

                    case "tili+":
                        pRoleMdl.AddTili(int.Parse(effect.effectString));
                        break;

                    case "koucai+":
                        pRoleMdl.AddKoucai(int.Parse(effect.effectString));
                        break;

                    default:
                        break;
                    }
                }
            }
        }
    }