From d962dd16544e7b53ef6e8cf3b619811fd3b58e9a Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Wed, 18 Jan 2017 23:42:36 -0700 Subject: Add a bunch of achievements via optional dependency on the Awards mod --- util_execute_cycle.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util_execute_cycle.lua') diff --git a/util_execute_cycle.lua b/util_execute_cycle.lua index fdb74b8..8972475 100644 --- a/util_execute_cycle.lua +++ b/util_execute_cycle.lua @@ -248,6 +248,7 @@ digtron.execute_dig_cycle = function(pos, clicker) for _, itemname in pairs(items_dropped) do digtron.place_in_inventory(itemname, layout.inventories, oldpos) end + digtron.award_item_dug(items_dropped, clicker:get_player_name()) -- Achievements mod hook local building_fuel_cost = 0 local strange_failure = false @@ -458,7 +459,8 @@ digtron.execute_downward_dig_cycle = function(pos, clicker) for _, itemname in pairs(items_dropped) do digtron.place_in_inventory(itemname, layout.inventories, oldpos) end - + digtron.award_item_dug(items_dropped, clicker:get_player_name()) -- Achievements mod hook + local status_text = "" -- acutally burn the fuel needed -- cgit v1.2.3