Skip to content

Commit

Permalink
Support carryover_add in [objectives][gold_carryover]
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Aug 5, 2018
1 parent 01d7069 commit 7bd355e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/lua/wml/objectives.lua
Expand Up @@ -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

Expand Down

0 comments on commit 7bd355e

Please sign in to comment.