aboutsummaryrefslogtreecommitdiff
path: root/Bitspace/Bitspace/Biome.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Bitspace/Bitspace/Biome.cs')
-rw-r--r--Bitspace/Bitspace/Biome.cs19
1 files changed, 17 insertions, 2 deletions
diff --git a/Bitspace/Bitspace/Biome.cs b/Bitspace/Bitspace/Biome.cs
index 2713f80..653cb2c 100644
--- a/Bitspace/Bitspace/Biome.cs
+++ b/Bitspace/Bitspace/Biome.cs
@@ -11,8 +11,8 @@ namespace Game
private string name;
private char floor; //floor literally what the mobs "step on"
private ConsoleColor color;
- private ushort damage;
- private bool suffocate;
+ private ushort damage;
+ private bool suffocate; //if true it will firstly drain the air var and then will drain health
public string Name
{
@@ -43,5 +43,20 @@ namespace Game
set { suffocate = value; }
get { return suffocate; }
}
+
+ public Biome(string name, char floor, ConsoleColor color) : this(name, floor, color, 0, false)
+ { }
+
+ public Biome(string name, char floor, ConsoleColor color, ushort damage) : this(name, floor, color, damage, false)
+ { }
+
+ public Biome(string name, char floor, ConsoleColor color, ushort damage, bool suffocate)
+ {
+ Name = name;
+ Floor = floor;
+ Color = color;
+ Damage = damage;
+ Suffocate = suffocate;
+ }
}
}