diff options
author | Wuzzy <almikes@aol.com> | 2016-09-01 12:12:41 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-09-01 12:12:41 +0200 |
commit | fe81a09155177888226a6d304bdee3f195832a43 (patch) | |
tree | ed7776147c4cad6492583dbb112cc45091e4ad79 | |
parent | e23bf27aef294c3d337f86dbb32dbbb2497de559 (diff) |
Remove experimental achievement
-rw-r--r-- | init.lua | 27 |
1 files changed, 1 insertions, 26 deletions
@@ -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 |