From 1dc058cf80c16ac3f93da83531acbeb7c4aa3081 Mon Sep 17 00:00:00 2001 From: ezhh Date: Sat, 8 Jul 2017 15:00:43 +0100 Subject: [PATCH] Add adjustments from Dark Lands version --- bewarethedark.default.conf | 26 +++++++++++++------------- init.lua | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/bewarethedark.default.conf b/bewarethedark.default.conf index d4224a6..026f48c 100644 --- a/bewarethedark.default.conf +++ b/bewarethedark.default.conf @@ -29,7 +29,7 @@ bewarethedark.config = { may change computation load or accuracy. ]] - tick_time = 0.5, + tick_time = 1, --[[ Damage per second for various light levels, both for hp and sanity loss. Negative values "heal" sanity, but not @@ -38,20 +38,20 @@ bewarethedark.config = { damage_for_light = { [15] = -1.0, - [14] = -0.5, - [13] = -0.2, -- the light level for default torches - [12] = 0, - [11] = 0, - [10] = 0, + [14] = -1.0, + [13] = -0.5, -- the light level for default torches + [12] = -0.3, + [11] = -0.2, + [10] = -0.1, [ 9] = 0, [ 8] = 0, - [ 7] = 0.1, - [ 6] = 0.2, - [ 5] = 0.3, - [ 4] = 0.4, - [ 3] = 0.5, - [ 2] = 0.6, - [ 1] = 0.8, + [ 7] = 0, + [ 6] = 0.1, + [ 5] = 0.1, + [ 4] = 0.2, + [ 3] = 0.3, + [ 2] = 0.5, + [ 1] = 0.7, [ 0] = 1.0, }, diff --git a/init.lua b/init.lua index 69051da..11fc218 100644 --- a/init.lua +++ b/init.lua @@ -67,8 +67,8 @@ minetest.register_on_joinplayer(function(player) if not pl then M.players[name] = { pending_dmg = 0.0 } pl = M.players[name] - M.hud_init(player) end + M.hud_init(player) end) minetest.register_on_respawnplayer(function(player)