From c2e84b229d047c63c993bf1a36bfae686af326f2 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 2 Jan 2018 20:13:30 +0000 Subject: [PATCH] Update help texts --- mods/ctf_inventory/init.lua | 9 ++++++--- mods/random_messages/init.lua | 15 ++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/mods/ctf_inventory/init.lua b/mods/ctf_inventory/init.lua index 57f0721..c593098 100644 --- a/mods/ctf_inventory/init.lua +++ b/mods/ctf_inventory/init.lua @@ -3,10 +3,13 @@ local items = { "", "* Capture an enemy's flag by walking up to it, punching it, then", " running and punching your team's flag.", - "* Look for guns, grenades and other resources in chests.", - "* Guns can destroy blocks.", + "* Look for weapons and other resources in chests.", "* Good swords do more damage than guns, but need to be used at close range.", - "* Use apples to replenish health.", + "* Use apples to replenish health quickly.", + "* Gain more score by killing more than you die, or by capturing the flag.", + "* Players are immune for 10 seconds after they respawn.", + "* Access the pro section of the chest by achieving a 2k+ score and", + " killing 2 people for every death.", "", minetest.colorize("#66a0ff", "Team Co-op"), diff --git a/mods/random_messages/init.lua b/mods/random_messages/init.lua index 5f5b551..9b6ce3c 100644 --- a/mods/random_messages/init.lua +++ b/mods/random_messages/init.lua @@ -54,7 +54,7 @@ function random_messages.read_messages() "You gain more score the better the opponent you defeat.", "Players are immune for 10 seconds after they respawn.", "Access the pro section of the chest by achieving a 2k+ score and killing 2 people for every death.", - "Like CTF? rubenwardy.com/donate", + "Like CTF? Give feedback using /report, and consider donating at rubenwardy.com/donate", } end @@ -99,14 +99,11 @@ end random_messages.set_interval() random_messages.read_messages() -local TIMER = 0 -minetest.register_globalstep(function(dtime) - TIMER = TIMER + dtime; - if TIMER > MESSAGE_INTERVAL then - random_messages.show_message() - TIMER = 0 - end -end) +local function step(dtime) + random_messages.show_message() + minetest.after(MESSAGE_INTERVAL, step) +end +minetest.after(MESSAGE_INTERVAL, step) local register_chatcommand_table = { params = "viewmessages | removemessage | addmessage ",