From 0de7a34fcf4cdded30d956a4fd1e809343940a64 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Mon, 31 Dec 2018 16:03:36 +0100 Subject: [PATCH] =?UTF-8?q?Supprime=20l'argent=20donn=C3=A9=20pour=20les?= =?UTF-8?q?=20nouveaux=20joueurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajoute message de chargement du mod dans le journal "action" --- init.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 460040d..2ee04b3 100644 --- a/init.lua +++ b/init.lua @@ -5,24 +5,24 @@ assert(insecure_env, local modpath = minetest.get_modpath(minetest.get_current_modname()) .. "/" -local income = tonumber(minetest.setting_get("citizens_income")) or 10 +--[[local income = tonumber(minetest.setting_get("citizens_income")) or 10 local income_interval = 1200 local income_msg = "You receive your citizen's income (+" .. income .. ")" local next_payout = os.time() + income_interval +]]-- local exchange = - assert(loadfile(modpath .. "exchange.lua"))(insecure_env).open_exchange( + assert(loadfile(modpath .. "exchange.lua"))(insecure_env).open_exchange( minetest.get_worldpath() .. "/global_exchange.db" ) - minetest.register_on_shutdown(function() exchange:close() end) -local function check_giving() +--[[local function check_giving() local now = os.time() if now < next_payout then return @@ -45,9 +45,10 @@ local function check_giving() end minetest.after(5, check_giving) - - +]]-- assert(loadfile(modpath .. "atm.lua"))(exchange) assert(loadfile(modpath .. "exchange_machine.lua"))(exchange) assert(loadfile(modpath .. "digital_mailbox.lua"))(exchange) + +minetest.log("action", "[global_exchange] loaded.")