NineWorlds / xstreamer

XStreamer X-Wing Squad and Imperial Assault Army Helper for Twitch and YouTube Streamers
MIT License
8 stars 3 forks source link

Importing Epic Lists cause Template Rendering issues #66

Closed kingargyle closed 6 years ago

kingargyle commented 6 years ago

Importing the Epic lists will cause the templates not render the overlay. This is due to the way the pilot information is stored in the JSON files. Need to specifically handle epic ships that may not necessarily have a pilot skill or shield values defined as the other ships have.

kingargyle commented 6 years ago

Fixed this. The main issue here was the way the data is stored by xwing-data. Need to check xwsname and also ship name as the data isn't stored consistently. Hull and Shields are now correctly identified, also initialize it with a value of 0 just in case to avoid NPE.