Exemplo n.º 1
0
    public void LevelUpInMatch()
    {
        switch (UnityEngine.Random.Range(0, 3))
        {
        case 0:
            if (this.atk != CardPool.GetMaxStatCard((Int32)this.id).atk)
            {
                this.atk = (Byte)(this.atk + 1);
            }
            break;

        case 1:
            if (this.pdef != CardPool.GetMaxStatCard((Int32)this.id).pdef)
            {
                this.pdef = (Byte)(this.pdef + 1);
            }
            break;

        case 2:
            if (this.mdef != CardPool.GetMaxStatCard((Int32)this.id).mdef)
            {
                this.mdef = (Byte)(this.mdef + 1);
            }
            break;
        }
    }
Exemplo n.º 2
0
    public static QuadMistCard CreateQuadMistCard(Int32 id)
    {
        QuadMistCard quadMistCard = new QuadMistCard();

        quadMistCard       = new QuadMistCard(CardPool.GetMaxStatCard(id));
        quadMistCard.atk   = (Byte)((Int32)(quadMistCard.atk / 2) + UnityEngine.Random.Range(0, (Int32)(quadMistCard.atk / 2)));
        quadMistCard.pdef  = (Byte)((Int32)(quadMistCard.pdef / 2) + UnityEngine.Random.Range(0, (Int32)(quadMistCard.pdef / 2)));
        quadMistCard.mdef  = (Byte)((Int32)(quadMistCard.mdef / 2) + UnityEngine.Random.Range(0, (Int32)(quadMistCard.mdef / 2)));
        quadMistCard.arrow = CardPool.RandomCardArrow();
        if (UnityEngine.Random.Range(0, 127) == 0)
        {
            quadMistCard.type = QuadMistCard.Type.FLEXIABLE;
        }
        return(quadMistCard);
    }