twohoursonelife / twotech

Automated Crafting Guide for Two Hours One Life
https://twotech.twohoursonelife.com
MIT License
3 stars 7 forks source link

Add support for updated tapout data #73

Open connorhsm opened 3 weeks ago

connorhsm commented 3 weeks ago

The tapout flag of objects has been moved from being a tag in an object name to being a unique parameter value in the object file. This data should be parsed by the processor and associated with the object.

Also consider how we can display this information in a simple way, with hints about its meaning.

Importing objects...
WARNING: Unhandled data {"tapoutTrigger": ["1","0","1","1"]
...

Example object https://github.com/twohoursonelife/OneLifeData7/blob/bf13c33647a9c961750739514bb3a6d24fe98fa7/objects/7736.txt#L17

Existing twotech display of tapout data image

Tapout data explanation on the wiki https://twohoursonelife.fandom.com/wiki/Objects_(Mechanics)#Tags

connorhsm commented 3 weeks ago

Tapout data can optionally be present in either location, part of the name (old) and or parameter in file (new). The file parameter option takes precedence.

Displaying this information in a simple way should only support the file parameter option.