Gudradain / spirit-island-template

A set of templates to help create fan made content for the board game Spirit Island.
MIT License
16 stars 22 forks source link

add support for text and image in innate power target #17

Closed LokiMidgard closed 3 years ago

LokiMidgard commented 3 years ago

currently it is not possible to have an innate power that targets ANY Spirt, ANOTHER Spirit, or other combinations of text and icon like

Gift of Constancy.

Double icons like

A Dreadful tide of scurrying flesh also did not work.

This will split the attribure and transforms every single element instead of the howl string at once. This allowes for double icons. It also adds the word another to the list of special words.

image

and icon text combinations

image

in theory any combination of allowed icons ;P image

I'm not sure about the spacing through...


I havn't looked in that yet but it could make sense to combine the method with that of cards. after all every target that can be used with for a power card may also be used for a innate power.


I haven't looked at all cards, but I guess there are some more words that would need excluding from transformation to icons. A more flexible but more inconvinient approach would to have a list of all words that can be put in {}.

Gudradain commented 3 years ago

Working on a more flexible approach: simply use html for the target attribute.

The card template just use html for this attribute already.