mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Added new stats to the skills module, fixed minor market error.
* Added Offline Training information. * Added Regeneration Time information. * Added Speed information. * Added base stats/skills information (will show the players increase in a skill e.g. magic level 43 = 40 + 3 bonus from an item). * Fixed the game feature constants in const.lua. * Fixed a market error when logging out. * Added removeTooltip function.
This commit is contained in:
@@ -467,7 +467,7 @@ local function onSelectSellOffer(table, selectedRow, previousSelectedRow)
|
||||
if offer then
|
||||
local price = offer:getPrice()
|
||||
if price > information.balance then
|
||||
balanceLabel:setColor('#b22222')
|
||||
balanceLabel:setColor('#b22222') -- red
|
||||
buyButton:setEnabled(false)
|
||||
else
|
||||
local slice = (information.balance / 2)
|
||||
@@ -751,7 +751,9 @@ function Market.reset()
|
||||
categoryList:setCurrentOption(getMarketCategoryName(MarketCategory.First))
|
||||
searchEdit:setText('')
|
||||
clearFilters()
|
||||
Market.updateCurrentItems()
|
||||
if information and not table.empty(information) then
|
||||
Market.updateCurrentItems()
|
||||
end
|
||||
end
|
||||
|
||||
function Market.clearSelectedItem()
|
||||
|
Reference in New Issue
Block a user