function TntEffect(name) {
	this.duration = 1;
	this.effectAmount = 1;
	this.name = name;
	this.permanent = false;
	this.oneSRSuffices = false;
	this.rolledSR = false;
	this.madeSR = false;
	this.srLevel = 1;
	this.srStat = "LK";
	this.lastTurn = 0;
}

TntEffect.prototype.checkSR = function(creature, game) {
	if (this.oneSRSuffices && this.rolledSR) return this.madeSR;
	if (game && (this.lastTurn == game.turns)) return this.madeSR;
	if (game) this.lastTurn = game.turns;
	var sr = TntGame.rollSR(this.srLevel, creature.getStat(this.srStat));
	this.madeSR = sr.success;
	this.rolledSR = true;
	return this.madeSR;
}

TntEffect.prototype.decrement = function(decAmt) {
	if (!decAmt) decAmt = 1;
	this.duration -= decAmt;
}

TntEffect.prototype.setDuration = function(duration) {
	this.duration = duration;
}

TntEffect.prototype.setEffectAmount = function(effectAmount) {
	this.effectAmount = effectAmount;
}

TntEffect.prototype.setPermanent = function(permanent) {
	this.permanent = permanent;
}

TntEffect.prototype.getName = function() {
	return this.name;
}

TntEffect.prototype.getDuration = function() {
	return this.duration;
}

TntEffect.prototype.getEffectAmount = function() {
	return this.effectAmount;
}

TntEffect.prototype.isPermanent = function() {
	return this.permanent;
}
