roundaboutluke / porygon

Porygon is a reimagining of Discoropole written in go
9 stars 6 forks source link

feat: add template support #17

Closed lenisko closed 6 months ago

lenisko commented 6 months ago

Hey!

I kinda wanted to reorder things and change locale... so I kinda added template support.

To use the own template, simply create a new one under templates/current.override.json. Everything should be straightforward.

Config has mapping for type based emoji only (like raid levels, grunt, lures... etc). All others could be changed within the template itself.

Updated default template + config to look as close as initial.

Might forget to mention something, but basically:

Could use some cleanup, but sadly I won't have more time for that.

Due to the package name change... it's kind of breaking change, but I couldn't look at this Title case :joy: feel free to rollback this change.

Cheers!

lenisko commented 6 months ago

Fixed few bugs and added HasValues function to template, which check if there are any non-zero values under provided struct path. Useful to hide for example: raids if there are none active.