add named waypoints to the underworld

This commit is contained in:
FaceDeer
2020-01-25 13:55:40 -07:00
parent f11e878b08
commit a47c25a89c
6 changed files with 160 additions and 15 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: dfcaverns module's Italian locale\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-24 21:26-0700\n"
"POT-Creation-Date: 2020-01-25 13:52-0700\n"
"PO-Revision-Date: 2017-08-17 23:01+0100\n"
"Last-Translator: H4mlet <h4mlet@riseup.net>\n"
"Language-Team: ITALIANO\n"
@ -85,6 +85,38 @@ msgstr ""
msgid "Lightseam"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:108
msgid "Turn"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:178
msgid "Slade Puzzle Seal"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:238
msgid "Active Slade Breacher"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:336
msgid "A breach in the Slade"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:347
msgid "Inscribed Slade Block"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:370
msgid "Slade Capstone"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:439
msgid "Slade Block Stair"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:440
msgid "Slade Block Slab"
msgstr ""
#: df_underworld_items\slade.lua:18
msgid "Slade"
msgstr ""
@ -97,23 +129,23 @@ msgstr ""
msgid "Slade Wall"
msgstr ""
#: df_underworld_items\slade.lua:77
#: df_underworld_items\slade.lua:78
msgid "Slade Sand"
msgstr ""
#: df_underworld_items\slade.lua:89
#: df_underworld_items\slade.lua:90
msgid "Slade Block"
msgstr ""
#: df_underworld_items\slade.lua:105
#: df_underworld_items\slade.lua:106
msgid "Slade Seal"
msgstr ""
#: df_underworld_items\slade.lua:154
#: df_underworld_items\slade.lua:155
msgid "Slade Stair"
msgstr ""
#: df_underworld_items\slade.lua:155
#: df_underworld_items\slade.lua:156
msgid "Slade Slab"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-12-24 21:26-0700\n"
"POT-Creation-Date: 2020-01-25 13:52-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -84,6 +84,38 @@ msgstr ""
msgid "Lightseam"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:108
msgid "Turn"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:178
msgid "Slade Puzzle Seal"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:238
msgid "Active Slade Breacher"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:336
msgid "A breach in the Slade"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:347
msgid "Inscribed Slade Block"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:370
msgid "Slade Capstone"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:439
msgid "Slade Block Stair"
msgstr ""
#: df_underworld_items\puzzle_seal.lua:440
msgid "Slade Block Slab"
msgstr ""
#: df_underworld_items\slade.lua:18
msgid "Slade"
msgstr ""
@ -96,22 +128,22 @@ msgstr ""
msgid "Slade Wall"
msgstr ""
#: df_underworld_items\slade.lua:77
#: df_underworld_items\slade.lua:78
msgid "Slade Sand"
msgstr ""
#: df_underworld_items\slade.lua:89
#: df_underworld_items\slade.lua:90
msgid "Slade Block"
msgstr ""
#: df_underworld_items\slade.lua:105
#: df_underworld_items\slade.lua:106
msgid "Slade Seal"
msgstr ""
#: df_underworld_items\slade.lua:154
#: df_underworld_items\slade.lua:155
msgid "Slade Stair"
msgstr ""
#: df_underworld_items\slade.lua:155
#: df_underworld_items\slade.lua:156
msgid "Slade Slab"
msgstr ""

View File

@ -2,6 +2,8 @@
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local named_waypoints_path = minetest.get_modpath("named_waypoints")
local invulnerable = df_underworld_items.config.invulnerable_slade and not minetest.settings:get_bool("creative_mode")
local slade_groups = nil
@ -330,6 +332,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
local pos_string = formname:sub(prefix_len+1)
local pos = minetest.string_to_pos(pos_string)
if test_key(pos) then
if named_waypoints_path then
named_waypoints.update_waypoint("puzzle_seals", pos, {name=S("A breach in the Slade")})
end
minetest.set_node(pos, {name="df_underworld_items:digging_seal", param2 = math.random(1,4)-1})
minetest.get_node_timer(pos):start(4)
minetest.close_formspec(player:get_player_name(), formname)