|  |  |  | @ -31,17 +31,16 @@ local function reg(name, basename, basedef) | 
			
		
	
		
			
				
					|  |  |  |  |     if minetest.registered_nodes[piecename] then return end | 
			
		
	
		
			
				
					|  |  |  |  |     local desc = basedef.description or name | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     local nodeDesc | 
			
		
	
		
			
				
					|  |  |  |  |     local nodedesc_base | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     local nameStone = string.match(desc, "(.*)stone$") | 
			
		
	
		
			
				
					|  |  |  |  |     if nameStone then | 
			
		
	
		
			
				
					|  |  |  |  |         nodeDesc = nameStone .. " " | 
			
		
	
		
			
				
					|  |  |  |  |         nodedesc_base = nameStone .. " " | 
			
		
	
		
			
				
					|  |  |  |  |     elseif desc == "Stone" then | 
			
		
	
		
			
				
					|  |  |  |  |         nodeDesc = "" | 
			
		
	
		
			
				
					|  |  |  |  |         nodedesc_base = "" | 
			
		
	
		
			
				
					|  |  |  |  |     else | 
			
		
	
		
			
				
					|  |  |  |  |         nodeDesc = desc .. " " | 
			
		
	
		
			
				
					|  |  |  |  |         nodedesc_base = desc .. " " | 
			
		
	
		
			
				
					|  |  |  |  |     end | 
			
		
	
		
			
				
					|  |  |  |  |     nodeDesc = nodeDesc .. "Go Stone" | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     local stone_selection_box = { | 
			
		
	
		
			
				
					|  |  |  |  |         type = "fixed", | 
			
		
	
	
		
			
				
					|  |  |  | @ -49,7 +48,7 @@ local function reg(name, basename, basedef) | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     minetest.register_node(":" .. piecename, { | 
			
		
	
		
			
				
					|  |  |  |  |         description = nodeDesc, | 
			
		
	
		
			
				
					|  |  |  |  |         description = nodedesc_base .. "Go Stone", | 
			
		
	
		
			
				
					|  |  |  |  |         drawtype = "mesh", | 
			
		
	
		
			
				
					|  |  |  |  |         mesh = "go_stone.obj", | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -88,8 +87,7 @@ local function reg(name, basename, basedef) | 
			
		
	
		
			
				
					|  |  |  |  |         fixed = {-5/16, -8/16, -5/16, 5/16, -2/16, 5/16} | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     local territory_name = modname .. ":territory_" .. string_lower(name) | 
			
		
	
		
			
				
					|  |  |  |  |     minetest.register_node(":" .. territory_name, { | 
			
		
	
		
			
				
					|  |  |  |  |     minetest.register_node(":" .. modname .. ":territory_" .. string_lower(name), { | 
			
		
	
		
			
				
					|  |  |  |  |         description = "Stop Stone", | 
			
		
	
		
			
				
					|  |  |  |  |         drawtype = "nodebox", | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -130,6 +128,52 @@ local function reg(name, basename, basedef) | 
			
		
	
		
			
				
					|  |  |  |  |         on_dig = lc_liberties.handle_dig, | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     local ko_selection_box = { | 
			
		
	
		
			
				
					|  |  |  |  |         type = "fixed", | 
			
		
	
		
			
				
					|  |  |  |  |         fixed = {-8/16, -8/16, -8/16, 8/16, -4/16, 8/16} | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     minetest.register_node(":" .. modname .. ":ko_" .. string_lower(name), { | 
			
		
	
		
			
				
					|  |  |  |  |         description = nodedesc_base .. "Ko Stone", | 
			
		
	
		
			
				
					|  |  |  |  |         drawtype = "nodebox", | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         node_box = { | 
			
		
	
		
			
				
					|  |  |  |  |             type = "fixed", | 
			
		
	
		
			
				
					|  |  |  |  |             fixed = { | 
			
		
	
		
			
				
					|  |  |  |  |                 {-7/16, -7/16, -7/16, 7/16, -5/16, -5/16}, | 
			
		
	
		
			
				
					|  |  |  |  |                 {7/16, -7/16, -7/16, 5/16, -5/16, 7/16}, | 
			
		
	
		
			
				
					|  |  |  |  |                 {7/16, -7/16, 7/16, -7/16, -5/16, 5/16}, | 
			
		
	
		
			
				
					|  |  |  |  |                 {-7/16, -7/16, 7/16, -5/16, -5/16, -7/16}, | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         selection_box = ko_selection_box, | 
			
		
	
		
			
				
					|  |  |  |  |         collision_box = ko_selection_box, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         tiles = {basedef.tiles[1]}, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         paramtype = "light", | 
			
		
	
		
			
				
					|  |  |  |  |         sunlight_propagates = true, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         groups = { | 
			
		
	
		
			
				
					|  |  |  |  |             snappy = 1, | 
			
		
	
		
			
				
					|  |  |  |  |             falling_node = 1, | 
			
		
	
		
			
				
					|  |  |  |  |             stack_as_node = 1, | 
			
		
	
		
			
				
					|  |  |  |  |             ko_stone = 1, | 
			
		
	
		
			
				
					|  |  |  |  |             cheat = 1, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         drop = "", | 
			
		
	
		
			
				
					|  |  |  |  |         destroy_on_dig = true, | 
			
		
	
		
			
				
					|  |  |  |  |         silktouch = false, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         go_team = name, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         sounds = basedef.sounds, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         on_rightclick = lc_liberties.handle_click_ko, | 
			
		
	
		
			
				
					|  |  |  |  |     }) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     reg_stone_craft(name, "crossy") | 
			
		
	
		
			
				
					|  |  |  |  |     reg_stone_craft(name, "starcrossy") | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |