Page 1 of 1

[b42] Error in lua code for Steady Mind talent

Posted: Mon Oct 15, 2012 11:34 pm
by jenx
I've been puzzled as to why my defence was being rasied by Steady Mind when I pumped Cunning, as the description says it rises with Dexterity. So I checked the code and found the reason:

Code: Select all

newTalent{
	name = "Steady Mind",
	type = {"technique/unarmed-training", 2},
	mode = "passive",
	points = 5,
	require = techs_cun_req2,
	getDefense = function(self, t) return self:combatTalentStatDamage(t, "cun", 5, 35) end,
	getMental = function(self, t) return self:combatTalentStatDamage(t, "cun", 5, 35) end,
	info = function(self, t)
		local defense = t.getDefense(self, t)
		local saves = t.getMental(self, t)
		return ([[Superior cunning and training allows you to out think and out wit your opponents physical and mental assualts.  Increases defense by %d and mental saves by %d.
		The defense bonus will scale with the Dexterity stat and the save bonus with the Cunning stat.]]):
		format(defense, saves)
	end,
}
I think

Code: Select all

getDefense = function(self, t) return self:combatTalentStatDamage(t, "cun", 5, 35) end,
should be

Code: Select all

getDefense = function(self, t) return self:combatTalentStatDamage(t, "dex", 5, 35) end,

Re: [b42] Error in lua code for Steady Mind talent

Posted: Thu Nov 22, 2012 1:30 pm
by darkgod
fixed