Update help texts

This commit is contained in:
rubenwardy 2018-01-02 20:13:30 +00:00
parent cd9c30d362
commit c2e84b229d
2 changed files with 12 additions and 12 deletions

View file

@ -3,10 +3,13 @@ local items = {
"", "",
"* Capture an enemy's flag by walking up to it, punching it, then", "* Capture an enemy's flag by walking up to it, punching it, then",
" running and punching your team's flag.", " running and punching your team's flag.",
"* Look for guns, grenades and other resources in chests.", "* Look for weapons and other resources in chests.",
"* Guns can destroy blocks.",
"* Good swords do more damage than guns, but need to be used at close range.", "* 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"), minetest.colorize("#66a0ff", "Team Co-op"),

View file

@ -54,7 +54,7 @@ function random_messages.read_messages()
"You gain more score the better the opponent you defeat.", "You gain more score the better the opponent you defeat.",
"Players are immune for 10 seconds after they respawn.", "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.", "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 end
@ -99,14 +99,11 @@ end
random_messages.set_interval() random_messages.set_interval()
random_messages.read_messages() random_messages.read_messages()
local TIMER = 0 local function step(dtime)
minetest.register_globalstep(function(dtime)
TIMER = TIMER + dtime;
if TIMER > MESSAGE_INTERVAL then
random_messages.show_message() random_messages.show_message()
TIMER = 0 minetest.after(MESSAGE_INTERVAL, step)
end end
end) minetest.after(MESSAGE_INTERVAL, step)
local register_chatcommand_table = { local register_chatcommand_table = {
params = "viewmessages | removemessage <number> | addmessage <number>", params = "viewmessages | removemessage <number> | addmessage <number>",