Compare commits
3 Commits
742042729b
...
bcfc53e348
Author | SHA1 | Date | |
---|---|---|---|
bcfc53e348 | |||
0c97b63c2a | |||
2fcfe46ba8 |
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user