From 0b24f22b71c6854894e1f239379375932e563192 Mon Sep 17 00:00:00 2001 From: capitalthree Date: Sat, 2 Dec 2023 19:49:51 -0600 Subject: [PATCH] add mapcolors to nodes. The difficult decision was made to make meta-markers invisible on map, to maximize readability of actual stone positions at low zoom levels --- stones.lua | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) 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, })