Made the void armor be displayed as a fake trait...
...instead of an ability (so it doesn't disappear on levelup) and made it be added in a much cleaner way too.
This commit is contained in:
parent
a53eda8db1
commit
5bdb8320fd
1 changed files with 14 additions and 35 deletions
|
@ -161,47 +161,26 @@
|
|||
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}
|
||||
[store_unit]
|
||||
[filter]
|
||||
x,y={X},{Y}
|
||||
[/filter]
|
||||
|
||||
kill=yes
|
||||
variable=void_armor_taker
|
||||
[/store_unit]
|
||||
|
||||
{VARIABLE void_armor_taker_heals $void_armor_taker.abilities.heals.length}
|
||||
|
||||
{VARIABLE_OP void_armor_heals_temp format "void_armor_taker.abilities.heals[$void_armor_taker_heals].id"}
|
||||
{VARIABLE $void_armor_heals_temp "void_armor"}
|
||||
|
||||
{VARIABLE_OP void_armor_heals_temp format "void_armor_taker.abilities.heals[$void_armor_taker_heals].name"}
|
||||
{VARIABLE_OP $void_armor_heals_temp format ( _ "void armor")}
|
||||
{VARIABLE_OP void_armor_heals_temp format "void_armor_taker.abilities.heals[$void_armor_taker_heals].name_inactive"}
|
||||
{VARIABLE_OP $void_armor_heals_temp format ( _ "void armor")}
|
||||
|
||||
{VARIABLE_OP void_armor_heals_temp format "void_armor_taker.abilities.heals[$void_armor_taker_heals].description"}
|
||||
{VARIABLE_OP $void_armor_heals_temp format ( _ "The Void Armor grants the following resistances:
|
||||
|
||||
[set_variables]
|
||||
name=unit.modifications.trait
|
||||
mode=append
|
||||
|
||||
[value]
|
||||
id=void_armor
|
||||
name= _ "void armor"
|
||||
description= _ "The Void Armor grants the following resistances:
|
||||
blade: 50%
|
||||
pierce: 50%
|
||||
impact: 60%
|
||||
fire: +10%")}
|
||||
{VARIABLE_OP void_armor_heals_temp format "void_armor_taker.abilities.heals[$void_armor_taker_heals].description_inactive"}
|
||||
{VARIABLE_OP $void_armor_heals_temp format ( _ "The Void Armor grants the following resistances:
|
||||
blade: 50%
|
||||
pierce: 50%
|
||||
impact: 60%
|
||||
fire: +10%")}
|
||||
|
||||
{CLEAR_VARIABLE $void_armor_temp}
|
||||
{CLEAR_VARIABLE void_armor_temp}
|
||||
fire: +10%"
|
||||
[/value]
|
||||
[/set_variables]
|
||||
|
||||
[unstore_unit]
|
||||
variable=void_armor_taker
|
||||
variable=unit
|
||||
find_vacant=no
|
||||
[/unstore_unit]
|
||||
|
||||
{CLEAR_VARIABLE void_armor_taker}
|
||||
{CLEAR_VARIABLE void_armor_heals_temp}
|
||||
[/then]
|
||||
#
|
||||
# Set physical resistance to 50/40/40
|
||||
|
|
Loading…
Add table
Reference in a new issue