summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-09-01 12:12:41 +0200
committerWuzzy <almikes@aol.com>2016-09-01 12:12:41 +0200
commitfe81a09155177888226a6d304bdee3f195832a43 (patch)
treeed7776147c4cad6492583dbb112cc45091e4ad79
parente23bf27aef294c3d337f86dbb32dbbb2497de559 (diff)
Remove experimental achievement
-rw-r--r--init.lua27
1 files changed, 1 insertions, 26 deletions
diff --git a/init.lua b/init.lua
index ab04bca..5c38297 100644
--- a/init.lua
+++ b/init.lua
@@ -235,29 +235,4 @@ if minetest.get_modpath("doc_identifier") ~= nil then
doc.sub.identifier.register_object("boats:boat", "craftitems", "boats:boat")
end
--- Achievement
-local awardchecktime = 0
-if minetest.get_modpath("awards") ~= nil then
- -- TODO: Change the goal to unlocking/discovering all block entries of Minetest Game
- -- (excluding unused blocks like default:cloud)
- awards.register_achievement("doc_minetest_game_allnodes", {
- title = "Block Index Completed",
- icon = "doc_awards_icon_generic.png",
- description = "Read all help entries about blocks.",
- })
-
- minetest.register_globalstep(function(dtime)
- -- Check awards every 30 seconds
- awardchecktime = awardchecktime + dtime
- if awardchecktime < 30 then return end
- awardchecktime = 30 - awardchecktime
- local players = minetest.get_connected_players()
- for p=1,#players do
- local playername = players[p]:get_player_name()
- local count = doc.get_viewed_count(playername, "nodes")
- if count ~= nil and count >= doc.get_entry_count("nodes") then
- awards.unlock(playername, "doc_minetest_game_allnodes")
- end
- end
- end)
-end
+-- TODO: Maybe add achievement for discovering all Minetest Game node entries