fantasycalendar / kobold-plus-fight-club

A ground-up rewrite of Kobold Fight Club
MIT License
36 stars 16 forks source link

Quick Fix to Source Issue #30

Closed braedonwatkins closed 1 year ago

braedonwatkins commented 1 year ago

Addresses Issue #29

sources.find(book) is undefined if it didn't already exist which doesn't really jive with the whole 'custom sources' having custom names thing.

I thought for a moment maybe "Custom Source" was already loaded in the list of existing sources but it wasn't. Regardless, that name had uniquely good behavior while all others I tried didn't. Didn't wanna get too deep in it but I found a fix to my issue that seems to work fine.