[b41]Too many resistances shown in tooltip

Moderator: Moderator

Post Reply
Message
Author
alocritani
Cornac
Posts: 36
Joined: Sat Jul 23, 2011 9:00 am

[b41]Too many resistances shown in tooltip

#1 Post by alocritani »

On character tooltip more resistances are displayed than in the character screen.
on character screen I have:

All Resists: 9%
Nature Resist(cap): 34%( 70%)
Blight Resist(cap): 14%( 70%)
Light Resist(cap): 19%( 70%)
Darkness Resist(cap): 19%( 70%)

while on tooltip I have
tome-3.9.41-1341652409.png
tome-3.9.41-1341652409.png (41.34 KiB) Viewed 2150 times

alocritani
Cornac
Posts: 36
Joined: Sat Jul 23, 2011 9:00 am

Re: [b41]Too many resistances shown in tooltip

#2 Post by alocritani »

I'm doing a bit of research on this problem and I think that the reason is that when you wear an item that provides you resistance against fire (for example) in your "resists" table the field "fire resistance" is increased by the resistance value. If "fire resist" field doesn't exist, it is created.
When you unware the same item, the "fire resistance" field is decreased, but if it reaches zero, it is not deleted.

so you could have several resists fields set to zero and I suppose that this is the cause of seeing all that "extra" resistances in tooltip.

I'm trying to confirm this idea, so maybe I'll wrote here any news soon.

alocritani
Cornac
Posts: 36
Joined: Sat Jul 23, 2011 9:00 am

Re: [b41]Too many resistances shown in tooltip

#3 Post by alocritani »

Idea confirmed:
you can check quickly see what I mean using this code in lua console

Code: Select all

r=game.player.resists
l=game.log

for i,v in pairs(r) do if i~="all" then l(engine.DamageType:get(i).name..":"..v) else l(i..":"..v) end end
in my case I've seen (in log file) several lines like "temporal: 0" and this is the reason why in tooltip there are more resistance than they should be

alocritani
Cornac
Posts: 36
Joined: Sat Jul 23, 2011 9:00 am

Re: [b41]Too many resistances shown in tooltip

#4 Post by alocritani »


Post Reply