#textdomain wesnoth
# Utility macros for use in the objectives dialog or for defining the whole
# [objectives] tag.

#define TURNS_RUN_OUT
    [objective]
        description= _ "Turns run out"
        condition=lose
        show_turn_counter=yes
    [/objective]
#enddef

#define EARLY_FINISH_BONUS_NOTE
_"Early finish bonus."#enddef

#define NO_EARLY_FINISH_BONUS_NOTE
_"No early finish bonus."#enddef

#define EARLY_FINISH_BONUS_CAPTION
    # Deprecated; use the below EARLY_FINISH_BONUS_FOOTNOTE instead
_"<small>(early finish bonus)</small>"#enddef

#wmllint: markcheck off
#define EARLY_FINISH_BONUS_FOOTNOTE
"<span foreground='white'><small> " + _"(early finish bonus)" + "</small></span>"#enddef
#wmllint: markcheck on

#define NO_GOLD_CARRYOVER_NOTE
_"No gold carried over to the next scenario."#enddef

#define NEW_GOLD_CARRYOVER_NOTE_100
    _"
100% of finishing gold carried over to the next scenario."#enddef

#define NEW_GOLD_CARRYOVER_NOTE_40
    _"
40% of finishing gold carried over to the next scenario."#enddef

#define NEW_GOLD_CARRYOVER_NOTE_20
    _"
20% of finishing gold carried over to the next scenario."#enddef

#define OBJECTIVE_FOOTNOTE TEXT
    "<span foreground='white'><small> " + {TEXT} + "</small></span>"
#enddef

#define ALTERNATIVE_OBJECTIVE_CAPTION
    caption= _ "Alternative objective:"
#enddef

#define BONUS_OBJECTIVE_CAPTION
    caption= _ "Bonus objective:"
#enddef

#define ALTERNATIVE_OBJECTIVE OBJECTIVE_TEXT
    [objective]
        {ALTERNATIVE_OBJECTIVE_CAPTION}
        description={OBJECTIVE_TEXT}
        condition=win
    [/objective]
#enddef

#define ALTERNATIVE_OBJECTIVE_BONUS OBJECTIVE_TEXT
    [objective]
        {ALTERNATIVE_OBJECTIVE_CAPTION}
        description={OBJECTIVE_TEXT}+{EARLY_FINISH_BONUS_FOOTNOTE}
        condition=win
    [/objective]
#enddef

#define IS_LAST_SCENARIO
    [note]
        red,blue,green=0,255,255
        description="<b>" + _"This is the last scenario." + "</b>"
    [/note]
#enddef
