From bcfc53e3489d47918c04d9ae562a665c71fc33ee Mon Sep 17 00:00:00 2001 From: kacperks Date: Tue, 22 Nov 2022 12:55:44 +0100 Subject: [PATCH] WOW --- mods/shit_poop/init.lua | 18 ++++++++++-------- mods/shit_robocops/init.lua | 4 ---- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/mods/shit_poop/init.lua b/mods/shit_poop/init.lua index 72d349b..d89a520 100644 --- a/mods/shit_poop/init.lua +++ b/mods/shit_poop/init.lua @@ -169,7 +169,7 @@ function destruction_counter.updateCounter(player) end local totalDestruction = destruction_counter.nodesDestroyed + math.floor(nodesDestroyedByHand / 10) - local percentage = (totalDestruction / 200 * 4) + local percentage = (totalDestruction / 100 * 4) if percentage > 100 then percentage = 100 end @@ -391,10 +391,12 @@ minetest.register_craftitem("poop:plumba", { local node = minetest.get_node(pointed_thing.under) -- check if node is poop if node.name == "poop:Poop" then + pooped_things = pooped_things + 1 + destruction_counter.nodesDestroyed = pooped_things + destruction_counter.updateCounter(user) minetest.remove_node(pointed_thing.under) minetest.add_node(pointed_thing.under, {name="poop:box"}) - minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!") - pooped_things = pooped_things + 1 + minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.."/200 shits!") if pooped_things >= 100 then if(b == false)then @@ -410,18 +412,18 @@ minetest.register_craftitem("poop:plumba", { end end - destruction_counter.nodesDestroyed = pooped_things - destruction_counter.updateCounter(user) + pakuj_guwno() return itemstack else if node.name == "poop:Poop2" then + pooped_things = pooped_things + 1 + destruction_counter.nodesDestroyed = pooped_things + destruction_counter.updateCounter(user) minetest.remove_node(pointed_thing.under) minetest.add_node(pointed_thing.under, {name="poop:box"}) minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!") pakuj_guwno() - pooped_things = pooped_things + 1 - destruction_counter.nodesDestroyed = pooped_things - destruction_counter.updateCounter(user) + return itemstack end diff --git a/mods/shit_robocops/init.lua b/mods/shit_robocops/init.lua index dd5880a..0635707 100644 --- a/mods/shit_robocops/init.lua +++ b/mods/shit_robocops/init.lua @@ -1,10 +1,6 @@ minetest.register_abm({ nodenames = {"poop:grey_bricks"}, -<<<<<<< HEAD - interval = 40, -======= interval = 30, ->>>>>>> 742042729b4e3926e0679e3f1775f92d22ae8461 chance = 200, action = function(pos, node, active_object_count, active_object_count_wider) minetest.add_entity({x = pos.x, y = pos.y + 1, z = pos.z}, "robocops:robocop")