Generalize the deprecated unit macro used for the khalifate
This moves a string from one file to another, but I checked: the textdomain was the same in both files. So, it doesn't break the string freeze.
This commit is contained in:
parent
f4b031b7ac
commit
1cbe8d9170
3 changed files with 56 additions and 44 deletions
|
@ -24,6 +24,37 @@
|
|||
#enddef
|
||||
#wmllint: markcheck on
|
||||
|
||||
#define DEPRECATED_UNIT OLD_NAME NEW_NAME VERSION_NAME
|
||||
# Tag [unit_type] for removal, where VERSION_NAME is the the next development series from the date of deprecation.
|
||||
# NEW_NAME can be an empty string to indicate that there's no replacement.
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
[event]
|
||||
id=unit_deprecation_message_{OLD_NAME}
|
||||
name=unit placed
|
||||
[filter]
|
||||
type={OLD_NAME}
|
||||
[/filter]
|
||||
|
||||
{VARIABLE deprecation__temporary__variable__ {NEW_NAME}}
|
||||
[if]
|
||||
{VARIABLE_CONDITIONAL deprecation__temporary__variable__ equals ""}
|
||||
[else]
|
||||
{VARIABLE_OP deprecation__temporary__variable__ prefix _"This unit has been renamed to: "}
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[deprecated_message]
|
||||
what={OLD_NAME}
|
||||
level=3
|
||||
message=$deprecation__temporary__variable__
|
||||
version={VERSION_NAME}
|
||||
[/deprecated_message]
|
||||
|
||||
{CLEAR_VARIABLE deprecation__temporary__variable__}
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
#define MAGENTA_IS_THE_TEAM_COLOR
|
||||
#deprecated 3 1.15 This used to be used to set the default team color for most unit types
|
||||
#deprecated 3 1.15 It's no longer needed, since the default is now set in the game_config.
|
||||
|
|
|
@ -1,21 +1,3 @@
|
|||
#define DEPRECATED_MSG OLD_NAME NEW_NAME
|
||||
|
||||
[event]
|
||||
name=unit placed
|
||||
first_time_only=no
|
||||
[filter]
|
||||
type={OLD_NAME}
|
||||
[/filter]
|
||||
|
||||
[deprecated_message]
|
||||
what={OLD_NAME}
|
||||
level=3
|
||||
message= _ "This unit has been renamed to: " + {NEW_NAME}
|
||||
version=1.15
|
||||
[/deprecated_message]
|
||||
[/event]
|
||||
|
||||
#enddef
|
||||
|
||||
[unit_type]
|
||||
id=Batal
|
||||
|
@ -26,7 +8,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Batal "Dune Ranger"}
|
||||
{DEPRECATED_UNIT Batal "Dune Ranger" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -38,7 +20,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Hadaf "Dune Marauder"}
|
||||
{DEPRECATED_UNIT Hadaf "Dune Marauder" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -50,7 +32,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Jawal "Dune Windrider"}
|
||||
{DEPRECATED_UNIT Jawal "Dune Windrider" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -62,7 +44,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Mighwar "Dune Harrier"}
|
||||
{DEPRECATED_UNIT Mighwar "Dune Harrier" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -74,7 +56,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Khalid "Dune Warmaster"}
|
||||
{DEPRECATED_UNIT Khalid "Dune Warmaster" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -86,7 +68,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Tabib "Dune Apothecary"}
|
||||
{DEPRECATED_UNIT Tabib "Dune Apothecary" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -98,7 +80,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Shuja "Dune Blademaster"}
|
||||
{DEPRECATED_UNIT Shuja "Dune Blademaster" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -110,7 +92,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Mufariq "Dune Cataphract"}
|
||||
{DEPRECATED_UNIT Mufariq "Dune Cataphract" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -122,7 +104,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Rasikh "Dune Spearmaster"}
|
||||
{DEPRECATED_UNIT Rasikh "Dune Spearmaster" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -134,7 +116,7 @@
|
|||
advances_to=null
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Tineen "Dune Firetrooper"}
|
||||
{DEPRECATED_UNIT Tineen "Dune Firetrooper" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -146,7 +128,7 @@
|
|||
advances_to=Hadaf
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Qanas "Dune Raider"}
|
||||
{DEPRECATED_UNIT Qanas "Dune Raider" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -158,7 +140,7 @@
|
|||
advances_to=Saree
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Rami "Dune Rider"}
|
||||
{DEPRECATED_UNIT Rami "Dune Rider" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -170,7 +152,7 @@
|
|||
advances_to=Qatif_al_nar
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Naffat "Dune Burner"}
|
||||
{DEPRECATED_UNIT Naffat "Dune Burner" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -182,7 +164,7 @@
|
|||
advances_to=Batal
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Muharib "Dune Explorer"}
|
||||
{DEPRECATED_UNIT Muharib "Dune Explorer" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -194,7 +176,7 @@
|
|||
advances_to=Mufariq
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Faris "Dune Sunderer"}
|
||||
{DEPRECATED_UNIT Faris "Dune Sunderer" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -206,7 +188,7 @@
|
|||
advances_to=Tabib
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Hakim "Dune Herbalist"}
|
||||
{DEPRECATED_UNIT Hakim "Dune Herbalist" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -218,7 +200,7 @@
|
|||
advances_to=Jawal
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Saree "Dune Swiftrider"}
|
||||
{DEPRECATED_UNIT Saree "Dune Swiftrider" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -230,7 +212,7 @@
|
|||
advances_to=Shuja
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Ghazi "Dune Swordsman"}
|
||||
{DEPRECATED_UNIT Ghazi "Dune Swordsman" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -242,7 +224,7 @@
|
|||
advances_to=Mighwar
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Monawish "Dune Skirmisher"}
|
||||
{DEPRECATED_UNIT Monawish "Dune Skirmisher" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -254,7 +236,7 @@
|
|||
advances_to=Rasikh
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Mudafi "Dune Spearguard"}
|
||||
{DEPRECATED_UNIT Mudafi "Dune Spearguard" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -266,7 +248,7 @@
|
|||
advances_to=Tineen
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Qatif_al_nar "Dune Scorcher"}
|
||||
{DEPRECATED_UNIT Qatif_al_nar "Dune Scorcher" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -278,7 +260,7 @@
|
|||
advances_to=Monawish,Muharib
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Jundi "Dune Rover"}
|
||||
{DEPRECATED_UNIT Jundi "Dune Rover" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -290,7 +272,7 @@
|
|||
advances_to=Faris,Qanas
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Khaiyal "Dune Piercer"}
|
||||
{DEPRECATED_UNIT Khaiyal "Dune Piercer" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
[unit_type]
|
||||
|
@ -302,7 +284,5 @@
|
|||
advances_to=Ghazi,Mudafi
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_MSG Arif "Dune Soldier"}
|
||||
{DEPRECATED_UNIT Arif "Dune Soldier" 1.15}
|
||||
[/unit_type]
|
||||
|
||||
#undef DEPRECATED_MSG
|
||||
|
|
|
@ -29,4 +29,5 @@
|
|||
usage=scout
|
||||
hide_help=yes
|
||||
do_not_list=yes
|
||||
{DEPRECATED_UNIT "Fog Clearer" "" 1.15}
|
||||
[/unit_type]
|
||||
|
|
Loading…
Add table
Reference in a new issue