mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 15:35:11 +00:00
Reduce range for Sniper Duel achievement
This commit is contained in:
parent
d143d492a1
commit
f132bc78a3
2 changed files with 4 additions and 2 deletions
|
@ -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",
|
||||
})
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue