Page 1 of 1

Heal amount in flyout text

Posted: Sun Aug 14, 2011 1:27 am
by Grey
It would be useful to see amounts healed as fly-out text from actors (both player and enemy). This helps inform of when enemies heal (not always obvious) and what amount is healed (not displayed anywhere, which can be confusing). Flyout text should be cyan or yellow to differentiate it from the green and red damage numbers.

Re: Heal amount in flyout text

Posted: Sun Aug 14, 2011 2:35 am
by Sradac
I agree with this, I always wondered where it was. You could also have the heal text move in the opposite direction as the rest of the dmg text. It would be nice to see an exact number of how much im healed for when I have +40% heal mod. I maximize my heals, I dont use them unless they will heal for the full amount and with +mod I dont know exactly how much that max is.

Re: Heal amount in flyout text

Posted: Sun Aug 14, 2011 12:30 pm
by marvalis
This can easily be done by adding a line like this to the skills that heal:

Code: Select all

				local healPop = +..healPower
				game.flyers:add(sx, sy, 30, (rng.range(0,2)-1) * 0.5, -3, healPop, {0,120,0})

Re: Heal amount in flyout text

Posted: Sun Aug 14, 2011 2:45 pm
by martinuzz
+1

Re: Heal amount in flyout text

Posted: Sun Aug 14, 2011 3:57 pm
by Grey
This is in SVN:

Code: Select all

local sx, sy = game.level.map:getTileToScreen(self.x, self.y)
game.flyers:add(sx, sy, 30, rng.float(-3, -2), (rng.range(0,2)-1) * 0.5, tostring(math.ceil(value)), {255,255,0})