Update license to MIT. Set parameters for testing. Comment-out noise messages

This commit is contained in:
paramat 2017-02-24 05:46:41 +00:00
parent b1779260c1
commit 36edd7672d
3 changed files with 35 additions and 17 deletions

View File

@ -1,4 +1,12 @@
catacomb 0.4.0 by paramat
catacomb 0.4.1 by paramat
For Minetest 0.4.8 and later
Depends default
Licenses: code WTFPL
Depends: default
Licenses: Source code MIT
V0.4.1 is for testing.
To start generating the dungeon place one of the 4 'chamber spawner' nodes
underground and wait nearby for a minute.
Beware this structure can spread into previously generated world and can
destroy your builds, so set the X, Y, Z limits to contain generation.
To stop generation set mod parameter 'GEN = false'.

View File

@ -10,11 +10,11 @@ local ZMAX = 33000
local YMAXSPA = -33 -- Maximum y for initial catacomb spawn and steps in air
-- Spawn and generation
local TCATSPA = 0.8 -- 3D noise threshold for initial chamber
local TCATA = 0.4 -- 3D noise for generation limit
local TCATSPA = 2.0 -- 3D noise threshold for initial chamber
local TCATA = -2.0 -- 3D noise for generation limit
local GEN = true -- Enable spawn and generation
local OBCHECK = true -- Enable chamber obstruction check
local ABMINT = 2 -- ABM interval multiplier, 1 = fast generation
local ABMINT = 1 -- ABM interval multiplier, 1 = fast generation
-- Spawn and generation noise
local np_cata = {
@ -174,7 +174,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
local nobj_cata = minetest.get_perlin(np_cata)
local nval_cata = nobj_cata:get3d({x = x0, y = y0, z = z0})
if nval_cata < TCATSPA then
print ("[catacomb] Spawn noise " .. nval_cata)
--print ("[catacomb] Spawn noise " .. nval_cata)
return
end

View File

@ -1,14 +1,24 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
License of source code
----------------------
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
The MIT License (MIT)
Copyright (C) 2014-2016 paramat
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
0. You just DO WHAT THE FUCK YOU WANT TO.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
For more details:
https://opensource.org/licenses/MIT