mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-11-14 14:40:29 +01:00
record identity of slade-breachers
This commit is contained in:
parent
41edf4d7b1
commit
95578b06e1
|
@ -452,7 +452,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
building.pos.y = floor_height
|
building.pos.y = floor_height
|
||||||
--minetest.chat_send_all("placing " .. building.building_type .. " at " .. minetest.pos_to_string(building.pos))
|
--minetest.chat_send_all("placing " .. building.building_type .. " at " .. minetest.pos_to_string(building.pos))
|
||||||
if building.building_type == "oubliette" then
|
if building.building_type == "oubliette" then
|
||||||
mapgen_helper.place_schematic_on_data(data, data_param2, area, building.pos, oubliette_schematic)
|
mapgen_helper.place_schematic_on_data(data, data_param2, area, building.pos, oubliette_schematic)
|
||||||
elseif building.building_type == "open oubliette" then
|
elseif building.building_type == "open oubliette" then
|
||||||
mapgen_helper.place_schematic_on_data(data, data_param2, area, building.pos, oubliette_schematic, 0, {["df_underworld_items:slade_seal"] = "air"})
|
mapgen_helper.place_schematic_on_data(data, data_param2, area, building.pos, oubliette_schematic, 0, {["df_underworld_items:slade_seal"] = "air"})
|
||||||
elseif building.building_type == "lamppost" then
|
elseif building.building_type == "lamppost" then
|
||||||
|
|
|
@ -337,8 +337,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
local pos = minetest.string_to_pos(pos_string)
|
local pos = minetest.string_to_pos(pos_string)
|
||||||
if test_key(pos) then
|
if test_key(pos) then
|
||||||
if named_waypoints_path then
|
if named_waypoints_path then
|
||||||
named_waypoints.update_waypoint("puzzle_seals", pos, {name=S("Breach in the Slade"), color=0xFA264F})
|
named_waypoints.update_waypoint("puzzle_seals", pos, {name=S("Breach in the Slade"), color=0xFA264F, player=player:get_player_name()})
|
||||||
end
|
end
|
||||||
|
minetest.log("action", "[df_underworld_items] " .. player:get_player_name() .. " triggered a puzzle seal at " .. pos_string)
|
||||||
minetest.set_node(pos, {name="df_underworld_items:digging_seal", param2 = math.random(1,4)-1})
|
minetest.set_node(pos, {name="df_underworld_items:digging_seal", param2 = math.random(1,4)-1})
|
||||||
minetest.get_node_timer(pos):start(4)
|
minetest.get_node_timer(pos):start(4)
|
||||||
minetest.close_formspec(player:get_player_name(), formname)
|
minetest.close_formspec(player:get_player_name(), formname)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user