2012-01-07 00:54:17 +01:00
|
|
|
SkullNone = 0
|
|
|
|
SkullYellow = 1
|
|
|
|
SkullGreen = 2
|
|
|
|
SkullWhite = 3
|
|
|
|
SkullRed = 4
|
|
|
|
SkullBlack = 5
|
|
|
|
SkullOrange = 6
|
|
|
|
|
|
|
|
ShieldNone = 0
|
|
|
|
ShieldWhiteYellow = 1
|
|
|
|
ShieldWhiteBlue = 2
|
|
|
|
ShieldBlue = 3
|
|
|
|
ShieldYellow = 4
|
|
|
|
ShieldBlueSharedExp = 5
|
|
|
|
ShieldYellowSharedExp = 6
|
|
|
|
ShieldBlueNoSharedExpBlink = 7
|
|
|
|
ShieldYellowNoSharedExpBlink = 8
|
|
|
|
ShieldBlueNoSharedExp = 9
|
|
|
|
ShieldYellowNoSharedExp = 10
|
|
|
|
|
|
|
|
EmblemNone = 0
|
|
|
|
EmblemGreen = 1
|
|
|
|
EmblemRed = 2
|
|
|
|
EmblemBlue = 3
|
|
|
|
|
|
|
|
function Creature:onSkullChange(skullId)
|
|
|
|
if skullId == SkullYellow then
|
|
|
|
self:setSkullTexture(resolvepath('images/skull_yellow.png'))
|
|
|
|
elseif skullId == SkullGreen then
|
|
|
|
self:setSkullTexture(resolvepath('images/skull_green.png'))
|
|
|
|
elseif skullId == SkullWhite then
|
|
|
|
self:setSkullTexture(resolvepath('images/skull_white.png'))
|
|
|
|
elseif skullId == SkullRed then
|
|
|
|
self:setSkullTexture(resolvepath('images/skull_red.png'))
|
|
|
|
elseif skullId == SkullBlack then
|
|
|
|
self:setSkullTexture(resolvepath('images/skull_black.png'))
|
|
|
|
elseif skullId == SkullOrange then
|
|
|
|
self:setSkullTexture(resolvepath('images/skull_orange.png'))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function Creature:onShieldChange(shieldId)
|
|
|
|
if shieldId == ShieldWhiteYellow then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_yellow_white.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldWhiteBlue then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_blue_white.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldBlue then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_blue.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldYellow then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_yellow.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldBlueSharedExp then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_blue_shared.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldYellowSharedExp then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_yellow_shared.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldBlueNoSharedExpBlink then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_blue_not_shared.png'), true)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldYellowNoSharedExpBlink then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_yellow_not_shared.png'), true)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldBlueNoSharedExp then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_blue_not_shared.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
elseif shieldId == ShieldYellowNoSharedExp then
|
2012-01-11 23:31:23 +01:00
|
|
|
self:setShieldTexture(resolvepath('images/shield_yellow_not_shared.png'), false)
|
2012-01-07 00:54:17 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function Creature:onEmblemChange(emblemId)
|
|
|
|
if emblemId == EmblemGreen then
|
|
|
|
self:setEmblemTexture(resolvepath('images/emblem_green.png'))
|
|
|
|
elseif emblemId == EmblemRed then
|
|
|
|
self:setEmblemTexture(resolvepath('images/emblem_red.png'))
|
|
|
|
elseif emblemId == EmblemBlue then
|
|
|
|
self:setEmblemTexture(resolvepath('images/emblem_blue.png'))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|