Update Shop2.lua

This commit is contained in:
Igor Timofeev 2015-10-23 04:02:57 +03:00
parent 5fb2741dc9
commit d67bea071c

View File

@ -907,7 +907,7 @@ local function buy()
gpu.set(xCountOrSeller, yPos + 1, tostring(itemMarketArray[i].count) .. " шт.")
gpu.set(xPrice, yPos + 1, tostring(itemMarketArray[i].price) .. moneySymbol .. " за шт.")
if itemMarketArray[i].price > massivWithProfile.money then
if itemMarketArray[i].price > massivWithProfile.money or itemMarketArray[i].nickname == massivWithProfile.nickname then
ecs.drawAdaptiveButton(xSize - 13, yPos, 2, 1, "Купить", 0xBBBBBB, 0xFFFFFF)
else
newObj("BuyButtons", i, ecs.drawAdaptiveButton(xSize - 13, yPos, 2, 1, "Купить", 0x66b6ff, 0xFFFFFF))