forked from VoxeLibre/VoxeLibre
Reduce range for Sniper Duel achievement
This commit is contained in:
parent
d143d492a1
commit
f132bc78a3
|
@ -156,7 +156,8 @@ awards.register_achievement("mcl:onARail", {
|
||||||
awards.register_achievement("mcl:snipeSkeleton", {
|
awards.register_achievement("mcl:snipeSkeleton", {
|
||||||
title = S("Sniper Duel"),
|
title = S("Sniper Duel"),
|
||||||
-- TODO: This achievement should be for killing, not hitting
|
-- 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",
|
icon = "mcl_throwing_bow.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -95,8 +95,9 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Achievement for hitting skeleton, wither skeleton or stray (TODO) with an arrow at least 50 meters away
|
-- 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
|
-- 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
|
if (entity_name == "mobs_mc:skeleton" or entity_name == "mobs_mc:skeleton2") then
|
||||||
awards.unlock(self._shooter:get_player_name(), "mcl:snipeSkeleton")
|
awards.unlock(self._shooter:get_player_name(), "mcl:snipeSkeleton")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue