Skip to content

Can potions become an equip-able item (like Path of Exile)? #864

Answered by dorkster
WithinAmnesia asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting idea. I tried it out and it "just works" for the most part. Here's what I did:

  • Added equipment_slot=256,160,potion to menus/inventory.txt
  • Added item_type=potion to the Health Potion item (id=2)
  • Changed requires_item=2 to requires_equipped_item=2,1 in the potion's power definition (powers/base/items/health_potion.txt)

Observations:

  • The quantity of potions isn't shown on the action bar. We assumed equipped items would always have a quantity of 1, but this should be easily fixed.
  • I think it would be nice for quality-of-life if the stack of equipped potions was automatically replenished from the player's inventory. Otherwise, the player has to re-equip the potion when they run …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@WithinAmnesia
Comment options

@dorkster
Comment options

@WithinAmnesia
Comment options

Answer selected by WithinAmnesia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants