Skip to content

Commit

Permalink
Merge branch 'main' into improve_creature_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Nov 21, 2024
2 parents b1562ec + efbac6c commit c0304b7
Show file tree
Hide file tree
Showing 265 changed files with 12,845 additions and 10,842 deletions.
2 changes: 2 additions & 0 deletions data-canary/scripts/actions/objects/imbuement_shrine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ function imbuement.onUse(player, item, fromPosition, target, toPosition, isHotke
return true
end

imbuement:position({ x = 1943, y = 1340, z = 7 }, 25061)

imbuement:id(25060, 25061, 25103, 25104, 25202, 25174, 25175, 25182, 25183)
imbuement:register()
72 changes: 0 additions & 72 deletions data-canary/scripts/actions/other/christmas_bundle.lua

This file was deleted.

2 changes: 1 addition & 1 deletion data-canary/scripts/actions/other/destroy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ local setting = {
local destroy = Action()

function destroy.onUse(player, item, fromPosition, target, toPosition, isHotkey)
return ActionsLib.destroyItem(player, target, toPosition)
return destroyItem(player, target, toPosition)
end

for index, value in ipairs(setting) do
Expand Down
17 changes: 0 additions & 17 deletions data-canary/scripts/actions/other/ferumbras_amulet.lua

This file was deleted.

13 changes: 0 additions & 13 deletions data-canary/scripts/actions/other/ferumbras_mana_keg.lua

This file was deleted.

16 changes: 0 additions & 16 deletions data-canary/scripts/actions/other/ferumbras_staff.lua

This file was deleted.

2 changes: 0 additions & 2 deletions data-canary/scripts/actions/other/music.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ local setting = {
[2966] = { effect = CONST_ME_SOUND_RED }, -- war drum
[3103] = { effect = CONST_ME_SOUND_YELLOW, itemId = 3592, itemCount = 10, chance = 80, remove = true }, -- cornucopia
[5786] = { effects = { failure = CONST_ME_SOUND_RED, success = CONST_ME_SOUND_YELLOW }, monster = "war wolf", chance = 60, remove = true }, -- wooden whistle
[6572] = { effect = CONST_ME_SOUND_GREEN, text = "TOOOOOOT", transformId = 6573, decayId = 6572 }, -- party trumpet
[6573] = { effect = CONST_ME_SOUND_GREEN, text = "TOOOOOOT", transformId = 6572, decayId = 6573 }, -- party trumpet
[12602] = { effect = CONST_ME_SOUND_BLUE }, -- small whistle (actual effect is unknown)
[23725] = { effect = CONST_ME_SOUND_WHITE }, -- small crystal bell
}
Expand Down
12 changes: 0 additions & 12 deletions data-canary/scripts/actions/other/sewer.lua

This file was deleted.

62 changes: 0 additions & 62 deletions data-canary/scripts/actions/other/surprise_bag.lua

This file was deleted.

63 changes: 0 additions & 63 deletions data-canary/scripts/creaturescripts/#modal_window_example.lua

This file was deleted.

24 changes: 0 additions & 24 deletions data-canary/scripts/creaturescripts/monster.lua

This file was deleted.

16 changes: 0 additions & 16 deletions data-otservbr-global/lib/others/fragment_gems.lua

This file was deleted.

1 change: 0 additions & 1 deletion data-otservbr-global/lib/others/load.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dofile(DATA_DIRECTORY .. "/lib/others/dawnport.lua")
dofile(DATA_DIRECTORY .. "/lib/others/fragment_gems.lua")
6 changes: 3 additions & 3 deletions data-otservbr-global/lib/quests/soul_war.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ function Player:getSoulWarZoneMonster()
return zoneMonsterName
end

function Player:isInBoatSpot()
function Creature:isInBoatSpot()
-- Get ebb and flow zone and check if player is in zone
local zone = SoulWarQuest.ebbAndFlow.getZone()
local tile = Tile(self:getPosition())
Expand All @@ -1464,11 +1464,11 @@ function Player:isInBoatSpot()
groundId = tile:getGround():getId()
end
if zone and zone:isInZone(self:getPosition()) and tile and groundId == SoulWarQuest.ebbAndFlow.boatId then
logger.trace("Player {} is in boat spot", self:getName())
logger.trace("Creature {} is in boat spot", self:getName())
return true
end

logger.trace("Player {} is not in boat spot", self:getName())
logger.trace("Creature {} is not in boat spot", self:getName())
return false
end

Expand Down
Loading

0 comments on commit c0304b7

Please sign in to comment.