public int EndMatch(FightUnit _OtherUnit) { if (HP <= 0) { Console.WriteLine("\n\n" + _OtherUnit.Name + "의 공격으로 사망했습니다...."); Console.WriteLine("GAME OVER"); Console.ReadKey(); return(0); } else if (_OtherUnit.HP <= 0) { Console.WriteLine("\n\n" + _OtherUnit.Name + "을(를) 쓰려트렸습니다!"); Console.WriteLine("전리품으로 " + _OtherUnit.Inventory.GS_Item.GS_Name + "을(를) 획득했습니다!"); Inventory.Insert(_OtherUnit.Inventory.GS_Item); Console.ReadKey(); return(1); } else { return(2); } }
public void Damage(FightUnit _OtherUnit) { _OtherUnit.HP -= AT; Console.Write("\n" + Name + "의 공격으로 " + _OtherUnit.Name + "의 체력이 " + AT + "감소했습니다!"); }
public void RivalAlert(FightUnit _OtherUnit) { Console.Clear(); Console.WriteLine(_OtherUnit.GS_Name + "이(가) 나타났다!!"); Console.ReadKey(); }