Change the "description" attribute in [object] to "user_description"...
...to mark the fact that it is used in the game display rather than as a filter term. For backward compatibility with 1.4 UMC, continue to accept "description", but this patch makes the appropriate change in all mainline content.
This commit is contained in:
parent
46378083a0
commit
31a3f81875
16 changed files with 23 additions and 20 deletions
|
@ -211,7 +211,7 @@
|
|||
name= _ "Holy Amulet"
|
||||
image=items/ankh-necklace.png
|
||||
duration=forever
|
||||
description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
user_description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
cannot_use_message= _ "I am not suited to using this item! Let another take it."
|
||||
[then]
|
||||
[removeitem]
|
||||
|
|
|
@ -423,7 +423,7 @@
|
|||
name= _ "Holy Amulet"
|
||||
image=items/ankh-necklace.png
|
||||
duration=forever
|
||||
description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
user_description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
cannot_use_message= _ "I am not suited to using this item! Let another take it."
|
||||
[then]
|
||||
[removeitem]
|
||||
|
|
|
@ -311,7 +311,7 @@
|
|||
name= _ "Holy Amulet"
|
||||
image=items/ankh-necklace.png
|
||||
duration=forever
|
||||
description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
user_description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
cannot_use_message= _ "I am not suited to using this item! Let another take it."
|
||||
[then]
|
||||
[removeitem]
|
||||
|
|
|
@ -410,7 +410,7 @@
|
|||
name= _ "Holy Amulet"
|
||||
image=items/ankh-necklace.png
|
||||
duration=forever
|
||||
description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
user_description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
|
||||
cannot_use_message= _ "I am not suited to using this item! Let another take it."
|
||||
[then]
|
||||
[removeitem]
|
||||
|
|
|
@ -577,7 +577,7 @@
|
|||
name=Amulet of Strength
|
||||
image=attacks/staff-elven.png
|
||||
duration=forever
|
||||
description= _ "Showing signs of ancient elvish manufacture, this amulet grants whomever is wearing it increased strength, stamina and protection against fire and holy attacks."
|
||||
user_description= _ "Showing signs of ancient elvish manufacture, this amulet grants whomever is wearing it increased strength, stamina and protection against fire and holy attacks."
|
||||
|
||||
[effect]
|
||||
apply_to=attack
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
#define RATHELN_ENCOUNTER
|
||||
[if]
|
||||
[have_unit]
|
||||
#wmllint: recognize Ratheln.
|
||||
#wmllint: recognize Ratheln
|
||||
description=Ratheln
|
||||
[/have_unit]
|
||||
[else]
|
||||
|
|
|
@ -211,7 +211,7 @@
|
|||
# wmllint: recognize Southbay Guard 1
|
||||
|
||||
[object]
|
||||
description= _ "The Ruby of Fire was imbued with magic in the distant west, and can be used to scorch enemies into submission."
|
||||
user_description= _ "The Ruby of Fire was imbued with magic in the distant west, and can be used to scorch enemies into submission."
|
||||
silent=yes
|
||||
duration=forever
|
||||
[filter]
|
||||
|
|
|
@ -654,7 +654,7 @@
|
|||
id=Travelring
|
||||
name= _ "Traveler's Ring"
|
||||
image=items/ring-white.png
|
||||
description= _ "At the end of each turn, this unit takes no damage from the desert."
|
||||
user_description= _ "At the end of each turn, this unit takes no damage from the desert."
|
||||
[filter]
|
||||
x={X}
|
||||
y={Y}
|
||||
|
@ -1866,7 +1866,7 @@
|
|||
id=PureWater
|
||||
name= _ "Pure Water"
|
||||
image=items/holy-water.png
|
||||
description= _ "This water will make your melee weapons arcane, and thus especially powerful against the undead."
|
||||
user_description= _ "This water will make your melee weapons arcane, and thus especially powerful against the undead."
|
||||
|
||||
[effect]
|
||||
apply_to=attack
|
||||
|
|
|
@ -1130,7 +1130,7 @@
|
|||
id=SpeedyRing
|
||||
name= _ "Ring of Speed"
|
||||
image=items/ring-gold.png
|
||||
description= _ "This ring will increase your maximum speed by 1."
|
||||
user_description= _ "This ring will increase your maximum speed by 1."
|
||||
[filter]
|
||||
x=$ring_x
|
||||
y=$ring_y
|
||||
|
@ -1348,7 +1348,7 @@
|
|||
|
||||
id=ColdBlade
|
||||
name= _ "Cold Blade"
|
||||
description= _ "The unit who wields this blade will deal cold damage with its melee attack."
|
||||
user_description= _ "The unit who wields this blade will deal cold damage with its melee attack."
|
||||
|
||||
[effect]
|
||||
apply_to=attack
|
||||
|
|
|
@ -2419,7 +2419,7 @@
|
|||
|
||||
id=Troll Wand
|
||||
name= _ "Emerald Wand of Poison"
|
||||
description= _ "This wand make this unit's melee attacks deal poison damage."
|
||||
user_description= _ "This wand make this unit's melee attacks deal poison damage."
|
||||
|
||||
[effect]
|
||||
apply_to=attack
|
||||
|
|
|
@ -2312,7 +2312,7 @@
|
|||
|
||||
id=DwarvenBelt
|
||||
name= _ "Dwarven Belt"
|
||||
description= _ "The maximum hit points of the unit who wears this belt will increase by 12."
|
||||
user_description= _ "The maximum hit points of the unit who wears this belt will increase by 12."
|
||||
|
||||
[effect]
|
||||
apply_to=hitpoints
|
||||
|
|
|
@ -785,7 +785,7 @@
|
|||
id=FlamingSword
|
||||
image=flame-sword.png
|
||||
name= _ "Flaming Sword"
|
||||
description= _ "This sword will make all your melee attacks do fire damage."
|
||||
user_description= _ "This sword will make all your melee attacks do fire damage."
|
||||
|
||||
[effect]
|
||||
apply_to=attack
|
||||
|
|
|
@ -784,7 +784,7 @@
|
|||
id=FlamingSword
|
||||
image=items/flame-sword.png
|
||||
name= _ "Flaming Sword"
|
||||
description= _ "This sword will make all your melee attacks do fire damage."
|
||||
user_description= _ "This sword will make all your melee attacks do fire damage."
|
||||
|
||||
[effect]
|
||||
apply_to=attack
|
||||
|
|
|
@ -2363,7 +2363,7 @@
|
|||
[/filter]
|
||||
|
||||
silent=yes
|
||||
description=_"The user feels much better."
|
||||
user_description=_"The user feels much better."
|
||||
duration="level"
|
||||
|
||||
[effect]
|
||||
|
|
|
@ -784,9 +784,9 @@ def sanity_check(filename, lines):
|
|||
in_trait = True
|
||||
elif "[/trait]" in lines[i]:
|
||||
in_trait = False
|
||||
elif "[kill]" in lines[i] or "[object]" in lines[i] or "[move_unit_fake]" in lines[i] or "[scroll_to_unit]" in lines[i]:
|
||||
elif "[kill]" in lines[i] or "[effect]" in lines[i] or "[move_unit_fake]" in lines[i] or "[scroll_to_unit]" in lines[i]:
|
||||
ignoreable = True
|
||||
elif "[/kill]" in lines[i] or "[/object]" in lines[i] or "[/move_unit_fake]" in lines[i] or "[/scroll_to_unit]" in lines[i]:
|
||||
elif "[/kill]" in lines[i] or "[/effect]" in lines[i] or "[/move_unit_fake]" in lines[i] or "[/scroll_to_unit]" in lines[i]:
|
||||
ignoreable = False
|
||||
elif "[side]" in lines[i] or "[unit]" in lines[i] or "[recall]" in lines[i]:
|
||||
in_person = True
|
||||
|
@ -821,7 +821,7 @@ def sanity_check(filename, lines):
|
|||
pass
|
||||
elif key == 'name': # FIXME: check this someday
|
||||
pass
|
||||
elif key in ("message", "user_description", "story", "note", "text", "summary", "caption", "label", "unit_description") and not value.startswith("$"):
|
||||
elif key in ("message", "user_description", "story", "note", "text", "summary", "caption", "label", "unit_description", "cannot_use_message", "set_description") and not value.startswith("$"):
|
||||
if not has_tr_mark:
|
||||
print '"%s", line %d: %s needs translation mark' \
|
||||
% (filename, i+1, key)
|
||||
|
|
|
@ -1620,7 +1620,10 @@ void event_handler::handle_event_command(const queued_event& event_info,
|
|||
std::string command_type = "then";
|
||||
|
||||
if(u != units->end() && (filter.null() || game_events::unit_matches_filter(u, filter))) {
|
||||
text = cfg["description"];
|
||||
text = cfg["user_description"]; // 1.5
|
||||
// FIXME: remove this after 1.6
|
||||
if (text.empty())
|
||||
text = cfg["description"];
|
||||
|
||||
u->second.add_modification("object", cfg.get_parsed_config());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue