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
[b41]Too many resistances shown in tooltip
Moderator: Moderator
-
- Cornac
- Posts: 36
- Joined: Sat Jul 23, 2011 9:00 am
-
- Cornac
- Posts: 36
- Joined: Sat Jul 23, 2011 9:00 am
Re: [b41]Too many resistances shown in tooltip
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.
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.
-
- Cornac
- Posts: 36
- Joined: Sat Jul 23, 2011 9:00 am
Re: [b41]Too many resistances shown in tooltip
Idea confirmed:
you can check quickly see what I mean using this code in lua console
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
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
-
- Cornac
- Posts: 36
- Joined: Sat Jul 23, 2011 9:00 am