Page 1 of 1

(b28) Minor bugs

Posted: Sun Jul 03, 2011 2:45 am
by Hedrachi
Anorithil Mind Blast still doesn't list its radius of 3 anywhere.

The 1200x800 fullscreen the 12th item in hotkey lists is still off to the side of the 1st and un-clickable if all 12 keys have something assigned to them. (It is clickable if something is missing from the list, though.)

Re: (b28) Minor bugs

Posted: Sun Jul 03, 2011 3:11 am
by tiger_eye
Hedrachi wrote:Anorithil Mind Blast still doesn't list its radius of 3 anywhere.
yup, Mind Blast was included in the list here, none of which have gotten updated yet (any volunteers?):

http://forums.te4.org/viewtopic.php?f=42&t=25776

So, one could update the text for 30+ talents, or there could simply be a "radius" field in the talent description if appropriate (for example, other fields include cost, cooldown, range, usage speed, travel speed, etc.)

Re: (b28) Minor bugs

Posted: Sun Jul 03, 2011 4:03 pm
by Hedrachi
Hrm, Mind Blast change (not exactly a lua expert but as far as I can tell this should work):

Code: Select all

newTalent{
	name = "Mind Blast",
	type = {"divine/twilight",3},
	require = divi_req3,
	points = 5,
	random_ego = "attack",
	cooldown = 15,
	negative = 15,
	tactical = { DISABLE = 3 },
	radius = 3,
	direct_hit = true,
	requires_target = true,
	target = function(self, t)
		return {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), talent=t, selffire=false}
	end,
	getConfuseDuration = function(self, t) return math.floor(self:getTalentLevel(t) + self:getCun(5)) + 2 end,
	getConfuseEfficency = function(self, t) return 50 + self:getTalentLevelRaw(t)*10 end,
	action = function(self, t)
		local tg = self:getTalentTarget(t)
		self:project(tg, self.x, self.y, DamageType.CONFUSION, {
			dur = t.getConfuseDuration(self, t),
			dam = t.getConfuseEfficency(self, t)
		})
		game:playSoundNear(self, "talents/flame")
		return true
	end,
	info = function(self, t)
		local duration = t.getConfuseDuration(self, t)
		local radius = self:getTalentRadius(t)
		return ([[Let out a mental cry that shatters the will of your targets within radius %d, confusing them for %d turns.
		The duration will improve with the Cunning stat.]]):
		format(radius, duration)
	end,
}
First edit I'm admitting I made: Yep. Works fine.