added void armor to swamp of dread
This commit is contained in:
parent
45890872c1
commit
84c3217d0c
1 changed files with 19 additions and 28 deletions
|
@ -201,34 +201,10 @@
|
|||
[option]
|
||||
message= _ "Yes"
|
||||
[command]
|
||||
{VARIABLE armor_taken 1}
|
||||
[message]
|
||||
speaker=narrator
|
||||
image="wesnoth-icon.png"
|
||||
message= _ "You struggle to lift and don the heavy plate. Once worn, however, it is amazingly comfortable. You have increased resistance to all physical damage!"
|
||||
[/message]
|
||||
[removeitem]
|
||||
x={X_LOC}
|
||||
y={Y_LOC}
|
||||
[/removeitem]
|
||||
[store_unit]
|
||||
variable=armor_store
|
||||
[filter]
|
||||
x={X_LOC}
|
||||
y={Y_LOC}
|
||||
[/filter]
|
||||
[/store_unit]
|
||||
{VARIABLE_OP armor_store.modifications.resistance.pierce add 20}
|
||||
{VARIABLE_OP armor_store.modifications.resistance.blade add 20}
|
||||
{VARIABLE_OP armor_store.modifications.resistance.impact add 20}
|
||||
[unstore_unit]
|
||||
variable=armor_store
|
||||
[/unstore_unit]
|
||||
{CLEAR_VARIABLE armor_store}
|
||||
[object]
|
||||
id=void_armor
|
||||
name= _ "Void Armor"
|
||||
image="items/armor.png"
|
||||
image="icon_armor.png"
|
||||
description= _ "A beautiful chest plate crafted from shimmering black steel, the Void Armor is virtually impenetrable to physical weapons!"
|
||||
cannot_use_message= _ "Only a powerful warrior may don this armor!"
|
||||
duration=forever
|
||||
|
@ -237,6 +213,17 @@
|
|||
x,y={X_LOC},{Y_LOC}
|
||||
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]
|
||||
x,y={X_LOC},{Y_LOC}
|
||||
[/removeitem]
|
||||
[message]
|
||||
speaker=narrator
|
||||
image="wesnoth-icon.png"
|
||||
message= _ "You struggle to lift and don the heavy plate. Once worn, however, it is amazingly comfortable. You have increased resistance to all physical damage!"
|
||||
[/message]
|
||||
{VARIABLE armor_taken 1}
|
||||
[/then]
|
||||
[effect]
|
||||
apply_to=resistance
|
||||
replace=true
|
||||
|
@ -280,7 +267,9 @@ name=die
|
|||
message= _ "Its owner was surely a famous warrior in life. I wonder who it was. That plate must have a powerful enchantment to have resisted centuries of decay. Choose wisely who will bear it."
|
||||
[/message]
|
||||
{VARIABLE armor_taken 0}
|
||||
{VOID_ARMOR $x1 $y1}
|
||||
{VARIABLE temp_armor_x $x1}
|
||||
{VARIABLE temp_armor_y $y1}
|
||||
{VOID_ARMOR $temp_armor_x $temp_armor_y}
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
|
@ -298,7 +287,7 @@ name=die
|
|||
[event]
|
||||
name=prestart
|
||||
{VARIABLE_OP armored_knight random (Clarustus,Merlunius,Secadius,Dafeis)}
|
||||
# {ENDOWED_KNIGHT ($armored_knight)}
|
||||
{ENDOWED_KNIGHT ($armored_knight)}
|
||||
{CLEAR_VARIABLE armored_knight}
|
||||
[/event]
|
||||
|
||||
|
@ -335,7 +324,7 @@ first_time_only=no
|
|||
type=Lich
|
||||
[/filter]
|
||||
[/store_unit]
|
||||
{VARIABLE_OP Lich_store.hitpoints multiply 0.5}
|
||||
{VARIABLE_OP Lich_store.hitpoints multiply 0.4}
|
||||
[unstore_unit]
|
||||
variable=Lich_store
|
||||
[/unstore_unit]
|
||||
|
@ -408,6 +397,8 @@ name=die
|
|||
[/message]
|
||||
[endlevel]
|
||||
result=victory
|
||||
{CLEAR_VARIABLE temp_armor_x}
|
||||
{CLEAR_VARIABLE temp_armor_y}
|
||||
[/endlevel]
|
||||
|
||||
[/event]
|
||||
|
|
Loading…
Add table
Reference in a new issue