mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-10-27 11:09:32 +01:00
Fishy Business Advancement
This commit is contained in:
parent
b544fb819d
commit
eb72bb81da
@ -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 New Issue
Block a user