List sustained talents / effects on left sidebar

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

Moderator: Moderator

Post Reply
Message
Author
CheapyPipe
Wayist
Posts: 20
Joined: Thu Jun 17, 2010 1:25 am

List sustained talents / effects on left sidebar

#1 Post by CheapyPipe »

Listing the sustained talents and things affecting you on the sidebar would be useful. They're already listed on the 'C'haracter screen but I'm running into the point where I'm running out of space on the first talent page (bottom right), and it would be useful to be able to see which talents are being sustained without having to switch talent pages. I know I would end up forgetting to put some back on. :)

Adding the effects is just the logical next step for this.

Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

Re: List sustained talents / effects on left sidebar

#2 Post by Shoob »

you could add this:

Code: Select all

	h = h + self.font_h
	self.surface:drawColorString(self.font, "#LIGHT_BLUE#Current effects:", 0, h, 255, 255, 255) h = h + self.font_h
	for tid, act in pairs(game.player.sustain_talents) do
		if act then self.surface:drawColorString(self.font, ("#00ff00#%s"):format(game.player:getTalentFromId(tid).name), 0, h, 255, 255, 255) h = h + self.font_h end
	end
to line 93 of PlayerDisplay.lua (in tome/class) if you want it now.

(it has to go before the zone/level if statement)
Oliphant am I, and I never lie.

Post Reply