Jump to content
Korean Random
Sign in to follow this  
Apokalipsis_rus

[8834/1.5.1.0] [Fixed] Отображает оставшееся количество опыта не на всех танках

Recommended Posts

В дереве исследований при наведении на неисследованный танк не показывает сколько опыта осталось, но на некоторых показывает

shot_880.jpg

shot_879.jpg

xvm.log python.log

Share this post


Link to post

Short link
Share on other sites

Он показывает только при условии что все (абсолютно все) модули предыдущего танка изучены.

Share this post


Link to post

Short link
Share on other sites

@Wild_RNB , у меня работало, как только открывался путь к танку всегда, как только это сделали. А теперь выборочно. Собственно поэтому и баг-репорт оформил

Share this post


Link to post

Short link
Share on other sites

@sirmax, чего то я не понимаю. В xvm_tooltips/python/__init__.py в функции

def StatusBlockConstructor_construct(base, self)

 вызывается функция 

getUnlockPrice(vehicle.intCD, parentCD, vehicle.level).

По идее она перехватывается в xvm_limits/python/__init__.py:

@overrideMethod(tooltips, 'getUnlockPrice')
@dependency.replace_none_kwargs(itemsCache=IItemsCache)
def getUnlockPrice(base, compactDescr, parentCD = None, vehicleLevel = UNKNOWN_VEHICLE_LEVEL, itemsCache = None):
    isAvailable, cost, need, defCost, discount = base(compactDescr, parentCD, vehicleLevel)
    if cfg_hangar_enableFreeXpLocker and not freeXP_enable:
        need += itemsCache.items.stats.actualFreeXP
    return (isAvailable, cost, need, defCost, discount)

Значение need в ней изменяется, но в def StatusBlockConstructor_construct(base, self) возвращается не измененное значение need.

Share this post


Link to post

Short link
Share on other sites
5 минут назад, sirmax сказал:

может из-за декоратора?

Раньше работало, вроде

3 часа назад, Apokalipsis_rus сказал:

В дереве исследований при наведении на неисследованный танк не показывает сколько опыта осталось, но на некоторых показывает

Исправлено.

Share this post


Link to post

Short link
Share on other sites

там еще и reimport ниже. как-то криво переопределен метод

 

исправил

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

исправлено в 9169. Тема закрыта

 

 

 

 

Edited by Apokalipsis_rus

Share this post


Link to post

Short link
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...