Some minor fixes.
* Mount options will no longer display in unsupported protocols. * Fixed a bug with opening outfit window while its already open. * Fixed base speed stat when using unsupported protocol.
This commit is contained in:
parent
cdea3cdfaf
commit
f93d79649f
|
@ -257,11 +257,13 @@ function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||||
if creatureThing:isLocalPlayer() then
|
if creatureThing:isLocalPlayer() then
|
||||||
menu:addOption(tr('Set Outfit'), function() g_game.requestOutfit() end)
|
menu:addOption(tr('Set Outfit'), function() g_game.requestOutfit() end)
|
||||||
|
|
||||||
|
if g_game.getFeature(GamePlayerMounts) then
|
||||||
if not localPlayer:isMounted() then
|
if not localPlayer:isMounted() then
|
||||||
menu:addOption(tr('Mount'), function() localPlayer:mount() end)
|
menu:addOption(tr('Mount'), function() localPlayer:mount() end)
|
||||||
else
|
else
|
||||||
menu:addOption(tr('Dismount'), function() localPlayer:dismount() end)
|
menu:addOption(tr('Dismount'), function() localPlayer:dismount() end)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if creatureThing:isPartyMember() then
|
if creatureThing:isPartyMember() then
|
||||||
if creatureThing:isPartyLeader() then
|
if creatureThing:isPartyLeader() then
|
||||||
|
|
|
@ -47,6 +47,10 @@ function updateMount()
|
||||||
end
|
end
|
||||||
|
|
||||||
function create(creatureOutfit, outfitList, creatureMount, mountList)
|
function create(creatureOutfit, outfitList, creatureMount, mountList)
|
||||||
|
if outfitWindow and not outfitWindow:isHidden() then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
outfitCreature = creatureOutfit
|
outfitCreature = creatureOutfit
|
||||||
mountCreature = creatureMount
|
mountCreature = creatureMount
|
||||||
outfits = outfitList
|
outfits = outfitList
|
||||||
|
|
|
@ -70,7 +70,7 @@ function resetSkillColor(id)
|
||||||
end
|
end
|
||||||
|
|
||||||
function setSkillBase(id, value, baseValue)
|
function setSkillBase(id, value, baseValue)
|
||||||
if baseValue < 0 or value < 0 then
|
if baseValue <= 0 or value < 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local skill = skillsWindow:recursiveGetChildById(id)
|
local skill = skillsWindow:recursiveGetChildById(id)
|
||||||
|
|
Loading…
Reference in New Issue