ADD_GOLD's time has come. Remove it.
Generalize the DEPRECATE macro.
This commit is contained in:
parent
92dfa04938
commit
270ee001bd
1 changed files with 3 additions and 15 deletions
|
@ -2,23 +2,11 @@
|
|||
|
||||
# ! in comments is used for generating HTML documentation, ignore it otherwise.
|
||||
|
||||
#define DEPRECATE_132 NAME
|
||||
# Tag macros for removal, the number in the name is the
|
||||
#define DEPRECATE NAME VERSION
|
||||
# Tag macros for removal, the VERSION argument is the
|
||||
# release where the message is shown the first time.
|
||||
# The removal will be 2 versions later.
|
||||
[deprecated_message]
|
||||
message="Macro '" + {NAME} + "' is scheduled for removal in Wesnoth 1.3.4."
|
||||
message="Macro '" + {NAME} + "' is scheduled for removal in Wesnoth " + {VERSION} + "."
|
||||
[/deprecated_message]
|
||||
#enddef
|
||||
|
||||
|
||||
#define ADD_GOLD SIDE AMOUNT
|
||||
# Gives a side an amount of gold
|
||||
# For example, to make player 1 rich:
|
||||
#! {ADD_GOLD 1 999}
|
||||
{DEPRECATE_132 ADD_GOLD}
|
||||
[gold]
|
||||
side={SIDE}
|
||||
amount={AMOUNT}
|
||||
[/gold]
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue