mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 20:27:40 +00:00
WC: fix #7921 Random training per scenario
a free random training on easier difficulties should only be given in the first scenario. (Otherwise they'll accumulate to 5 free trainings at scenario 5.)
This commit is contained in:
parent
b13406c63e
commit
8bbaba898d
@ -70,7 +70,6 @@ on_event("wc2_start", function(cx)
|
||||
side = side_num
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
if wml.variables.wc2_difficulty.extra_training then
|
||||
for side_num = 1, wml.variables.wc2_player_count do
|
||||
@ -80,6 +79,7 @@ on_event("wc2_start", function(cx)
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local gold = (wml.variables.wc2_carryover or 0) + (wml.variables["wc2_difficulty.extra_gold"] or 0)
|
||||
for i = 1, wml.variables.wc2_player_count do
|
||||
|
Loading…
x
Reference in New Issue
Block a user