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

master
capitalthree 12 months ago
parent a5a1c69975
commit 0b24f22b71
  1. 20
      stones.lua

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

Loading…
Cancel
Save