Heal amount in flyout text

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Heal amount in flyout text

#1 Post 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.
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

Sradac
Sher'Tul
Posts: 1081
Joined: Fri Sep 21, 2007 3:18 am
Location: Angolwen

Re: Heal amount in flyout text

#2 Post 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.

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

Re: Heal amount in flyout text

#3 Post 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})

martinuzz
Archmage
Posts: 399
Joined: Tue Dec 01, 2009 12:38 pm
Location: Netherlands

Re: Heal amount in flyout text

#4 Post by martinuzz »

+1

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: Heal amount in flyout text

#5 Post 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})
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

Post Reply