Fix regression in market

master
Eduardo Bart 11 years ago
parent 28b5fc1d5a
commit 4f6c987d77

@ -1,52 +0,0 @@
Particle
name: shiny_star
min-position-radius: 0
max-position-radius: 8
min-position-angle: 0
max-position-angle: 360
velocity: 4
min-velocity-angle: 0
max-velocity-angle: 360
particle-size: 4 4
texture: shiny_star.png
composition-mode: addition
Effect
name: Shiny3
description: 3 Shiny stars derping aroud
System
position: 0 0
Emitter
position: 0 0
delay: 0
duration: 0
burstRate: 0
burstCount: 3
particle-type: shiny_star
AttractionAffector
position: 0 0
acceleration: 2
Effect
name: Shiny5
description: 5 Shiny stars derping aroud
System
position: 0 0
Emitter
position: 0 0
delay: 0
duration: 0
burstRate: 0
burstCount: 5
particle-type: shiny_star
AttractionAffector
position: 0 0
acceleration: 2

@ -37,7 +37,7 @@ local function readMarketOffer(msg, action, var)
end end
-- parsing protocols -- parsing protocols
local function parseMarketEnter(msg) local function parseMarketEnter(protocol, msg)
local balance local balance
if g_game.getProtocolVersion() >= 973 then if g_game.getProtocolVersion() >= 973 then
balance = msg:getU64() balance = msg:getU64()
@ -64,12 +64,12 @@ local function parseMarketEnter(msg)
return true return true
end end
local function parseMarketLeave(msg) local function parseMarketLeave(protocol, msg)
Market.onMarketLeave() Market.onMarketLeave()
return true return true
end end
local function parseMarketDetail(msg) local function parseMarketDetail(protocol, msg)
local itemId = msg:getU16() local itemId = msg:getU16()
local descriptions = {} local descriptions = {}
@ -110,7 +110,7 @@ local function parseMarketDetail(msg)
return true return true
end end
local function parseMarketBrowse(msg) local function parseMarketBrowse(protocol, msg)
local var = msg:getU16() local var = msg:getU16()
local offers = {} local offers = {}

Loading…
Cancel
Save