EI S11: drop equippable items when imprisoned (#8982)
This is thematic, and also prevents cheese with shield+dacyn and baneblade+gate
This commit is contained in:
parent
43d6d87939
commit
8efcb80685
1 changed files with 24 additions and 0 deletions
|
@ -550,6 +550,30 @@
|
|||
[/not]
|
||||
) side 3}
|
||||
|
||||
# dump items in the orcish treasury
|
||||
# this is thematic, and also prevents cheese with shield+dacyn and baneblade+gate
|
||||
#define DROP_ITEM ID PLACE_ITEM
|
||||
[if]
|
||||
[have_unit]
|
||||
trait=TRAIT_{ID}
|
||||
[/have_unit]
|
||||
[then]
|
||||
[remove_trait]
|
||||
trait_id=TRAIT_{ID}
|
||||
[/remove_trait]
|
||||
{PLACE_ITEM}
|
||||
[/then]
|
||||
[/if]
|
||||
#enddef
|
||||
{DROP_ITEM {ID_HOLY_AMULET_1 } {PLACE_ITEM_HOLY_AMULET {ID_HOLY_AMULET_1} 14 16}}
|
||||
{DROP_ITEM {ID_HOLY_AMULET_2 } {PLACE_ITEM_HOLY_AMULET {ID_HOLY_AMULET_2} 16 17}}
|
||||
{DROP_ITEM {ID_CRYSTAL_QUIVER} {PLACE_ITEM_CRYSTAL_QUIVER 17 18}}
|
||||
|
||||
{DROP_ITEM {ID_SENTINEL } {PLACE_ITEM_SHIELD_OF_THE_SENTINEL 33 11}}
|
||||
{DROP_ITEM {ID_BANEBLADE } {PLACE_ITEM_BANEBLADE 34 11}}
|
||||
{DROP_ITEM {ID_PLAGUE_STAFF } {PLACE_ITEM_PLAGUE_STAFF 34 10}}
|
||||
#undef DROP_ITEM
|
||||
|
||||
#------------------
|
||||
# NO MAINTENANCE COSTS
|
||||
#------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue