diff --git a/DepthsBelow/DepthsBelow/Component/Stat.cs b/DepthsBelow/DepthsBelow/Component/Stat.cs index 4412f8a..dc1afa3 100644 --- a/DepthsBelow/DepthsBelow/Component/Stat.cs +++ b/DepthsBelow/DepthsBelow/Component/Stat.cs @@ -57,6 +57,7 @@ namespace DepthsBelow.Component public void Kill() { hp = 0; + //Console.WriteLine("Blargh! I am dead!"); } public int Penalty(int distance) diff --git a/DepthsBelow/DepthsBelow/SmallEnemy.cs b/DepthsBelow/DepthsBelow/SmallEnemy.cs index c171653..bee04bd 100644 --- a/DepthsBelow/DepthsBelow/SmallEnemy.cs +++ b/DepthsBelow/DepthsBelow/SmallEnemy.cs @@ -52,9 +52,9 @@ namespace DepthsBelow stat.Life = 2; stat.Defence = 0; - stat.Strength = 5; + stat.Strength = 5000; stat.GetAim = 100; - stat.GetDodge = 10; + stat.GetDodge = 50; } public bool Selected @@ -110,6 +110,7 @@ namespace DepthsBelow nextNode = GetComponent().Next(); break; } + Utility.HitTest(this, soldier, Utility.CalculateHitChance(this, soldier)); } if (nextNode != null) diff --git a/DepthsBelow/DepthsBelow/Soldier.cs b/DepthsBelow/DepthsBelow/Soldier.cs index 6987727..509f5e3 100644 --- a/DepthsBelow/DepthsBelow/Soldier.cs +++ b/DepthsBelow/DepthsBelow/Soldier.cs @@ -65,7 +65,7 @@ namespace DepthsBelow stat.Life = 10; stat.Defence = 10; stat.Strength = 10; - stat.GetAim = 100; + stat.GetAim = 10; stat.GetDodge = 20; } diff --git a/DepthsBelow/DepthsBelow/Utility.cs b/DepthsBelow/DepthsBelow/Utility.cs index aa6a870..408c2c4 100644 --- a/DepthsBelow/DepthsBelow/Utility.cs +++ b/DepthsBelow/DepthsBelow/Utility.cs @@ -20,6 +20,7 @@ namespace DepthsBelow int baseDodgeChance = dodging.GetDodge; int basePenalty = shooting.Penalty((int)Vector2.Distance(attacker.GetComponent().World.Position, defender.GetComponent().World.Position) / Grid.TileSize); int chanceToHit = baseHitChance - baseDodgeChance - basePenalty; + //Console.WriteLine(chanceToHit); return chanceToHit; } public static bool HitTest(Entity attacker, Entity defender, int chanceToHit)