From 5757d818fd9d25c1e5993e6070e55f6930826d27 Mon Sep 17 00:00:00 2001 From: Niklas Ulf Anders Cullberg Date: Wed, 31 Oct 2012 19:55:53 +0100 Subject: [PATCH] Rocket and Boss Fixed --- DepthsBelow/DepthsBelow/Shot.cs | 11 +++++++++++ DepthsBelow/DepthsBelow/SmallEnemy.cs | 1 + 2 files changed, 12 insertions(+) diff --git a/DepthsBelow/DepthsBelow/Shot.cs b/DepthsBelow/DepthsBelow/Shot.cs index 8ba52b5..067d58f 100755 --- a/DepthsBelow/DepthsBelow/Shot.cs +++ b/DepthsBelow/DepthsBelow/Shot.cs @@ -23,6 +23,12 @@ namespace DepthsBelow set { soldierStat = value; } } + public string Type + { + get { return type; } + set { type = value; } + } + private bool _selected = false; //I guess as in "currently doing something" public bool select @@ -50,6 +56,11 @@ namespace DepthsBelow Stat = _soldierStat; + if (type == "Rocket") + { + Stat.Strength = 50000; + } + this.Color = Color.White; var rc = new SpriteRenderer(this) { Texture = Texture, Color = Color.White }; AddComponent(rc); diff --git a/DepthsBelow/DepthsBelow/SmallEnemy.cs b/DepthsBelow/DepthsBelow/SmallEnemy.cs index c4b0c75..b13a000 100755 --- a/DepthsBelow/DepthsBelow/SmallEnemy.cs +++ b/DepthsBelow/DepthsBelow/SmallEnemy.cs @@ -92,6 +92,7 @@ namespace DepthsBelow GetComponent().Texture = Texture; Transform.World.Origin = new Vector2(((float)Texture.Width) / 2f, ((float)Texture.Height) / 2f); GetComponent().Offset = (new Vector2(Texture.Width / 2f, Texture.Height / 2f) - new Vector2(Grid.TileSize / 2, Grid.TileSize / 2)) * -1; + GetComponent()._MaxHP = 500; GetComponent().MaxHP = 500; GetComponent().Life = 500; GetComponent().Defence = 15;