meh
This commit is contained in:
parent
03b3c9e016
commit
7b277d1784
@ -1,3 +1,7 @@
|
|||||||
|
x_p = 15
|
||||||
|
y_p = 27
|
||||||
|
z_p = 15
|
||||||
|
|
||||||
currentPage = 1
|
currentPage = 1
|
||||||
|
|
||||||
function game_over()
|
function game_over()
|
||||||
@ -52,7 +56,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
if currentPage >= 4 then
|
if currentPage >= 4 then
|
||||||
minetest.close_formspec(player:get_player_name(), "story:story_formspec")
|
minetest.close_formspec(player:get_player_name(), "story:story_formspec")
|
||||||
-- teleport player to 10 9.5 18
|
-- teleport player to 10 9.5 18
|
||||||
player:setpos({x=10, y=9.5, z=18})
|
player:setpos({x=15,y=21,z=15})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
currentPage = currentPage + 1 -- Fuck Lua and its lack of arithmetic assignment operators
|
currentPage = currentPage + 1 -- Fuck Lua and its lack of arithmetic assignment operators
|
||||||
@ -100,7 +104,7 @@ is_game_finished = false
|
|||||||
|
|
||||||
minetest.register_on_newplayer(function(ObjectRef)
|
minetest.register_on_newplayer(function(ObjectRef)
|
||||||
minetest.place_schematic({x = 0, y = 0, z = 0}, minetest.get_modpath("poop") .. "/map.mts", "0", nil, true)
|
minetest.place_schematic({x = 0, y = 0, z = 0}, minetest.get_modpath("poop") .. "/map.mts", "0", nil, true)
|
||||||
ObjectRef:set_pos({x = 15, y = 11, z = 15})
|
ObjectRef:set_pos({x = 15, y = 21, z = 15})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
@ -385,7 +389,7 @@ minetest.register_craftitem("poop:plumba", {
|
|||||||
if pointed_thing.type ~= "node" then
|
if pointed_thing.type ~= "node" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if pooped_things >= 100 then
|
if pooped_things >= 200 then
|
||||||
is_game_finished = true
|
is_game_finished = true
|
||||||
you_win(user)
|
you_win(user)
|
||||||
return
|
return
|
||||||
|
BIN
mods/poop/textures/thanks.png
Normal file
BIN
mods/poop/textures/thanks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Loading…
x
Reference in New Issue
Block a user