|
|
@ -21,7 +21,6 @@ must not be misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source
|
|
|
|
3. This notice may not be removed or altered from any source
|
|
|
|
distribution.
|
|
|
|
distribution.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "DFTileTypes.h"
|
|
|
|
#include "DFTileTypes.h"
|
|
|
|
|
|
|
|
|
|
|
|
bool isWallTerrain(int in)
|
|
|
|
bool isWallTerrain(int in)
|
|
|
@ -305,18 +304,22 @@ bool isFloorTerrain(int in)
|
|
|
|
case 402: //stone boulder
|
|
|
|
case 402: //stone boulder
|
|
|
|
case 403: //lavastone boulder
|
|
|
|
case 403: //lavastone boulder
|
|
|
|
case 404: //featstone boulder
|
|
|
|
case 404: //featstone boulder
|
|
|
|
|
|
|
|
|
|
|
|
case 405: //stone pebbles 1
|
|
|
|
case 405: //stone pebbles 1
|
|
|
|
case 406: //stone pebbles 2
|
|
|
|
case 406: //stone pebbles 2
|
|
|
|
case 407: //stone pebbles 3
|
|
|
|
case 407: //stone pebbles 3
|
|
|
|
case 408: //stone pebbles 4
|
|
|
|
case 408: //stone pebbles 4
|
|
|
|
|
|
|
|
|
|
|
|
case 409: //lavastone pebbles 1
|
|
|
|
case 409: //lavastone pebbles 1
|
|
|
|
case 410: //lavastone pebbles 2
|
|
|
|
case 410: //lavastone pebbles 2
|
|
|
|
case 411: //lavastone pebbles 3
|
|
|
|
case 411: //lavastone pebbles 3
|
|
|
|
case 412: //lavastone pebbles 4
|
|
|
|
case 412: //lavastone pebbles 4
|
|
|
|
|
|
|
|
|
|
|
|
case 413: //featstone pebbles 1
|
|
|
|
case 413: //featstone pebbles 1
|
|
|
|
case 414: //featstone pebbles 2
|
|
|
|
case 414: //featstone pebbles 2
|
|
|
|
case 415: //featstone pebbles 3
|
|
|
|
case 415: //featstone pebbles 3
|
|
|
|
case 416: //featstone pebbles 4
|
|
|
|
case 416: //featstone pebbles 4
|
|
|
|
|
|
|
|
|
|
|
|
case 441: //minstone floor 1 (cavern raw)
|
|
|
|
case 441: //minstone floor 1 (cavern raw)
|
|
|
|
case 442: //minstone floor 2 (cavern raw)
|
|
|
|
case 442: //minstone floor 2 (cavern raw)
|
|
|
|
case 443: //minstone floor 3 (cavern raw)
|
|
|
|
case 443: //minstone floor 3 (cavern raw)
|
|
|
@ -366,27 +369,37 @@ bool isStairTerrain(int in)
|
|
|
|
case 25: //up-down stair frozen liquid
|
|
|
|
case 25: //up-down stair frozen liquid
|
|
|
|
case 26: //down stair frozen liquid
|
|
|
|
case 26: //down stair frozen liquid
|
|
|
|
case 27: //up stair frozen liquid
|
|
|
|
case 27: //up stair frozen liquid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 36: //up-down stair lavastone
|
|
|
|
case 36: //up-down stair lavastone
|
|
|
|
case 37: //down stair lavastone
|
|
|
|
case 37: //down stair lavastone
|
|
|
|
case 38: //up stair lavastone
|
|
|
|
case 38: //up stair lavastone
|
|
|
|
|
|
|
|
|
|
|
|
case 39: //up-down stair soil
|
|
|
|
case 39: //up-down stair soil
|
|
|
|
case 40: //down stair soil
|
|
|
|
case 40: //down stair soil
|
|
|
|
case 41: //up stair soil
|
|
|
|
case 41: //up stair soil
|
|
|
|
|
|
|
|
|
|
|
|
case 49: //up-down stair grass1 [muddy?]
|
|
|
|
case 49: //up-down stair grass1 [muddy?]
|
|
|
|
case 50: //down stair grass1 [muddy?]
|
|
|
|
case 50: //down stair grass1 [muddy?]
|
|
|
|
case 51: //up stair grass1 [muddy?]
|
|
|
|
case 51: //up stair grass1 [muddy?]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 52: //up-down stair grass2
|
|
|
|
case 52: //up-down stair grass2
|
|
|
|
case 53: //down stair grass2
|
|
|
|
case 53: //down stair grass2
|
|
|
|
case 54: //up stair grass2
|
|
|
|
case 54: //up stair grass2
|
|
|
|
|
|
|
|
|
|
|
|
case 55: //up-down stair stone
|
|
|
|
case 55: //up-down stair stone
|
|
|
|
case 56: //down stair stone
|
|
|
|
case 56: //down stair stone
|
|
|
|
case 57: //up stair stone
|
|
|
|
case 57: //up stair stone
|
|
|
|
|
|
|
|
|
|
|
|
case 58: //up-down stair minstone
|
|
|
|
case 58: //up-down stair minstone
|
|
|
|
case 59: //down stair minstone
|
|
|
|
case 59: //down stair minstone
|
|
|
|
case 60: //up stair minstone
|
|
|
|
case 60: //up stair minstone
|
|
|
|
|
|
|
|
|
|
|
|
case 61: //up-down stair featstone
|
|
|
|
case 61: //up-down stair featstone
|
|
|
|
case 62: //down stair featstone
|
|
|
|
case 62: //down stair featstone
|
|
|
|
case 63: //up stair featstone
|
|
|
|
case 63: //up stair featstone
|
|
|
|
|
|
|
|
|
|
|
|
case 515: //stair up-down constructed
|
|
|
|
case 515: //stair up-down constructed
|
|
|
|
case 516: //stair down constructed
|
|
|
|
case 516: //stair down constructed
|
|
|
|
case 517: //stair up constructed
|
|
|
|
case 517: //stair up constructed
|
|
|
@ -418,11 +431,13 @@ bool isOpenTerrain(int in)
|
|
|
|
case 40: //down stair soil
|
|
|
|
case 40: //down stair soil
|
|
|
|
case 41: //up stair soil
|
|
|
|
case 41: //up stair soil
|
|
|
|
case 42: //eerie pit
|
|
|
|
case 42: //eerie pit
|
|
|
|
|
|
|
|
|
|
|
|
case 43: //stone floor detailed
|
|
|
|
case 43: //stone floor detailed
|
|
|
|
case 44: //lavastone floor detailed
|
|
|
|
case 44: //lavastone floor detailed
|
|
|
|
case 45: //featstone? floor detailed
|
|
|
|
case 45: //featstone? floor detailed
|
|
|
|
case 46: //minstone? floor detailed [calcite]
|
|
|
|
case 46: //minstone? floor detailed [calcite]
|
|
|
|
case 47: //frozen liquid floor detailed
|
|
|
|
case 47: //frozen liquid floor detailed
|
|
|
|
|
|
|
|
|
|
|
|
case 49: //up-down stair grass1 [muddy?]
|
|
|
|
case 49: //up-down stair grass1 [muddy?]
|
|
|
|
case 50: //down stair grass1 [muddy?]
|
|
|
|
case 50: //down stair grass1 [muddy?]
|
|
|
|
case 51: //up stair grass1 [muddy?]
|
|
|
|
case 51: //up stair grass1 [muddy?]
|
|
|
@ -1022,3 +1037,21 @@ int picktexture(int in)
|
|
|
|
|
|
|
|
|
|
|
|
return 6;
|
|
|
|
return 6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int getVegetationType(int in)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
switch(in)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case 391: //dead tree
|
|
|
|
|
|
|
|
return TREE_DEAD;
|
|
|
|
|
|
|
|
case 392: //dead sapling
|
|
|
|
|
|
|
|
return SAPLING_DEAD;
|
|
|
|
|
|
|
|
case 393: //dead shrub
|
|
|
|
|
|
|
|
return SHRUB_DEAD;
|
|
|
|
|
|
|
|
case 24: //tree
|
|
|
|
|
|
|
|
return TREE_OK;
|
|
|
|
|
|
|
|
case 231: //sapling
|
|
|
|
|
|
|
|
return SAPLING_OK;
|
|
|
|
|
|
|
|
case 34: //shrub
|
|
|
|
|
|
|
|
return SHRUB_OK;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|