Support carryover_add in [objectives][gold_carryover]
This commit is contained in:
parent
01d7069d7d
commit
7bd355e942
1 changed files with 10 additions and 0 deletions
|
@ -134,6 +134,16 @@ function wml_actions.objectives.gold_carryover.generate(cfg, default_bullet)
|
|||
.. "<small>" .. carryover_amount_string .. "</small></span>\n"
|
||||
end
|
||||
|
||||
if obj.carryover_add ~- nil then
|
||||
if obj.carryover_add then
|
||||
gold_carryover = gold_carryover .. color_prefix(r, g, b) .. gold_carryover_bullet
|
||||
.. "<small>" .. _"Carryover gold will be added to the next scenario's starting gold." .. "</small></span>\n"
|
||||
else
|
||||
gold_carryover = gold_carryover .. color_prefix(r, g, b) .. gold_carryover_bullet
|
||||
.. "<small>" .. _"Carryover gold will replace the next scenario's starting gold, if larger." .. "</small></span>\n"
|
||||
end
|
||||
end
|
||||
|
||||
return gold_carryover
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue