View difference between Paste ID: AKZ8BrAg and 2AE5txc5
SHOW: | | - or go back to the newest paste.
1
class Wombat{
2
	public int Health;
3
	public int Armor;
4
5
	public void TakeDamage(int damage){
6
		Health -= damage - armor;
7
		if(Health <= 0){
8
			Console.WriteLine("Я умер");
9
		}
10
	}
11
}
12
13
class Human{
14
	public int Health;
15
	public int Agility;
16
17
	public void TakeDamage(int damage){
18
		Health -= damage / Agility;
19
		if(Health <= 0){
20
			Console.WriteLine("Я умер");
21
		}
22
	}
23
}