Renamed [removeitem] to [remove_item]; deprecated [removeitem].

This commit is contained in:
Steven Panek 2010-10-01 23:42:21 +00:00
parent c5b4681d93
commit 3a6eb75ee8
58 changed files with 271 additions and 260 deletions

View file

@ -49,6 +49,7 @@ Version 1.9.1+svn:
not valid; terrain= specifies the new terrain instead like it used to do.
Filtering for terrain can be done with the [terrain][and]terrain=
workaround.
* Renamed [removeitem] to [remove_item].
* Miscellaneous and bugfixes:
* Changed: Lowered severity of some gui2 timer log messages.
* Units created in debug mode now play their recruit animation (FR #16766)

View file

@ -630,8 +630,8 @@
[/else]
[/if]
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[unit]
type=Drake Burner
id=Keshan
@ -692,8 +692,8 @@
side=1
[/filter]
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[unit]
type=Poacher

View file

@ -291,9 +291,9 @@
y=8
image=overlays/arcane-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x,y=15,8
[/removeitem]
[/remove_item]
[message]
speaker=Tyegea
message= _ "Now, go. Come back with the flaming sword, and my priestesses and I will help you take back Jotha."

View file

@ -22,10 +22,10 @@
y={Y}
image=overlays/storm-trident-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x={X}
y={Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=new_attack
@ -65,10 +65,10 @@
y={Y}
image=overlays/flame-sword-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x={X}
y={Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=new_attack
@ -103,11 +103,11 @@
y={Y}
image=overlays/arcane-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x={X}
y={Y}
image=items/ankh-necklace.png
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=resistance
@ -331,10 +331,10 @@
y=$ring_y
image=overlays/silver-ring-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x=$ring_x
y=$ring_y
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=attack

View file

@ -153,10 +153,10 @@
side=2
[/kill]
# take his gold too
[removeitem]
[remove_item]
x=4
y=3
[/removeitem]
[/remove_item]
[redraw]
[/redraw]
[delay]
@ -212,10 +212,10 @@
speaker=unit
message=_"This chest contains all the money that rogue has taken from unwary travelers!"
[/message]
[removeitem]
[remove_item]
x=4
y=3
[/removeitem]
[/remove_item]
[/event]
[/command]
[/option]

View file

@ -544,16 +544,16 @@
terrain=Ql
[/terrain]
# Next, remove the summoning circles
[removeitem]
[remove_item]
x=20
y=20
image=items/ward-circle.png
[/removeitem]
[removeitem]
[/remove_item]
[remove_item]
x=19
y=22
image=items/ward-circle.png
[/removeitem]
[/remove_item]
# Now, crumble the castle
[terrain]
x=19,19,20,20,21,21,18,18,19,19,20,20,21,21

View file

@ -33,10 +33,10 @@
x={X}
y={Y}
[/filter]
[removeitem]
[remove_item]
x={X}
y={Y}
[/removeitem]
[/remove_item]
[object]
id=staff_lightning
name=_ "Staff of Lightning"

View file

@ -225,10 +225,10 @@
terrain=Wo
[/terrain]
[removeitem]
[remove_item]
x,y=$breaking_ice[$i].x,$breaking_ice[$i].y
image=misc/weakened-ice.png
[/removeitem]
[/remove_item]
[redraw]
[/redraw]

View file

@ -306,9 +306,9 @@
message=_ "This was the impact of what is known as holy water among common people. It is brewed in a complicated and mysterious procedure only known to a few priests and often used to fight resurrected creatures."
[/message]
[removeitem]
[remove_item]
x,y=5,5
[/removeitem]
[/remove_item]
[/event]
# Defeat Conditions

View file

@ -278,9 +278,9 @@
speaker=Darken Volk
message=_ "Theres a small tunnel in the cellar to the northeast. It will lead us far enough out of the city that we can escape pursuit."
[/message]
[removeitem]
[remove_item]
x,y=11,7
[/removeitem]
[/remove_item]
[objectives]
side=1
[objective]
@ -332,9 +332,9 @@
[/variable]
[then]
{VARIABLE hasBook Darken}
[removeitem]
[remove_item]
x,y=11,7
[/removeitem]
[/remove_item]
[objectives]
side=1
[objective]

View file

@ -612,11 +612,11 @@
type=Ghost,Wraith,Spectre,Shadow,Nightgaunt,Vampire Bat,Blood Bat,Dread Bat
[/not]
[/filter]
[removeitem]
[remove_item]
x=$x1
y=$y1
image="items/book5.png"
[/removeitem]
[/remove_item]
[role]
x=$x1
y=$y1

View file

@ -179,9 +179,9 @@
terrain=$door_terrain_layers[0].terrain
[/terrain]
[removeitem]
[remove_item]
x,y=$door_to_open.x,$door_to_open.y
[/removeitem]
[/remove_item]
{CLEAR_VARIABLE door_to_open,door_terrain_layers}
[/event]

View file

@ -253,8 +253,8 @@
side=1
amount=200
[/gold]
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[/event]
#Mal-Bakral arrives

View file

@ -373,9 +373,9 @@
terrain=Rr
[/terrain]
[removeitem]
[remove_item]
x,y=$freed_prisoner.x,$freed_prisoner.y
[/removeitem]
[/remove_item]
[if]
[have_unit]
@ -518,9 +518,9 @@
terrain=Rr
[/terrain]
[removeitem]
[remove_item]
x,y=$killable_prisoners[$random_prisoner_i].x,$killable_prisoners[$random_prisoner_i].y
[/removeitem]
[/remove_item]
{CLEAR_VARIABLE killable_prisoners,random_prisoner_i,stored_executioner}
[/then]

View file

@ -309,8 +309,8 @@
[event]
name=moveto
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[filter]
side=1
@ -385,8 +385,8 @@
[event]
name=moveto
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[filter]
side=1
@ -462,8 +462,8 @@
[event]
name=moveto
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[filter]
side=1
@ -511,8 +511,8 @@
[event]
name=moveto
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[filter]
x=5
@ -573,8 +573,8 @@
[event]
name=moveto
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[filter]
side=1

View file

@ -711,8 +711,8 @@
side=1
amount=200
[/gold]
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
[/event]
{campaigns/Heir_To_The_Throne/utils/deaths.cfg}

View file

@ -586,10 +586,10 @@ Soooo... It is you who sent your subordinates to attack us. Now when weve des
image=items/gold-coins-medium.png
[/message]
[removeitem]
[remove_item]
x,y=$x1,$y1
image=scenery/tent-fancy-red.png
[/removeitem]
[/remove_item]
{PLACE_IMAGE scenery/village-human-burned4.png $x1 $y1}

View file

@ -57,9 +57,9 @@
x,y={X},{Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[message]
speaker=narrator
image="wesnoth-icon.png"
@ -174,9 +174,9 @@
type=Fighter,Commander,Lord,Princess,Battle Princess,Elvish Lord,Elvish High Lord,Elvish Fighter,Elvish Captain,Elvish Hero,Elvish Marshal,Elvish Champion,Elvish Ranger,Elvish Avenger,Horseman,Knight,Lancer,Paladin,Grand Knight,Dwarvish Fighter,Dwarvish Steelclad,Dwarvish Lord,Dwarvish Guardsman,Dwarvish Stalwart,Dwarvish Sentinel
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[message]
speaker=narrator
image="wesnoth-icon.png"

View file

@ -326,9 +326,9 @@
x,y=11,11
[/unit]
[removeitem]
[remove_item]
x,y=11,11
[/removeitem]
[/remove_item]
[unit]
id=Arkildur

View file

@ -278,9 +278,9 @@
x,y={POSITION}
[/filter]
[then]
[removeitem]
[remove_item]
image=items/chest.png
[/removeitem]
[/remove_item]
[role]
x,y={POSITION}
role=gold_carrier

View file

@ -454,9 +454,9 @@
fire_event=no
[/kill]
[removeitem]
[remove_item]
x,y=1,4
[/removeitem]
[/remove_item]
[move_unit_fake]
side=1

View file

@ -746,9 +746,9 @@
name=supports_destroyed
add=1
[/set_variable]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[if]
[variable]
name=supports_destroyed

View file

@ -69,9 +69,9 @@
x,y={X},{Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=new_attack

View file

@ -541,10 +541,10 @@
[/filter]
# Remove the caged white mage image from hex
[removeitem]
[remove_item]
x=9
y=40
[/removeitem]
[/remove_item]
# Spawn unit
[unit]
type=White Mage
@ -658,10 +658,10 @@
y=39
[/filter]
[removeitem]
[remove_item]
x=6
y=39
[/removeitem]
[/remove_item]
[unit]
type=White Mage
gender=female
@ -754,10 +754,10 @@
y=40
[/filter]
[removeitem]
[remove_item]
x=3
y=40
[/removeitem]
[/remove_item]
[unit]
type=Elvish Druid
side=1
@ -911,10 +911,10 @@
y=32
[/filter]
[removeitem]
[remove_item]
x=2
y=32
[/removeitem]
[/remove_item]
[unit]
type=Drake Burner
id=Krash
@ -1352,10 +1352,10 @@
side=1
amount=1025
[/gold]
[removeitem]
[remove_item]
x=17
y=22
[/removeitem]
[/remove_item]
[/event]
[event]
@ -1374,10 +1374,10 @@
side=1
amount=505
[/gold]
[removeitem]
[remove_item]
x=17
y=20
[/removeitem]
[/remove_item]
[/event]
[event]
@ -1396,10 +1396,10 @@
side=1
amount=800
[/gold]
[removeitem]
[remove_item]
x=6
y=22
[/removeitem]
[/remove_item]
[/event]
[event]
@ -1418,10 +1418,10 @@
side=1
amount=2000
[/gold]
[removeitem]
[remove_item]
x=5
y=20
[/removeitem]
[/remove_item]
[/event]
[event]
@ -1440,10 +1440,10 @@
side=1
amount=510
[/gold]
[removeitem]
[remove_item]
x=6
y=16
[/removeitem]
[/remove_item]
[/event]
[event]
@ -1462,10 +1462,10 @@
side=1
amount=10151
[/gold]
[removeitem]
[remove_item]
x=9
y=15
[/removeitem]
[/remove_item]
[/event]
# The Great Chamber
@ -1685,10 +1685,10 @@
[/then]
[/if]
# Remove the icon
[removeitem]
[remove_item]
x=3
y=7
[/removeitem]
[/remove_item]
# Apply the effects
[object]
id=justice_rod

View file

@ -619,10 +619,10 @@
[then]
[/then]
[else]
[removeitem]
[remove_item]
x=26
y=4
[/removeitem]
[/remove_item]
[unit]
type=Lich
id="Ro'Sothian"
@ -764,10 +764,10 @@
x=26
y=6
[/unit]
[removeitem]
[remove_item]
x=26
y=4
[/removeitem]
[/remove_item]
[message]
id="Ro'Sothian"
message= _ "(<i>Shrugs</i>) I dont think we have any other choice left."

View file

@ -483,10 +483,10 @@
y=14
[/filter]
[removeitem]
[remove_item]
x=11
y=14
[/removeitem]
[/remove_item]
[unit]
type=Elvish Sorceress
side=1

View file

@ -632,10 +632,10 @@
x=87
y=66
[/filter]
[removeitem]
[remove_item]
x=87
y=66
[/removeitem]
[/remove_item]
[object]
id=strength_amulet
name=Amulet of Strength

View file

@ -280,15 +280,15 @@
[/scroll_to]
{REPEAT 3 (
[removeitem]
[remove_item]
x,y=12,12
[/removeitem]
[removeitem]
[/remove_item]
[remove_item]
x,y=13,13
[/removeitem]
[removeitem]
[/remove_item]
[remove_item]
x,y=14,13
[/removeitem]
[/remove_item]
[terrain]
x=12,13,14
@ -441,9 +441,9 @@
animate=yes
fire_event=yes
[/kill]
[removeitem]
[remove_item]
x,y=12,12
[/removeitem]
[/remove_item]
[terrain]
x=12
y=12
@ -463,9 +463,9 @@
animate=yes
fire_event=yes
[/kill]
[removeitem]
[remove_item]
x,y=13,13
[/removeitem]
[/remove_item]
[terrain]
x=13
y=13
@ -485,9 +485,9 @@
animate=yes
fire_event=yes
[/kill]
[removeitem]
[remove_item]
x,y=14,13
[/removeitem]
[/remove_item]
[terrain]
x=14
y=13

View file

@ -369,9 +369,9 @@
x,y=$x1,$y1
image=misc/coal-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x,y=$x1,$y1
[/removeitem]
[/remove_item]
{VARIABLE coal_1.x 0}
{VARIABLE coal_1.y 0}
[/event]
@ -406,9 +406,9 @@
x,y=$x1,$y1
image=misc/coal-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x,y=$x1,$y1
[/removeitem]
[/remove_item]
{VARIABLE coal_2.x 0}
{VARIABLE coal_2.y 0}
[/event]
@ -463,9 +463,9 @@
x,y=$x1,$y1
image=misc/gold-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x,y=$x1,$y1
[/removeitem]
[/remove_item]
{VARIABLE gold_1.x 0}
{VARIABLE gold_1.y 0}
[/event]
@ -531,9 +531,9 @@
image=misc/coal-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x,y=$x1,$y1
[/removeitem]
[/remove_item]
{CLEAR_VARIABLE hex_$x1|_$y1|_coal}
[/then]
@ -605,9 +605,9 @@
image=misc/gold-icon.png
[/unit_overlay]
[removeitem]
[remove_item]
x,y=$x1,$y1
[/removeitem]
[/remove_item]
{CLEAR_VARIABLE hex_$x1|_$y1|_gold}
[/then]

View file

@ -458,9 +458,9 @@
[event]
name=moveto
[removeitem]
[remove_item]
x,y=7,30
[/removeitem]
[/remove_item]
[filter]
side=1
@ -660,9 +660,9 @@
x,y=7,30
[/scroll_to]
[removeitem]
[remove_item]
x,y=7,30
[/removeitem]
[/remove_item]
[unit]
id=Jetto

View file

@ -368,10 +368,10 @@
speaker=unit
message= _ "Ahhh, that was yummy!"
[/message]
[removeitem]
[remove_item]
x=29
y=24
[/removeitem]
[/remove_item]
[allow_undo][/allow_undo]
[/event]

View file

@ -272,9 +272,9 @@
variable=exploding_hexes
[/store_locations]
[removeitem]
[remove_item]
x,y=21,13
[/removeitem]
[/remove_item]
[item]
x,y=21,13

View file

@ -777,10 +777,10 @@
side=1
amount=150
[/gold]
[removeitem]
[remove_item]
x=15
y=22
[/removeitem]
[/remove_item]
[/event]
[event]
@ -798,10 +798,10 @@
side=1
amount=150
[/gold]
[removeitem]
[remove_item]
x=15
y=38
[/removeitem]
[/remove_item]
[/event]
[event]

View file

@ -79,9 +79,9 @@ Mage,Red Mage,White Mage,Arch Mage,Great Mage,Mage of Light,Silver Mage #enddef
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
{PLACE_IMAGE "scenery/temple1.png" {X} {Y}}
{MODIFY_UNIT x,y={X},{Y} variables.has_sorf yes}
[/then]

View file

@ -568,20 +568,20 @@
[event]
name=turn 18
[removeitem]
[remove_item]
x=31
y=16
[/removeitem]
[/remove_item]
[message]
speaker=Commander Aethyr
message= _ "My lord, the first ship is departing. But the second ship should arrive shortly."
[/message]
[removeitem]
[remove_item]
x=30
y=15
[/removeitem]
[/remove_item]
[sound]
name=ambient/ship.ogg
@ -627,20 +627,20 @@
[event]
name=turn 24
[removeitem]
[remove_item]
x=32
y=14
[/removeitem]
[/remove_item]
[message]
speaker=Commander Aethyr
message= _ "My lord, the second ship is departing. But the last ship will be here before long. With your help we can hold on just a while longer."
[/message]
[removeitem]
[remove_item]
x=31
y=14
[/removeitem]
[/remove_item]
[sound]
name=ambient/ship.ogg
@ -686,20 +686,20 @@
[event]
name=time over
[removeitem]
[remove_item]
x=29
y=16
[/removeitem]
[/remove_item]
[message]
speaker=Commander Aethyr
message= _ "My lord, the last ship is departing. Were trapped!"
[/message]
[removeitem]
[remove_item]
x=28
y=15
[/removeitem]
[/remove_item]
[sound]
name=ambient/ship.ogg

View file

@ -186,8 +186,8 @@
# y=18
# [/filter]
#
# [removeitem]
# [/removeitem]
# [remove_item]
# [/remove_item]
# [/event]
[event]

View file

@ -349,8 +349,8 @@
message= _ "Ive found the orcs chest! Its filled with gold."
[/message]
[removeitem]
[/removeitem]
[remove_item]
[/remove_item]
{PLACE_IMAGE (items/chest-plain-open.png) $xx1 $yy1}

View file

@ -225,9 +225,9 @@
x,y=13,10
[/filter]
[removeitem]
[remove_item]
x,y=13,10
[/removeitem]
[/remove_item]
[unit]
side=1
@ -341,9 +341,9 @@
image=wesnoth-icon.png
[/message]
[removeitem]
[remove_item]
x,y=20,4
[/removeitem]
[/remove_item]
[/event]
#endif

View file

@ -280,9 +280,9 @@
x,y=22,16
[/filter]
[removeitem]
[remove_item]
x,y=22,16
[/removeitem]
[/remove_item]
[unit]
type=White Mage

View file

@ -274,9 +274,9 @@
x,y=17,7
[/filter]
[removeitem]
[remove_item]
x,y=17,7
[/removeitem]
[/remove_item]
{NAMED_LOYAL_UNIT 1 (Elvish Ranger) 15 4 (Linderion) (_"Linderion")}
{NAMED_LOYAL_UNIT 1 (Elvish Marksman) 19 4 (Mithalwe) (_"Mithalwe")}

View file

@ -534,9 +534,9 @@
x,y=31,32
[/filter]
[removeitem]
[remove_item]
x,y=31,32
[/removeitem]
[/remove_item]
[message]
speaker=Ethiliel

View file

@ -429,9 +429,9 @@
[/then]
[else]
[removeitem]
[remove_item]
x,y=9,1
[/removeitem]
[/remove_item]
[message]
speaker=Sir Gerrick

View file

@ -631,9 +631,9 @@
name=explosion.ogg
[/sound]
[removeitem]
[remove_item]
x,y=17,24
[/removeitem]
[/remove_item]
[scroll]
x,y=10,10

View file

@ -805,10 +805,10 @@
x,y=$x1,$y1
)}
[removeitem]
[remove_item]
x=$x1
y=$y1
[/removeitem]
[/remove_item]
[role]
role=immune
@ -1016,10 +1016,10 @@
message=_"Nym! No! Dont open—"
[/message]
[removeitem]
[remove_item]
x=$x1
y=$y1
[/removeitem]
[/remove_item]
[message]
speaker=Nym
@ -1951,10 +1951,10 @@
[/effect]
[/object]
[removeitem]
[remove_item]
x={X}
y={Y}
[/removeitem]
[/remove_item]
{CLEAR_VARIABLE bottle_x}
{CLEAR_VARIABLE bottle_y}

View file

@ -2325,10 +2325,10 @@ This unit always strikes first with this attack, even if they are defending."
[/message]
[/else]
[/if]
[removeitem]
[remove_item]
x=$parchment_x
y=$parchment_y
[/removeitem]
[/remove_item]
{CLEAR_VARIABLE parchment_x}
{CLEAR_VARIABLE parchment_y}
[/event]

View file

@ -991,10 +991,10 @@
[/effect]
[/object]
[removeitem]
[remove_item]
x=$ring_x
y=$ring_y
[/removeitem]
[/remove_item]
[/event]
# Event 4: elvish unit afraid when entering underground tunnels

View file

@ -2242,9 +2242,9 @@
red,green,blue=0,0,0
[/color_adjust]
[removeitem]
[remove_item]
x,y=45,21
[/removeitem]
[/remove_item]
[message]
speaker=unit

View file

@ -2064,13 +2064,13 @@
[redraw]
[/redraw]
[removeitem]
[remove_item]
x,y=20,45
[/removeitem]
[/remove_item]
[removeitem]
[remove_item]
x,y=23,48
[/removeitem]
[/remove_item]
[object]
[filter]
@ -2278,9 +2278,9 @@
[/variable]
[then]
[removeitem]
[remove_item]
x,y=17,44
[/removeitem]
[/remove_item]
[message]
speaker=unit
@ -2372,9 +2372,9 @@
[/variable]
[then]
[removeitem]
[remove_item]
x,y=19,43
[/removeitem]
[/remove_item]
[message]
speaker=unit
@ -3025,9 +3025,9 @@
[redraw]
[/redraw]
[removeitem]
[remove_item]
x,y=18,34
[/removeitem]
[/remove_item]
[object]
[filter]
@ -3131,18 +3131,18 @@
value=1
[/set_variable]
[removeitem]
[remove_item]
x,y=$x1,$y1
[/removeitem]
[/remove_item]
# Kill old unit which couldnt move and
# Just replace with new version of unit
# since new golem is on players side, it is
# no longer allied with undead
[removeitem]
[remove_item]
x,y=18,29
[/removeitem]
[/remove_item]
{NAMED_UNIT 1 (Flesh Golem) 18 29 (Kromph) ( _ "Kromph") (upkeep=loyal)}
# wmllint: recognize Kromph
@ -5762,9 +5762,9 @@
x,y=$shallow_to_deep_locs[$i].x,$shallow_to_deep_locs[$i].y
[/terrain]
[removeitem]
[remove_item]
x,y=$shallow_to_deep_locs[$i].x,$shallow_to_deep_locs[$i].y
[/removeitem]
[/remove_item]
{NEXT i}
# Killing of units who ended up in deep water

View file

@ -1361,9 +1361,9 @@
numerical_equals=0
[/variable]
[then]
[removeitem]
[remove_item]
x,y=25, 36
[/removeitem]
[/remove_item]
[unit]
type=Merman Warrior
id=Urruga
@ -1460,9 +1460,9 @@
numerical_equals=0
[/variable]
[then]
[removeitem]
[remove_item]
x,y=34, 31
[/removeitem]
[/remove_item]
[unit]
type=Merman Warrior
id=Nuvassa
@ -1560,9 +1560,9 @@
numerical_equals=0
[/variable]
[then]
[removeitem]
[remove_item]
x,y=18, 32
[/removeitem]
[/remove_item]
[unit]
type=Merman Spearman
id=Yantili
@ -1656,9 +1656,9 @@
numerical_equals=0
[/variable]
[then]
[removeitem]
[remove_item]
x,y=31, 25
[/removeitem]
[/remove_item]
[unit]
type=Mermaid Priestess
id=Il-tian
@ -1779,9 +1779,9 @@
numerical_equals=0
[/variable]
[then]
[removeitem]
[remove_item]
x,y=27, 19
[/removeitem]
[/remove_item]
[unit]
type=Mermaid Enchantress
id=We-jial
@ -2249,26 +2249,26 @@
[/if]
# destroy images of captured merfolk
[removeitem]
[remove_item]
x=25
y=36
[/removeitem]
[removeitem]
[/remove_item]
[remove_item]
x=34
y=31
[/removeitem]
[removeitem]
[/remove_item]
[remove_item]
x=18
y=32
[/removeitem]
[removeitem]
[/remove_item]
[remove_item]
x=31
y=25
[/removeitem]
[removeitem]
[/remove_item]
[remove_item]
x=27
y=19
[/removeitem]
[/remove_item]
# if player hasn't saved 2 merfolk then defeat
[if]
@ -3139,9 +3139,9 @@
name=ships_captured
add=1
[/set_variable]
[removeitem]
[remove_item]
x,y=$x1, $y1
[/removeitem]
[/remove_item]
{PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" $x1 $y1}
[if]
[variable]
@ -3176,9 +3176,9 @@
name=ships_captured
add=-1
[/set_variable]
[removeitem]
[remove_item]
x,y=$x1, $y1
[/removeitem]
[/remove_item]
{PLACE_IMAGE "units/transport/galleon.png~RC(magenta>purple)" $x1 $y1}
[/event]
[/event]
@ -3395,9 +3395,9 @@
x=9, 10, 12, 15
y=12, 15, 10, 14
[/terrain]
[removeitem]
[remove_item]
x,y=10, 15
[/removeitem]
[/remove_item]
[sound]
name=ambient/ship.ogg
[/sound]
@ -3408,9 +3408,9 @@
y=15, 15, 15, 16, 16, 17, 18, 19, 20, 21, 21, 22, 23, 23, 24, 24, 25, 25, 25
[/move_unit_fake]
{PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" 7 25}
[removeitem]
[remove_item]
x,y=9, 12
[/removeitem]
[/remove_item]
[move_unit_fake]
type=Galleon
side=1
@ -3418,9 +3418,9 @@
y=12, 12, 13, 14, 15, 15, 16, 16, 17, 18, 19, 20, 21, 21, 22, 23, 23, 24, 24, 25, 24
[/move_unit_fake]
{PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" 8 24}
[removeitem]
[remove_item]
x,y=12, 10
[/removeitem]
[/remove_item]
[sound]
name=ambient/ship.ogg
[/sound]
@ -3431,9 +3431,9 @@
y=10, 11, 12, 13, 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, 22, 23, 23, 24, 24, 25, 25
[/move_unit_fake]
{PLACE_IMAGE "units/transport/galleon.png~RC(magenta>red)" 8 25}
[removeitem]
[remove_item]
x,y=15, 14
[/removeitem]
[/remove_item]
[move_unit_fake]
type=Galleon
side=1

View file

@ -1602,9 +1602,9 @@
side=1
[/filter]
[removeitem]
[remove_item]
x,y=10,5
[/removeitem]
[/remove_item]
[unit]
type=Merman Triton

View file

@ -370,9 +370,9 @@
message= _ "So, the elfs puny friends think they can save him. But you are too late. He is already mine!"
[/message]
[removeitem]
[remove_item]
x,y=10,13
[/removeitem]
[/remove_item]
{VARIABLE_OP stored_kaleh.hitpoints add -10}
{VARIABLE stored_kaleh.facing n}

View file

@ -78,4 +78,4 @@
image="units/monsters/mudcrawler-attack-1.png"
[/frame]
[/attack_anim]
[/unit_type]
[/unit_type]

View file

@ -104,9 +104,9 @@
#
# Example:
#! {REMOVE_IMAGE 14 5}
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
#enddef
#define TEAM_COLOR_OVERRIDE FILTER TEAMCOLOR_ID

View file

@ -61,9 +61,9 @@
[delay]
time=300
[/delay]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[item]
x,y={X},{Y}
image={BACKGROUND_VALUE}
@ -80,9 +80,9 @@
[delay]
time=300
[/delay]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[item]
x,y={X},{Y}
image={BACKGROUND_VALUE}
@ -99,9 +99,9 @@
[delay]
time=300
[/delay]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[item]
x,y={X},{Y}
image={BACKGROUND_VALUE}

View file

@ -150,10 +150,10 @@
[command]
{OBJECT_WML}
[removeitem]
[remove_item]
x,y={X},{Y}
image={IMAGE}
[/removeitem]
[/remove_item]
[set_variable]
name=item_{ID}_picked_up
@ -233,9 +233,9 @@
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=hitpoints
@ -270,9 +270,9 @@
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=status
@ -328,9 +328,9 @@
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=attack
@ -371,9 +371,9 @@
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=hitpoints
@ -408,9 +408,9 @@
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=new_ability
@ -447,9 +447,9 @@
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=status
@ -485,9 +485,9 @@
y={Y}
[/filter]
[then]
[removeitem]
[remove_item]
x,y={X},{Y}
[/removeitem]
[/remove_item]
[/then]
[effect]
apply_to=movement

View file

@ -51,7 +51,7 @@ function wml_actions.item(cfg)
wml_actions.redraw {}
end
function wml_actions.removeitem(cfg)
function wml_actions.remove_item(cfg)
local x, y = tonumber(cfg.x), tonumber(cfg.y)
if not x or not y then
local context = wesnoth.current.event_context
@ -75,3 +75,10 @@ function wml_actions.removeitem(cfg)
scenario_items[x * 10000 + y] = nil
end
end
-- [removeitem] is deprecated, so print a WML error and call [remove_item]
-- Remove after 1.9.3
function wml_actions.removeitem(cfg)
wml_actions.remove_item(cfg)
helper.wml_error "Usage of [removeitem] is deprecated; support will be removed in 1.9.3. Use [remove_item] instead."
end

View file

@ -37,10 +37,10 @@
#enddef
#define REMOVE_ITEM X Y
[removeitem]
[remove_item]
x={X}
y={Y}
[/removeitem]
[/remove_item]
#enddef
#define PLAY_SOUND SOUND
@ -57,11 +57,11 @@
#define OPEN_CHEST X Y TREASURE_VALUE
{PLAY_SOUND open-chest.wav}
[removeitem]
[remove_item]
x={X}
y={Y}
image=items/chest-plain-closed.png
[/removeitem]
[/remove_item]
{PLACE_IMAGE items/chest-plain-open.png {X} {Y}}
[set_variable]
name=oc_treasure

View file

@ -511,6 +511,9 @@ linechanges = (
("[/colour_adjust]", "[/color_adjust]"),
("colour=", "color="),
("colour_lock=", "color_lock="),
# Changes just before 1.9.2
("[removeitem]", "[remove_item]"),
("[/removeitem]", "[/remove_item]"),
)
def validate_on_pop(tagstack, closer, filename, lineno):