Tooltip Armor not showing pdef after enchant

AntiVirus

Единомышленник
Пользователь
Сообщения
48
Розыгрыши
0
Решения
1
Репутация
0
Реакции
4
Баллы
195
Could someone tell me why in some armors when get enchant shows the p def to increase and in some else not ?
Screenshot_1.webp
 
Если клиент интерлюд - то тултип в интерфейсе просто не знает грейды выше S, и потому перерасчет для них не проводит
 
thanks for quick response, do you know the way what can i assist the new grades equal to S ?
Или измени все грейды вещей до S, чтоб интерфейс их распознавал и считал соответственно, либо в interface.u добавлять в обработчик новые грейды и пересчёт под них
 
Either change all item grades to S so that the interface recognizes them and calculates them accordingly, or add new grades to the handler in interface.u and recalculate for them
i have the interface source to make maintenance but i don't have the scope from where that it's happen, i would be thankful if you assist me on that
 
Look into ToolTip.uc
Something like crystaltype
 
You need to introduce a local variable:
local int CrystalChap;
In the ITEM_WEAPON block, we define it:
CrystalChap = Item.CrystalType;
if (Item.CrystalType > 5)
{
CrystalChap = 5;
}
In tooltips for physical and magical attacks, replace Item.CrystalType with CrystalChap, you get something like this:

//Physical Damage
AddTooltipItemOption(94, String(GetPhysicalDamage(Item.WeaponType, Item.SlotBitType, CrystalChap, Item.Enchanted, Item.PhysicalDamage)), true, true, false);

//Masical Damage
AddTooltipItemOption(98, String(GetMagicalDamage(Item.WeaponType, Item.SlotBitType, CrystalChap, Item.Enchanted, Item.MagicalDamage)), true, true, false);


I found this solution by Rolo
2.webp
 

Похожие темы

Ответы
0
Просмотры
453
Назад
Сверху Снизу