diff --git a/stones.lua b/stones.lua index 856931c..cd18687 100644 --- a/stones.lua +++ b/stones.lua @@ -55,9 +55,9 @@ local function reg(name, basename, basedef) selection_box = stone_selection_box, collision_box = stone_selection_box, - tiles = { - basedef.tiles[1] - }, + tiles = {basedef.tiles[1]}, + sounds = basedef.sounds, + mapcolor = basedef.mapcolor, paramtype = "light", @@ -73,8 +73,6 @@ local function reg(name, basename, basedef) go_team = name, - sounds = basedef.sounds, - on_construct = lc_liberties.handle_placement, on_dig = lc_liberties.handle_dig, @@ -105,9 +103,9 @@ local function reg(name, basename, basedef) node_placement_prediction = "", - tiles = { - basedef.tiles[1] - }, + tiles = {basedef.tiles[1]}, + sounds = basedef.sounds, + mapcolor = {a = 0}, paramtype = "light", @@ -122,8 +120,6 @@ local function reg(name, basename, basedef) go_team = name, - sounds = basedef.sounds, - on_place = lc_liberties.handle_territory_fill, on_dig = lc_liberties.handle_dig, @@ -152,6 +148,8 @@ local function reg(name, basename, basedef) collision_box = ko_selection_box, tiles = {basedef.tiles[1]}, + sounds = basedef.sounds, + mapcolor = {a = 0}, paramtype = "light", sunlight_propagates = true, @@ -169,8 +167,6 @@ local function reg(name, basename, basedef) go_team = name, - sounds = basedef.sounds, - on_rightclick = lc_liberties.handle_click_ko, })