function TntMonster() {
	this.armorName = "None";
	this.armorValue = 0;
	this.effects = [];
	this.attack = [];
	this.plural = false;
	this.summoned = false;
	this.quantity = 1;
	this.distance = 180;
}

// Inherit from TntCreature
for (var m in TntCreature.prototype) {
	var f = TntCreature.prototype[m];
	if (typeof f == "function") {
		TntMonster.prototype[m] = f;
	}
}

TntMonster.prototype.getStat = function(stat) {
	if (typeof this[stat] != "undefined") return this[stat];
	if (stat == "CON") return this.getLife();
	if (stat == "STR") return this.getLife() / 2;
	return Math.ceil(this.getLife() / 10);
};

TntMonster.prototype.initMR = function(mr) {
	this.MR = mr;
	this.MRMax = mr;
	this.WIZ = Math.ceil(mr / 10);
	this.WIZMax = this.WIZ;
	this.Dice = Math.floor(this.MRMax / 10) + 1;
	this.calcAdds();
};

TntMonster.prototype.calcAdds = function() {
	this.Adds = Math.ceil(this.MR / 2);
};

TntMonster.prototype.getAdds = function() {
	this.calcAdds();
	return this.Adds;
};

TntMonster.prototype.getDice = function() {
	return this.Dice;
};

TntMonster.prototype.display = function() {
	Adv.setElemValue(this.prefix + "Name", this.Name);
	Adv.setElemValue(this.prefix + "MR", this.MR);
	Adv.setElemValue(this.prefix + "MRMax", this.MRMax);
	Adv.setElemValue(this.prefix + "WIZ", this.WIZ);
	Adv.setElemValue(this.prefix + "WIZMax", this.WIZMax);
	Adv.setElemValue(this.prefix + "Dist", this.distance);
};

TntMonster.prototype.getLife = function() {
	return this.MR;
};

TntMonster.prototype.getMaxLife = function() {
	return this.MRMax;
};

TntMonster.prototype.setLife = function(life) {
	this.MR = life;
};

TntMonster.prototype.getSpd = function() {
	var normalSpd = Math.ceil(this.getLife() / 10);
	return Math.ceil(normalSpd * this.spdMultiplier());
};

TntMonster.prototype.resolveCombatResult = function() {
	var amount = this.getNormalDamage() + this.getMinimumDamage();
	amount -= this.getArmorValue();
	if (amount < 0) amount = 0;
	this.MR -= amount;
	this.MR -= this.getSpiteDamage();
	this.calcAdds();
	if (this.MR <= 0)
		return this.MRMax;
	else
		return 0;
};
