Define mapcolors for all nodes #6

Closed
Warr1024 wants to merge 1 commits from Warr1024:mapcolor into master
  1. 4
      stones.lua

@ -113,6 +113,8 @@ local function reg(name, basename, basedef)
on_construct = lc_liberties.handle_placement, on_construct = lc_liberties.handle_placement,
on_dig = lc_liberties.handle_dig, on_dig = lc_liberties.handle_dig,
mapcolor = basedef.mapcolor,
}) })
local territory_name = modname .. ":territory_" .. string_lower(name) local territory_name = modname .. ":territory_" .. string_lower(name)
@ -158,6 +160,8 @@ local function reg(name, basename, basedef)
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,
mapcolor = nodecore.underride({a = 32}, basedef.mapcolor),
}) })
reg_stone_craft(name, "crossy") reg_stone_craft(name, "crossy")

Loading…
Cancel
Save