diff options
author | Wuzzy <almikes@aol.com> | 2016-12-27 19:14:32 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-12-27 19:14:32 +0100 |
commit | 5ffa16917eb846dca92d9ed243f3fa73c105d1b5 (patch) | |
tree | ebd47516f59d5294cb393da9d49bf1e3183cfb46 | |
parent | a2c4961f28fbd1a4df01d5074f5346eb8ca850c4 (diff) |
Add msg when all entries are already revealed
-rw-r--r-- | init.lua | 17 | ||||
-rw-r--r-- | locale/de.txt | 3 | ||||
-rw-r--r-- | locale/template.txt | 3 |
3 files changed, 14 insertions, 9 deletions
@@ -186,21 +186,24 @@ function doc.mark_all_entries_as_revealed(playername) end end + local msg if reveal1 then -- Needed because new entries are added to player's view on entry list doc.data.players[playername].entry_textlist_needs_updating = true - -- Notify - local msg = S("All help entries unlocked!") - if minetest.get_modpath("central_message") ~= nil then - cmsg.push_message_player(minetest.get_player_by_name(playername), msg) - else - minetest.chat_send_player(playername, msg) - end + msg = S("All help entries revealed!") -- Play notification sound (ignore sound limit intentionally) minetest.sound_play({ name = "doc_reveal", gain = 0.2 }, { to_player = playername }) doc.data.players[playername].last_reveal_sound = os.time() + else + msg = S("All help entries are already revealed.") + end + -- Notify + if minetest.get_modpath("central_message") ~= nil then + cmsg.push_message_player(minetest.get_player_by_name(playername), msg) + else + minetest.chat_send_player(playername, msg) end end diff --git a/locale/de.txt b/locale/de.txt index 7716e1f..fd6effa 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -2,7 +2,8 @@ > = > Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry. = Der Zugriff auf den angeforderten Eintrag wurde verweigert; dieser Eintrag ist geheim. Sie können durch weiteren Spielfortschritt den Zugriff freischalten. Finden Sie selbst heraus, wie Sie diesen Eintrag freischalten können. All entries read. = Alle Einträge gelesen. -All help entries unlocked! = Alle Hilfseinträge freigeschaltet! +All help entries revealed! = Alle Hilfseinträge aufgedeckt! +All help entries are already revealed. = Alle Hilfseinträge sind schon aufgedeckt. Allows you to reveal all hidden help entries with /help_reveal = Ermöglicht es Ihnen, alle verborgenen Hilfseinträge mit /help_reveal freizuschalten Category list = Kategorienliste Currently all entries in this category are hidden from you.\nUnlock new entries by progressing in the game. = Momentan sind alle Einträge in dieser Kategorie vor Ihnen verborgen.\nSchalten Sie neue Einträge frei, indem Sie im Spiel fortschreiten. diff --git a/locale/template.txt b/locale/template.txt index 242ddda..7d852e9 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -2,7 +2,8 @@ > = Access to the requested entry has been denied; this entry is secret. You may unlock access by progressing in the game. Figure out on your own how to unlock this entry. = All entries read. = -All help entries unlocked! = +All help entries revealed! = +All help entries are already revealed. = Allows you to reveal all hidden help entries with /help_reveal = Category list = Currently all entries in this category are hidden from you.\\nUnlock new entries by progressing in the game. = |