[1.2.2] Display error: resists_actor_type on character sheet

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Alisar
Cornac
Posts: 44
Joined: Sat May 31, 2014 7:54 pm

[1.2.2] Display error: resists_actor_type on character sheet

#1 Post by Alisar »

CharacterSheet.lua line 879 - 885

Code: Select all

		if player.resists_actor_type then
			for i, t in pairs(player.resists_actor_type) do
				if t and t ~= 0 then
					self:mouseTooltip(self.TOOLTIP_RESIST, s:drawColorStringBlended(self.font, ("#ORANGE#%-10s#LAST#: #00ff00#%3d%% / %d%%"):format(i:capitalize(), t, player.resists_cap_actor_type or 100), w, h, 255, 255, 255, true)) h = h + self.font_h
				end
			end
		end
Doesn't check if the resist is over cap, leading me to have "Summoned: 77% / 70%" resists displayed. Only a display bug, it still calculates the cap correctly when doing damage.

Also, I just got the best belt ever.

Alisar
Cornac
Posts: 44
Joined: Sat May 31, 2014 7:54 pm

Re: [1.2.2] Display error: resists_actor_type on character s

#2 Post by Alisar »

Also, "Changes resistances cap: X%" doesn't affect resists_cap_actor_type. Not sure if bug or intended, but it looks odd on character sheet having a different max than every other resist.

Post Reply