Skip to content

Commit

Permalink
Lua code format - (EmmyLuaCodeStyle)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 5, 2023
1 parent 8b316cb commit 9275738
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 189 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function theCursedMedusa.onUse(player, item, fromPosition, target, toPosition, i
if (item.itemid == 21506) and (item.itemid == 10420) then
if (player:getStorageValue(Storage.TibiaTales.TheCursedCrystal.Oneeyedjoe) == 2) then
if not (((Player(player):getPosition().x - TCC_PILLARPETRIFIED.x) < 5) and ((Player(player):getPosition().x - TCC_PILLARPETRIFIED.x) > -5) and
((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) < 5) and ((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) > -5) and (Player(player):getPosition().z == TCC_PILLARPETRIFIED.z)) then
((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) < 5) and ((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) > -5) and (Player(player):getPosition().z == TCC_PILLARPETRIFIED.z)) then
return
end
player:setStorageValue(Storage.TibiaTales.TheCursedCrystal.Oneeyedjoe, 3)
Expand All @@ -31,7 +31,7 @@ function theCursedMedusa.onUse(player, item, fromPosition, target, toPosition, i
end
if (Player(player) == Player(Tile(topos):getTopCreature())) and (player:getStorageValue(Storage.TibiaTales.TheCursedCrystal.Oneeyedjoe) < 2) then
if not (((Player(player):getPosition().x - TCC_PILLARPETRIFIED.x) < 5) and ((Player(player):getPosition().x - TCC_PILLARPETRIFIED.x) > -5) and
((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) < 5) and ((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) > -5) and (Player(player):getPosition().z == TCC_PILLARPETRIFIED.z)) then
((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) < 5) and ((Player(player):getPosition().y - TCC_PILLARPETRIFIED.y) > -5) and (Player(player):getPosition().z == TCC_PILLARPETRIFIED.z)) then
return
end
player:setStorageValue(Storage.TibiaTales.TheCursedCrystal.Oneeyedjoe, 2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ function trainerExit.onStepIn(creature, item, position, fromPosition)
return true
end


local positions = {
{ x = 991, y = 1031, z = 7 },
{ x = 1057, y = 1023, z = 7 }
Expand Down
Loading

0 comments on commit 9275738

Please sign in to comment.