Exemple #1
0
 public override void Activate() //активация
 {
     Hurt(Target, 5);
     SpawnStarEffect(Target);
     Shake();
     OutputDebugger.Write("Knock! Enemy stroke you with its wooden arm!");
 }
Exemple #2
0
    public bool UpdateEntity()//TODO: добавить проверку хп, и бафчиков всяких
    {
        ResetDefence();

        switch (this.State)
        {
        case BuffState.Curse:
        {
            OutputDebugger.Write("O chaos! It took your precious " + (Health * 0.15f).ToString());
            this.Health -= Mathf.RoundToInt(Health * 0.15f);
        }
        break;

        case BuffState.Poison:
        {
            this.Health -= 15;
            OutputDebugger.Write("Ew.");
        }
        break;
        }

        if (Health <= 0)
        {
            if (this.tag == "Enemy")// TODO: временно
            {
                Destroy(this.gameObject);
            }
            else
            {
                this.State = BuffState.Down;
                OutputDebugger.Write(name + " has been KO'd!");
            }
        }
        return(true);
    }
Exemple #3
0
    public override void Activate() //активация
    {
        CastBuff(Target, BuffState.Poison);
        Target.Defence = Mathf.RoundToInt(Target.Defence * .5f);

        OutputDebugger.Write(string.Format("Eww.. {0} is poisoned!", Target.name));
    }
Exemple #4
0
    IEnumerator PlayerTurn()
    {
        playerTurn = true;

        foreach (PlayerBase player in PlayerParty)
        {
            if (player.State != BuffState.Down)
            {
                player.UpdateSkills(PickedEnemy, PickedPlayer);
                currentPlayer = player;

                if (PickedEnemy == null)
                {
                    PickedEnemy = EnemyHandler.enemyGroup[0];
                }

                try
                {
                    crosshair.position = PickedEnemy.transform.position;
                    UpdateInfo();
                }
                catch (System.NullReferenceException)
                {
                    StreamWriter SW = File.CreateText("C:/Users/admin/Desktop/хрякрпг/GameCrashLog_1.dat");
                    SW.WriteLine("Yee");
                    SW.Close();

                    Switch.EndFight();// TODO: убрать эксепшн
                }

                //UpdateInfo();

                UpdateNames(player);

                OutputDebugger.Write("It's yout turn!");

                yield return(new WaitWhile(TurnProcess));

                player.UpdateSkills(PickedEnemy, PickedPlayer);

                player.PickedPlayer = PickedPlayer;

                PickedCard = player.skillList[skillIndex];

                if (PickedCard == null)
                {
                    PickedCard = new CardIdle();
                }

                Deck.PutCard(PickedCard);

                InvertTurn();
            }
        }

        yield return(new WaitForSeconds(1));

        EnemyHandler.StartCoroutine("EnemyTurn");
    }
Exemple #5
0
    public override void Activate() // активация
    {
        if (Target.State == BuffState.Down)
        {
            Heal(Target, Mathf.RoundToInt(Target.MaxHealth * 0.15f));
            Target.State = BuffState.Nothing;

            OutputDebugger.Write("Booster revives " + Target.name + "!");
        }
    }
Exemple #6
0
    public override void Activate() //активация
    {
        Hurt(Target, 9);
        Heal(User, 5);

        SpawnCleaveEffect(Target);


        OutputDebugger.Write("Hss! Enemy bit you!");
    }
Exemple #7
0
    public override void Activate() //активация
    {
        Hurt(Target, 20, Target.PhysicDefence);
        Effect = LoadEffect(EffectName, Target);
        Target.GetComponent <ParticleSystem>().Play();
        Shake();

        GameObject.Destroy(Effect, 3f);
        OutputDebugger.Write("огреб!");
    }
Exemple #8
0
    public override void Activate() //активация
    {
        CastBuff(Target, BuffState.Curse);

        Shake();

        Hurt(Target, 30);

        Effect = LoadEffect(EffectName, Target);
        OutputDebugger.Write("Ouch! Enemy cursed you!");
    }
Exemple #9
0
    public override void Activate() // активация
    {
        if (Target.State == BuffState.Down)
        {
            int health = Mathf.RoundToInt(User.Health / 2);

            Heal(Target, health);
            HurtThroughArmor(User, health);

            Target.State = BuffState.Nothing;

            OutputDebugger.Write(User.name + " donates their blood to " + Target.name + "!");
        }
    }
Exemple #10
0
    protected override void Act() //переопределенный act
    {
        if (bindCounter > 0)      // TODO: возможно, почистить
        {
            bindCounter--;
            if (bindCounter == 0)
            {
                OutputDebugger.Write("The photo fades. Binding has been lifted!");
            }
            pickedSkill = new CardCursedPin(turnHandler.PlayerParty[0]);
        }

        else
        {
            pickedSkill = new CardVoodooShot(turnHandler.PlayerParty[0]);
            bindCounter = 3;
        }

        //pickedSkill = new CardFoulSmell(turnHandler.PlayerParty[0]);// TODO: убрать

        Deck.PutCard(pickedSkill);
    }
Exemple #11
0
    public override void Activate() // активация
    {
        if (Target.State != BuffState.Down)
        {
            Heal(Target, Mathf.RoundToInt(Target.MaxHealth * 0.15f));// Хил 15% (при 100 хп это 15)
            if (Target.State != BuffState.Nothing)
            {
                OutputDebugger.Write("Relic healed your ailment!");
                Target.State = BuffState.Nothing;
            }
        }
        else
        {
            Heal(Target, Mathf.RoundToInt(Target.MaxHealth * 0.15f));// Хил 15% (при 100 хп это 15)
            Target.State = BuffState.Nothing;
            OutputDebugger.Write(string.Format("Relic revived fallen {0} !", Target.name));
        }

        Effect = LoadEffect(EffectName, Target);
        GameObject.Destroy(Effect, 3f);
        OutputDebugger.Write("гг отхилился!");
    }
Exemple #12
0
    public override void Activate() //активация
    {
        Hurt(Target, 20, Target.FrostDefence);

        OutputDebugger.Write("Frost!");
    }
Exemple #13
0
 public override void Activate() //активация
 {
     player.Defence = Mathf.RoundToInt(player.Defence * 1.8f);
     OutputDebugger.Write(player.name + "'s defence has been increased!");
 }
Exemple #14
0
 public override void Activate() //активация
 {
     GameObject.Destroy(Effect, 3f);
     OutputDebugger.Write("Photo has been binded!");
 }
Exemple #15
0
 } //имя
 public override void Activate()//активация карты айдла
 {
     OutputDebugger.Write("Skipped turn");
 }