diff --git a/data/scripts/lib/register_actions.lua b/data/scripts/lib/register_actions.lua index 1522ad20417..b8e5f765a2c 100644 --- a/data/scripts/lib/register_actions.lua +++ b/data/scripts/lib/register_actions.lua @@ -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 @@ -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 @@ -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()