Double the scores awarded for attempts and captures (#526)
This commit is contained in:
parent
06a1fb3d22
commit
d25e060d90
1 changed files with 6 additions and 6 deletions
|
@ -220,9 +220,9 @@ table.insert(ctf_flag.registered_on_capture, 1, function(name, flag)
|
||||||
local main, match = ctf_stats.player(name)
|
local main, match = ctf_stats.player(name)
|
||||||
if main and match then
|
if main and match then
|
||||||
main.captures = main.captures + 1
|
main.captures = main.captures + 1
|
||||||
main.score = main.score + 25
|
main.score = main.score + 50
|
||||||
match.captures = match.captures + 1
|
match.captures = match.captures + 1
|
||||||
match.score = match.score + 25
|
match.score = match.score + 50
|
||||||
_needs_save = true
|
_needs_save = true
|
||||||
end
|
end
|
||||||
ctf_stats.winner_player = name
|
ctf_stats.winner_player = name
|
||||||
|
@ -230,7 +230,7 @@ table.insert(ctf_flag.registered_on_capture, 1, function(name, flag)
|
||||||
hud_score.new(name, {
|
hud_score.new(name, {
|
||||||
name = "ctf_stats:flag_capture",
|
name = "ctf_stats:flag_capture",
|
||||||
color = "0xFF00FF",
|
color = "0xFF00FF",
|
||||||
value = 25
|
value = 50
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -292,16 +292,16 @@ ctf_flag.register_on_pick_up(function(name, flag)
|
||||||
local main, match = ctf_stats.player(name)
|
local main, match = ctf_stats.player(name)
|
||||||
if main and match then
|
if main and match then
|
||||||
main.attempts = main.attempts + 1
|
main.attempts = main.attempts + 1
|
||||||
main.score = main.score + 10
|
main.score = main.score + 20
|
||||||
match.attempts = match.attempts + 1
|
match.attempts = match.attempts + 1
|
||||||
match.score = match.score + 10
|
match.score = match.score + 20
|
||||||
_needs_save = true
|
_needs_save = true
|
||||||
end
|
end
|
||||||
|
|
||||||
hud_score.new(name, {
|
hud_score.new(name, {
|
||||||
name = "ctf_stats:flag_pick_up",
|
name = "ctf_stats:flag_pick_up",
|
||||||
color = "0xAA00AA",
|
color = "0xAA00AA",
|
||||||
value = 10
|
value = 20
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue