Merge branch 'master' of github.com:sippeangelo/DepthsBelow
This commit is contained in:
@@ -23,6 +23,12 @@ namespace DepthsBelow
|
|||||||
set { soldierStat = value; }
|
set { soldierStat = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string Type
|
||||||
|
{
|
||||||
|
get { return type; }
|
||||||
|
set { type = value; }
|
||||||
|
}
|
||||||
|
|
||||||
private bool _selected = false; //I guess as in "currently doing something"
|
private bool _selected = false; //I guess as in "currently doing something"
|
||||||
|
|
||||||
public bool select
|
public bool select
|
||||||
@@ -50,6 +56,11 @@ namespace DepthsBelow
|
|||||||
|
|
||||||
Stat = _soldierStat;
|
Stat = _soldierStat;
|
||||||
|
|
||||||
|
if (type == "Rocket")
|
||||||
|
{
|
||||||
|
Stat.Strength = 50000;
|
||||||
|
}
|
||||||
|
|
||||||
this.Color = Color.White;
|
this.Color = Color.White;
|
||||||
var rc = new SpriteRenderer(this) { Texture = Texture, Color = Color.White };
|
var rc = new SpriteRenderer(this) { Texture = Texture, Color = Color.White };
|
||||||
AddComponent(rc);
|
AddComponent(rc);
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ namespace DepthsBelow
|
|||||||
GetComponent<SpriteRenderer>().Texture = Texture;
|
GetComponent<SpriteRenderer>().Texture = Texture;
|
||||||
Transform.World.Origin = new Vector2(((float)Texture.Width) / 2f, ((float)Texture.Height) / 2f);
|
Transform.World.Origin = new Vector2(((float)Texture.Width) / 2f, ((float)Texture.Height) / 2f);
|
||||||
GetComponent<SpriteRenderer>().Offset = (new Vector2(Texture.Width / 2f, Texture.Height / 2f) - new Vector2(Grid.TileSize / 2, Grid.TileSize / 2)) * -1;
|
GetComponent<SpriteRenderer>().Offset = (new Vector2(Texture.Width / 2f, Texture.Height / 2f) - new Vector2(Grid.TileSize / 2, Grid.TileSize / 2)) * -1;
|
||||||
|
GetComponent<Stat>()._MaxHP = 500;
|
||||||
GetComponent<Stat>().MaxHP = 500;
|
GetComponent<Stat>().MaxHP = 500;
|
||||||
GetComponent<Stat>().Life = 500;
|
GetComponent<Stat>().Life = 500;
|
||||||
GetComponent<Stat>().Defence = 15;
|
GetComponent<Stat>().Defence = 15;
|
||||||
|
|||||||
Reference in New Issue
Block a user