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:
Dalas121 2024-06-09 21:09:58 -05:00 committed by GitHub
parent 43d6d87939
commit 8efcb80685
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
#------------------