From f132bc78a30c5022760785db858f94ac55e54d92 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 27 May 2017 00:37:25 +0200 Subject: [PATCH] Reduce range for Sniper Duel achievement --- mods/HUD/mcl_achievements/init.lua | 3 ++- mods/ITEMS/mcl_throwing/arrow.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/HUD/mcl_achievements/init.lua b/mods/HUD/mcl_achievements/init.lua index 9107b745..b265df83 100644 --- a/mods/HUD/mcl_achievements/init.lua +++ b/mods/HUD/mcl_achievements/init.lua @@ -156,7 +156,8 @@ awards.register_achievement("mcl:onARail", { awards.register_achievement("mcl:snipeSkeleton", { title = S("Sniper Duel"), -- TODO: This achievement should be for killing, not hitting - description = S("Hit a skeleton, wither skeleton or stray by bow and arrow from a distance of at least 50 meters."), + -- TODO: The range should be 50, not 20. Nerfed because of reduced bow range + description = S("Hit a skeleton, wither skeleton or stray by bow and arrow from a distance of at least 20 meters."), icon = "mcl_throwing_bow.png", }) diff --git a/mods/ITEMS/mcl_throwing/arrow.lua b/mods/ITEMS/mcl_throwing/arrow.lua index bfa2d144..21fc6c95 100644 --- a/mods/ITEMS/mcl_throwing/arrow.lua +++ b/mods/ITEMS/mcl_throwing/arrow.lua @@ -95,8 +95,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) end -- Achievement for hitting skeleton, wither skeleton or stray (TODO) with an arrow at least 50 meters away + -- NOTE: Range has been reduced because mobs unload much earlier than that ... >_> -- TODO: This achievement should be given for the kill, not just a hit - if self._shooter and self._shooter:is_player() and vector.distance(pos, self._startpos) >= 50 then + if self._shooter and self._shooter:is_player() and vector.distance(pos, self._startpos) >= 20 then if (entity_name == "mobs_mc:skeleton" or entity_name == "mobs_mc:skeleton2") then awards.unlock(self._shooter:get_player_name(), "mcl:snipeSkeleton") end