public override void Activate() //активация { Hurt(Target, 5); SpawnStarEffect(Target); Shake(); OutputDebugger.Write("Knock! Enemy stroke you with its wooden arm!"); }
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); }
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)); }
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"); }
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 + "!"); } }
public override void Activate() //активация { Hurt(Target, 9); Heal(User, 5); SpawnCleaveEffect(Target); OutputDebugger.Write("Hss! Enemy bit you!"); }
public override void Activate() //активация { Hurt(Target, 20, Target.PhysicDefence); Effect = LoadEffect(EffectName, Target); Target.GetComponent <ParticleSystem>().Play(); Shake(); GameObject.Destroy(Effect, 3f); OutputDebugger.Write("огреб!"); }
public override void Activate() //активация { CastBuff(Target, BuffState.Curse); Shake(); Hurt(Target, 30); Effect = LoadEffect(EffectName, Target); OutputDebugger.Write("Ouch! Enemy cursed you!"); }
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 + "!"); } }
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); }
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("гг отхилился!"); }
public override void Activate() //активация { Hurt(Target, 20, Target.FrostDefence); OutputDebugger.Write("Frost!"); }
public override void Activate() //активация { player.Defence = Mathf.RoundToInt(player.Defence * 1.8f); OutputDebugger.Write(player.name + "'s defence has been increased!"); }
public override void Activate() //активация { GameObject.Destroy(Effect, 3f); OutputDebugger.Write("Photo has been binded!"); }
} //имя public override void Activate()//активация карты айдла { OutputDebugger.Write("Skipped turn"); }