wesnoth/data/core/macros/carryover-utils.cfg
Eric S. Raymond 385f38fcd6 Refactor carryover definitions...
...so that only one is visible to wmlscope at any given time.
2008-10-05 10:11:01 +00:00

65 lines
1.4 KiB
INI

#textdomain wesnoth
# These aren't actually macros, but they need to go somewhere anyway.
# The wmlscope pragmas prevent spurious complaints about multiple definitions
# wmlscope: start ignoring
#ifdef EASYNEWCARRYOVER
#define EASY
#enddef
#define NEW_GOLD_CARRYOVER_USED
#enddef
#endif
#ifdef NORMALNEWCARRYOVER
#define NORMAL
#enddef
#define NEW_GOLD_CARRYOVER_USED
#enddef
#endif
#ifdef HARDNEWCARRYOVER
#define HARD
#enddef
#define NEW_GOLD_CARRYOVER_USED
#enddef
#endif
# wmlscope: stop ignoring
# These are used in scenarios, to include the carryover-defining keys into
# [endlevel]s and to show the carryover details in the objectives dialog.
#define NEW_GOLD_CARRYOVER PERCENTAGE
#enddef
#ifdef NEW_GOLD_CARRYOVER_USED
#undef NEW_GOLD_CARRYOVER
#define NEW_GOLD_CARRYOVER PERCENTAGE
carryover_add=yes
carryover_percentage={PERCENTAGE}
#enddef
#endif
#ifdef NEW_GOLD_CARRYOVER_USED
#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
#else
# wmlscope: start ignoring
#define NEW_GOLD_CARRYOVER_NOTE_40
""
#enddef
#define NEW_GOLD_CARRYOVER_NOTE_20
""
#enddef
# wmlscope: stop ignoring
#endif