|
|
@ -217,6 +217,11 @@ local function territory_search(pos, max) |
|
|
|
) |
|
|
|
) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local firenode = "nc_fire:fire_burst" |
|
|
|
|
|
|
|
if not minetest.registered_nodes["nc_fire:fire_burst"] then |
|
|
|
|
|
|
|
firenode = "nc_fire:fire" |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
function lc_liberties.handle_placement(pos) |
|
|
|
function lc_liberties.handle_placement(pos) |
|
|
|
cache = {} |
|
|
|
cache = {} |
|
|
|
--minetest.chat_send_all(tostring(pos)) |
|
|
|
--minetest.chat_send_all(tostring(pos)) |
|
|
@ -264,7 +269,8 @@ function lc_liberties.handle_placement(pos) |
|
|
|
for i2, v2 in pairs(v.stones) do |
|
|
|
for i2, v2 in pairs(v.stones) do |
|
|
|
local under = check_position(v2 + down) |
|
|
|
local under = check_position(v2 + down) |
|
|
|
if (under:sub(1, 1) == "W") and (under:len() > 1) then |
|
|
|
if (under:sub(1, 1) == "W") and (under:len() > 1) then |
|
|
|
nodecore.set_loud(v2, {name = "nc_fire:fire"}) |
|
|
|
nodecore.sound_play("nc_fire_ignite", {gain = 1, pos = pos}) |
|
|
|
|
|
|
|
nodecore.set_loud(v2, {name = firenode}) |
|
|
|
else |
|
|
|
else |
|
|
|
nodecore.set_loud(v2, {name = "air"}) |
|
|
|
nodecore.set_loud(v2, {name = "air"}) |
|
|
|
end |
|
|
|
end |
|
|
|