From fe81a09155177888226a6d304bdee3f195832a43 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 1 Sep 2016 12:12:41 +0200 Subject: Remove experimental achievement --- init.lua | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'init.lua') 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 -- cgit v1.2.3