Closed Odie closed 6 years ago
Sorry for the delay, I haven't had much time recently to contribute to this project, but this looks great. I'll merge your changes in and do some testing myself and release a new version of DSN if it works out.
I was hoping something like the item-names-map.json would be unnecessary, but I can't think of a better way to support those complex item names.
No worries! Thanks for putting together such a useful utility in the first place! Glad to be able to add some minor improvements.
Howdy!
This is a collection of commits aimed at simplifying equipping items from the favorites menu. It's been working very well for my VR playthrough for the past few days.
Usage examples
Details
1) Clean items names of tags/symbols introduced by VIS This makes switching to these tagged items actually possible. As an example, the a spell like "[A2] Wither" can now be equipped by saying "equip wither".
2) Map specific item names to a new phrase VIS renames some spells that makes it very difficult to say. For example, the "Healing" spell is renamed as "[R1] Heal Self I: Slow". There is simply no regex that can possibly reverse this sort of renaming.
3) Select weapon by type In my current playthrough, I'm using the weapons: "Ancient Nord Hero War Axe" and "Ancient Nord Supple Bow of Ice". As you can imagine, these are extremely hard to say, especially in the middle of combat.
4) Configurable default/main hand While exploring dungeons, I found myself frequently trying to cast Candlelight. The current default behavior of dsn would put candlelight in both hands. This means in the middle of exploring the dungeon, when candlelight expires, I'd have to do this in sequence:
equip shield
5a06988 introduces the idea of a "main hand". Things are usually placed in the main hand unless the user specifically asks for the item to be placed in "left", "right", or "both" hands. This makes it easy to switch between weapons and spells while not messing with whatever is equipped in my left. Not only does this simplify the previous equip sequence, now I can freely switch between axe/bow/spell in the middle of combat with minimal cognitive overhead.