예제 #1
0
파일: EquipmentUse.cs 프로젝트: 41ross/sza
    public void Use_To_Ware(FightStats fightStats, Stats stats, Item item)
    {
        //Debug.Log(item.ToString());

        fightStats.Attack  += item.ItemFightStats.Attack;
        fightStats.Defence += item.ItemFightStats.Defence;
    }
예제 #2
0
 private void DisplayFight(IAttackable monster, FightStats fightStats)
 {
     WriteColor($"{player.Name.PadRight(30, ' ')}{monster.Name}", ConsoleColor.Gray);
     Console.WriteLine();
     WriteColor($"{HealthBar(player).PadRight(30, ' ')}{HealthBar(monster)}", ConsoleColor.Green);
     Console.WriteLine();
     Console.WriteLine();
     if (fightStats.EventMessage == null)
     {
         Console.WriteLine($"{fightStats.Attacker} dealt {fightStats.DamageDealt} damage to {fightStats.Defender}.");
     }
     else
     {
         Console.WriteLine(fightStats.EventMessage);
     }
 }
예제 #3
0
 public void Use_DressedUp(FightStats fightStats, Stats stats, Item item)
 {
 }
예제 #4
0
 public void Use_When_Ware(FightStats fightStats, Stats stats, Item item)
 {
 }
예제 #5
0
 public void Use_To_TakeOff(FightStats fightStats, Stats stats, Item item)
 {
 }
예제 #6
0
파일: EquipmentUse.cs 프로젝트: 41ross/sza
 public void Use_When_Ware(FightStats fightStats, Stats stats, Item item)
 {
     //Debug.Log("WARERERE " + item.itemName);
 }
예제 #7
0
파일: EquipmentUse.cs 프로젝트: 41ross/sza
 public void Use_To_TakeOff(FightStats fightStats, Stats stats, Item item)
 {
     fightStats.Attack  -= item.ItemFightStats.Attack;
     fightStats.Defence -= item.ItemFightStats.Defence;
 }
예제 #8
0
 void Awake()
 {
     fightStats = new FightStats(100, 100);
 }
예제 #9
0
 public void Use_To_Ware(FightStats fightStats, Stats stats, Item item)
 {
     fightStats.Attack  += item.ItemFightStats.Attack;
     fightStats.Defence += item.ItemFightStats.Defence;
 }
예제 #10
0
    public void Use_To_Ware(FightStats fightStats, Stats stats, Item item)
    {
        BuffController buffController = Global.Component.GetBuffController();

        buffController.ActivateBuff(item);
    }
예제 #11
0
파일: NewLvL.cs 프로젝트: 41ross/sza
 public NewLvL(FightStats lvlUpFightStats)
 {
     this.lvlUpFightStats = lvlUpFightStats;
 }
예제 #12
0
파일: NewLvL.cs 프로젝트: 41ross/sza
 public void LvlUp(ref FightStats fightStats)
 {
     fightStats.Attack  += lvlUpFightStats.Attack;
     fightStats.Defence += lvlUpFightStats.Defence;
 }