Exemplo n.º 1
0
    public override void ChangeStats(ELEMENTSTATS statistics, int value)
    {
        switch (statistics)
        {
        case ELEMENTSTATS.HEAL:
            playerData.currentPlayerHealt -= value;
            HitMe(value);
            if (playerData.currentPlayerHealt <= 0)
            {
                playerData.currentPlayerHealt = 0;
                this.status = ElementStatus.DEAD;
                IamDead();
            }
            break;

        case ELEMENTSTATS.SPEED:
            playerData.playerSpeed += value;
            break;

        case ELEMENTSTATS.ITEMSCOUNT:
            playerData.playerItemCount += value;
            RefreshGuears(this.playerData.playerItemCount);
            break;

        default:
            break;
        }
    }
Exemplo n.º 2
0
 public virtual void ChangeStats(ELEMENTSTATS statistics, int value)
 {
 }