Reduce score requirement

This commit is contained in:
rubenwardy 2018-01-09 03:00:29 +00:00
parent b5b292ba27
commit 337009188f
2 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ local function get_is_player_pro(player)
end
local pstat = ctf_stats.player(player:get_player_name())
local kd = pstat.kills / max(pstat.deaths, 1)
return pstat.score > 2000 and kd > 2
return pstat.score > 1000 and kd > 2
end
local colors = {"red", "blue"}
@ -105,10 +105,10 @@ for _, chest_color in pairs(colors) do
if is_pro then
formspec = formspec .. "listring[current_name;pro]" ..
"label[5,-0.2;" .. minetest.formspec_escape("Pro players only (2k+ score, good KD)") .. "]"
"label[5,-0.2;" .. minetest.formspec_escape("Pro players only (1k+ score, good KD)") .. "]"
else
formspec = formspec .. "listring[current_name;pro]" ..
"label[5,-0.2;" .. minetest.formspec_escape("You need 2k+ score and good KD") .. "]"
"label[5,-0.2;" .. minetest.formspec_escape("You need 1k+ score and good KD") .. "]"
end
formspec = formspec ..

View file

@ -53,7 +53,7 @@ function random_messages.read_messages()
"Gain more score by killing more than you die, or by capturing the flag.",
"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.",
"Access the pro section of the chest by achieving a 1k+ score and killing 2 people for every death.",
"Use team doors (steel) to stop the enemy walking into your base.",
"Sprint by pressing the fast key (E) when you have stamina.",
"Like CTF? Give feedback using /report, and consider donating at rubenwardy.com/donate",