Add most AI lines

This commit is contained in:
2021-04-24 18:47:51 +02:00
parent b4f2e85503
commit a7765e5355
13 changed files with 159 additions and 3 deletions
+5
View File
@@ -70,6 +70,11 @@ namespace EvilSatellites.Objects
{
var proj = (Projectile)obj;
if (proj.Owner == this) return;
var scr = (GameScreen)Screen;
if (proj.Owner == scr.GetPlayer())
{
scr.Manager.Computer.Play("Hit");
}
}
Health -= 10;
if (obj.Type == ObjectType.Player)