Merge branch 'master' of http://git.cubesoftware.xyz:20524/kacperks/pooping-simulator
This commit is contained in:
@@ -77,6 +77,7 @@ storyText[1] = "Welcome to the state-of-the-art Shitting Simulator! A very advan
|
||||
storyText[2] = "So the story is simple: You've eaten so many pickles and beans and drank so much milk that your rectum will burst if you don't take a shit in the next two minutes."
|
||||
storyText[3] = "You accidently use your flux capacitor and travel in time to the far future, where you find yourself in a city where you are shitting all over the place."
|
||||
storyText[4] = "You have to run from the robocops and pack 100 pieces of shit into boxes! Good luck!"
|
||||
|
||||
function getStoryFormspec(number)
|
||||
storyFormspec =
|
||||
{
|
||||
@@ -97,6 +98,12 @@ end
|
||||
is_game_started = false
|
||||
is_game_finished = false
|
||||
|
||||
minetest.register_on_newplayer(function(ObjectRef)
|
||||
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})
|
||||
end)
|
||||
|
||||
|
||||
function ending()
|
||||
|
||||
end
|
||||
@@ -391,6 +398,19 @@ minetest.register_craftitem("poop:plumba", {
|
||||
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
|
||||
|
||||
if pooped_things == 100 then
|
||||
-- stop first music loop
|
||||
minetest.sound_stop(first_music)
|
||||
-- play second music loop
|
||||
minetest.sound_play("shit_all_over_the_place", {
|
||||
gain = 1,
|
||||
pitch = 1,
|
||||
loop = true,
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
destruction_counter.nodesDestroyed = pooped_things
|
||||
destruction_counter.updateCounter(user)
|
||||
pakuj_guwno()
|
||||
@@ -448,7 +468,7 @@ minetest.register_on_joinplayer(function(player)
|
||||
player:get_inventory():set_list("main", {})
|
||||
-- set time to day
|
||||
minetest.set_timeofday(0.5)
|
||||
minetest.sound_play("pooping_together", {
|
||||
first_music = minetest.sound_play("pooping_together", {
|
||||
gain = 1,
|
||||
pitch = 1,
|
||||
loop = true,
|
||||
@@ -456,5 +476,9 @@ minetest.register_on_joinplayer(function(player)
|
||||
player:get_inventory():add_item("main", "poop:plumba")
|
||||
player:get_inventory():add_item("main", "poop:pooper")
|
||||
|
||||
|
||||
minetest.setting_set("time_speed", 0)
|
||||
minetest.set_timeofday(0)
|
||||
|
||||
begining()
|
||||
end)
|
||||
BIN
mods/poop/map.mts
Normal file
BIN
mods/poop/map.mts
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user