nerdhaus / eldrich

Custom code and config for eldrich.host
11 stars 2 forks source link

Encounter content type #40

Closed eaton closed 7 years ago

eaton commented 7 years ago

Spinoff from #37 — create an 'encounter' content type, associated with either a session or a campaign, that includes:

eaton commented 7 years ago

Voila! GM-creatable encounters are now supported. They can only be attached to campaigns right now, and they default to GM-only. Next steps include a simple "bookmarking" feature that will let a GM go around, accumulating NPCs/creatures they want in an encounter, then create one from the bookmarked items. For the time being, it works much like any other relational content on the site: Create an encounter, auto-complete the NPCs/creatures/etc you want to be part of it.

screenshot 2017-04-19 19 32 45
eaton commented 7 years ago

Also: The Encounter content type also lets you assign a custom name to each combatant. That makes it easier to bang out a quick combat sheet even if you're just reusing existing NPC templates or pregen characters. On the combat sheet, the custom names you enter will override their default ones. For example:

screenshot 2017-04-20 03 05 07
eaton commented 7 years ago

This had a caching bug that caused multiple references to the same character (with different names) to reuse a single name. Fixed, and deployed!