Module:Wallinfo/idSets/data

local Sets = {}

local function BoolSetFactory(IDs) local set = { ['default'] = false} for k, v in pairs(IDs) do		set[v] = true end return set end

local function SetFactory(default, IDs) local set = { ['default'] = default} local key = nil for _, v in pairs(IDs) do		if key then set[key] = v			key = nil else key = v		end end return set end

-- v1.4.4.9

Sets.CanBeConvertedToGlowingMushroom = BoolSetFactory{ 64, 67, 15, 247 } Sets.AllowsUndergroundDesertEnemiesToSpawn = BoolSetFactory{ 187, 220, 222, 221, 216, 217, 219, 218 } Sets.Transparent = BoolSetFactory{ 88, 89, 90, 91, 92, 241 } Sets.Corrupt = BoolSetFactory{ 69, 217, 220, 3 } Sets.Crimson = BoolSetFactory{ 83, 81, 218, 221 } Sets.Hallow = BoolSetFactory{ 70, 219, 222, 28 } Sets.AllowsWind = BoolSetFactory{ 0, 150, 138, 145, 107, 152, 140, 139, 141, 106, 245, 315, 317 } Sets.AllowsPlantsToGrow = BoolSetFactory{ 0, 150, 138, 145, 107, 152, 140, 139, 141, 106, 245, 315, 317, 63, 64, 65, 66, 67, 68, 69, 81, 70, 264, 268, 265, 74, 80 } Sets.CannotBeReplacedByWallSpread = BoolSetFactory{ 4, 40, 3, 87, 34 } Sets.WallSpreadStopsAtAir = BoolSetFactory{ 63, 62 } Sets.BlendType = SetFactory(-1, { 66, 63, 68, 63, 65, 63, 16, 2, 59, 2, 261, 2, 284, 196, 285, 197, 286, 198, 287, 199, 256, 54, 257, 55, 258, 56, 259, 57, 260, 58, 262, 61, 274, 185, 300, 212, 301, 213, 302, 214, 303, 215, 296, 208, 297, 209, 298, 210, 299, 211, 48, 1, 49, 1, 50, 1, 51, 1, 52, 1, 53, 1, 250, 1, 251, 1, 252, 1, 253, 1, 254, 1, 255, 1, 69, 264, 3, 246, 217, 305, 220, 308, 188, 276, 189, 277, 190, 278, 191, 279, 81, 77, 268, 77, 83, 269, 218, 306, 221, 309, 192, 280, 193, 281, 194, 282, 195, 283, 70, 265, 28, 248, 219, 307, 222, 310, 200, 288, 201, 289, 202, 290, 203, 291, 15, 247, 64, 67, 204, 292, 205, 293, 206, 294, 207, 295, 86, 108, 87, 112, 40, 249, 71, 266, 216, 304, 187, 275, 62, 263, 80, 74, 180, 184, 178, 183, 79, 267, 20, 14, 7, 17, 94, 17, 95, 17, 8, 18, 98, 18, 99, 18, 9, 19, 96, 19, 97, 19 })

-- class Conversion Sets.Conversion_Grass = BoolSetFactory{ 63, 64, 65, 66, 67, 68, 69, 70, 81, 264, 265, 268 } Sets.Conversion_Stone = BoolSetFactory{ 1, 61, 185, 3, 28, 83, 262, 274, 246, 248, 269 } Sets.Conversion_Dirt = BoolSetFactory{ 2, 16 } Sets.Conversion_Snow = BoolSetFactory{ 40, 249 } Sets.Conversion_Ice = BoolSetFactory{ 71, 266 } Sets.Conversion_Sandstone = BoolSetFactory{ 187, 220, 222, 221, 275, 308, 310, 309 } Sets.Conversion_HardenedSand = BoolSetFactory{ 216, 217, 219, 218, 304, 305, 307, 306 } Sets.Conversion_PureSand = BoolSetFactory{ 216, 187, 304, 275 } Sets.Conversion_NewWall1 = BoolSetFactory{ 188, 192, 200, 204, 212, 276, 280, 288, 292, 300 } Sets.Conversion_NewWall2 = BoolSetFactory{ 189, 193, 201, 205, 213, 277, 281, 289, 293, 301 } Sets.Conversion_NewWall3 = BoolSetFactory{ 190, 194, 202, 206, 214, 278, 282, 290, 294, 302 } Sets.Conversion_NewWall4 = BoolSetFactory{ 191, 195, 203, 207, 215, 279, 283, 291, 295, 303 }

return Sets