Compare commits

...

5 Commits

Author SHA1 Message Date
Perttu Ahola 67e6d42f91 Add menu images 2013-05-02 20:54:27 +03:00
celeron55 f551364eba Merge pull request #2 from 0gb-us/patch-1
Fixed generation of unknown items.
2013-03-23 01:12:05 -07:00
Perttu Ahola 46882d3c67 Extend README.txt 2013-03-23 10:07:30 +02:00
Perttu Ahola ad776b091a Fix some stuff 2013-03-23 09:11:43 +02:00
0gb-us 1353e326b0 Fixed generation of unknown items.
I'd love to see cats and rainbows in buckets, but ...
2013-03-22 16:50:55 -07:00
4 changed files with 12 additions and 3 deletions

View File

@ -6,3 +6,8 @@ Implements a simple dungeon crawler on the Minetest Engine.
Stuff inside is licensed under WTFPL, CC0, and CC BY-SA; see mod directories
for more info.
Requires a version of Minetest dated >=2013-03-23:
https://github.com/minetest/minetest
And the Common Mods
https://github.com/minetest/common

BIN
menu/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 KiB

BIN
menu/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -2,6 +2,10 @@
local DUNGEON_Y = -1000
-- We always want damage.
-- This is kind of a hack, but the engine doesn't support a better way.
minetest.setting_set("enable_damage", "true")
-- Define this so ores don't get placed on walls
minetest.register_node("dungeon:stone", {
description = "Dungeon Stone",
@ -206,7 +210,7 @@ mobs.make_vault_part = function(p, part, pr)
elseif pr:next(1,4) == 1 then
item = 'default:apple '..tostring(pr:next(1,3))
elseif pr:next(1,6) == 1 then
item = 'default:sword_stone '..tostring(pr:next(2,5)*100)
item = 'default:sword_stone '..tostring(pr:next(2,5)*10000)
end
elseif part == 't' then
local invcontent = {}
@ -235,8 +239,8 @@ mobs.make_vault_part = function(p, part, pr)
table.insert(invcontent, 'bucket:bucket_water 1')
end
if pr:next(1,34) == 1 then
table.insert(invcontent, 'bucket:nyancat 1')
table.insert(invcontent, 'bucket:nyancat_rainbow '..tostring(pr:next(1,6)))
table.insert(invcontent, 'default:nyancat 1')
table.insert(invcontent, 'default:nyancat_rainbow '..tostring(pr:next(1,6)))
end
if pr:next(1,2) == 1 then
table.insert(invcontent, 'default:gravel '..tostring(pr:next(1,10)))