From d25e060d9056c97725d6017d94c4a7d7b58f0484 Mon Sep 17 00:00:00 2001 From: MinetestSam <42088654+MinetestSam@users.noreply.github.com> Date: Sun, 15 Dec 2019 18:59:37 +0530 Subject: [PATCH] Double the scores awarded for attempts and captures (#526) --- mods/ctf/ctf_stats/init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/ctf/ctf_stats/init.lua b/mods/ctf/ctf_stats/init.lua index ab7e593..05de3c7 100644 --- a/mods/ctf/ctf_stats/init.lua +++ b/mods/ctf/ctf_stats/init.lua @@ -220,9 +220,9 @@ table.insert(ctf_flag.registered_on_capture, 1, function(name, flag) local main, match = ctf_stats.player(name) if main and match then main.captures = main.captures + 1 - main.score = main.score + 25 + main.score = main.score + 50 match.captures = match.captures + 1 - match.score = match.score + 25 + match.score = match.score + 50 _needs_save = true end ctf_stats.winner_player = name @@ -230,7 +230,7 @@ table.insert(ctf_flag.registered_on_capture, 1, function(name, flag) hud_score.new(name, { name = "ctf_stats:flag_capture", color = "0xFF00FF", - value = 25 + value = 50 }) end) @@ -292,16 +292,16 @@ ctf_flag.register_on_pick_up(function(name, flag) local main, match = ctf_stats.player(name) if main and match then main.attempts = main.attempts + 1 - main.score = main.score + 10 + main.score = main.score + 20 match.attempts = match.attempts + 1 - match.score = match.score + 10 + match.score = match.score + 20 _needs_save = true end hud_score.new(name, { name = "ctf_stats:flag_pick_up", color = "0xAA00AA", - value = 10 + value = 20 }) end)