Ejemplo n.º 1
0
 //Damage recieved by tower
 private void AttackerRecievedDamage(IApiClient client, SetupState setupState, uint damage)
 {
     RoundState.AttackerInfo.CurrentHealth -= damage * setupState.AttackerUpgrades.Last().ArmorMultiplier;
     if (RoundState.AttackerInfo.CurrentHealth <= 0)
     {
         System.Console.Out.WriteLine("Attacker lost!");
     }
     else
     {
         client.AttackerReceivedDamage((int)RoundState.AttackerInfo.CurrentHealth);
         System.Console.Out.WriteLine("-" + damage * setupState.AttackerUpgrades.Last().ArmorMultiplier + "hp!!! HEALTH LEFT:" + RoundState.AttackerInfo.CurrentHealth);
     }
 }
 //Damage recieved by tower
 private void AttackerRecievedDamage(IApiClient client, SetupState setupState, uint damage)
 {
     RoundState.AttackerInfo.CurrentHealth -= damage * setupState.AttackerUpgrades.Last().ArmorMultiplier;
     if (RoundState.AttackerInfo.CurrentHealth <= 0)
     {
         System.Console.Out.WriteLine("Attacker lost!");
     }
     else
     {
         client.AttackerReceivedDamage((int)RoundState.AttackerInfo.CurrentHealth);
         System.Console.Out.WriteLine("-"+damage * setupState.AttackerUpgrades.Last().ArmorMultiplier+"hp!!! HEALTH LEFT:" + RoundState.AttackerInfo.CurrentHealth);
     }
 }