mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Fishy Business Advancement
This commit is contained in:
parent
b544fb819d
commit
eb72bb81da
2 changed files with 11 additions and 0 deletions
|
@ -201,6 +201,13 @@ awards.register_achievement("mcl:whatAdeal", {
|
|||
icon = "mcl_core_emerald.png",
|
||||
})
|
||||
|
||||
-- Triggered in mcl_fishing
|
||||
awards.register_achievement("mcl:fishyBusiness", {
|
||||
title = S("Fishy Business"),
|
||||
description = S("Catch a fish. \nHint: Catch a fish, salmon, clownfish, or pufferfish."),
|
||||
icon = "mcl_fishing_fishing_rod.png",
|
||||
})
|
||||
|
||||
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
|
||||
|
||||
if non_pc_achievements then
|
||||
|
|
|
@ -75,6 +75,7 @@ local fish = function(itemstack, player, pointed_thing)
|
|||
stacks_min = 1,
|
||||
stacks_max = 1,
|
||||
}, pr)
|
||||
awards.unlock(player:get_player_name(), "mcl:fishyBusiness")
|
||||
elseif r <= junk_value then
|
||||
-- Junk
|
||||
items = mcl_loot.get_loot({
|
||||
|
@ -124,6 +125,9 @@ local fish = function(itemstack, player, pointed_thing)
|
|||
local inv = player:get_inventory()
|
||||
if inv:room_for_item("main", item) then
|
||||
inv:add_item("main", item)
|
||||
if item:get_name() == "mcl_mobitems:leather" then
|
||||
awards.unlock(player:get_player_name(), "mcl:killCow")
|
||||
end
|
||||
else
|
||||
minetest.add_item(pos, item)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue