WOW
This commit is contained in:
parent
0c97b63c2a
commit
bcfc53e348
@ -169,7 +169,7 @@ function destruction_counter.updateCounter(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local totalDestruction = destruction_counter.nodesDestroyed + math.floor(nodesDestroyedByHand / 10)
|
local totalDestruction = destruction_counter.nodesDestroyed + math.floor(nodesDestroyedByHand / 10)
|
||||||
local percentage = (totalDestruction / 200 * 4)
|
local percentage = (totalDestruction / 100 * 4)
|
||||||
if percentage > 100 then
|
if percentage > 100 then
|
||||||
percentage = 100
|
percentage = 100
|
||||||
end
|
end
|
||||||
@ -391,10 +391,12 @@ minetest.register_craftitem("poop:plumba", {
|
|||||||
local node = minetest.get_node(pointed_thing.under)
|
local node = minetest.get_node(pointed_thing.under)
|
||||||
-- check if node is poop
|
-- check if node is poop
|
||||||
if node.name == "poop:Poop" then
|
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.remove_node(pointed_thing.under)
|
||||||
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
||||||
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
|
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.."/200 shits!")
|
||||||
pooped_things = pooped_things + 1
|
|
||||||
|
|
||||||
if pooped_things >= 100 then
|
if pooped_things >= 100 then
|
||||||
if(b == false)then
|
if(b == false)then
|
||||||
@ -410,18 +412,18 @@ minetest.register_craftitem("poop:plumba", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
destruction_counter.nodesDestroyed = pooped_things
|
|
||||||
destruction_counter.updateCounter(user)
|
|
||||||
pakuj_guwno()
|
pakuj_guwno()
|
||||||
return itemstack
|
return itemstack
|
||||||
else if node.name == "poop:Poop2" then
|
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.remove_node(pointed_thing.under)
|
||||||
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
||||||
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
|
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
|
||||||
pakuj_guwno()
|
pakuj_guwno()
|
||||||
pooped_things = pooped_things + 1
|
|
||||||
destruction_counter.nodesDestroyed = pooped_things
|
|
||||||
destruction_counter.updateCounter(user)
|
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"poop:grey_bricks"},
|
nodenames = {"poop:grey_bricks"},
|
||||||
<<<<<<< HEAD
|
|
||||||
interval = 40,
|
|
||||||
=======
|
|
||||||
interval = 30,
|
interval = 30,
|
||||||
>>>>>>> 742042729b4e3926e0679e3f1775f92d22ae8461
|
|
||||||
chance = 200,
|
chance = 200,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
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")
|
minetest.add_entity({x = pos.x, y = pos.y + 1, z = pos.z}, "robocops:robocop")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user