Skip to content

Commit

Permalink
Update register_actions.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonyrewind authored Feb 10, 2024
1 parent 9b9e767 commit 67cc293
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/scripts/lib/register_actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ function onUseShovel(player, item, fromPosition, target, toPosition, isHotkey)
return true
end
player:teleportTo(toPosition, false)
player:addAchievementProgress("The Undertaker", 500)
elseif target.itemid == 1822 and target:getPosition() == Position(33222, 31100, 7) then
player:teleportTo(Position(33223, 31100, 8))
elseif table.contains({ 231, 231 }, target.itemid) then
Expand All @@ -480,6 +481,7 @@ function onUseShovel(player, item, fromPosition, target, toPosition, isHotkey)
target:decay()
elseif rand == 1 then
Game.createItem(3042, 1, toPosition)
player:addAchievementProgress("Gold Digger", 100)
elseif rand > 95 then
Game.createMonster("Scarab", toPosition)
end
Expand Down Expand Up @@ -625,6 +627,7 @@ function onUsePick(player, item, fromPosition, target, toPosition, isHotkey)
end
target:getPosition():sendMagicEffect(CONST_ME_BLOCKHIT)
target:remove(1)
player:addAchievementProgress("Petrologist", 100)
elseif target.itemid == 7200 then
target:transform(7236)
target:decay()
Expand Down

0 comments on commit 67cc293

Please sign in to comment.