Skip to content

WIP: Written content improvements - #57

Draft
therahedwig wants to merge 2 commits into
robertjanetzko:masterfrom
therahedwig:writtencontent-improvements
Draft

WIP: Written content improvements#57
therahedwig wants to merge 2 commits into
robertjanetzko:masterfrom
therahedwig:writtencontent-improvements

Conversation

@therahedwig

Copy link
Copy Markdown
Contributor

This currently parses the author roll string, and creates functions for the writing quality(which is derived from the author roll) as well as creating a proper style string.

This is pretty WIP, as I need to debug and double check a lot of stuff still. (like, did I collect all the forms that are collections of information, are the values for the style correct, etc.)

… and style.

Style in particular needs to have more debugging, as I am unsure of the values,
but this is a good start.
This now ensures that prose marked as 'great' is using the quality
related strings.
@therahedwig
therahedwig force-pushed the writtencontent-improvements branch from b4cd937 to 7108b03 Compare March 13, 2020 15:09
List<String> styleString = new ArrayList<String>();
int authorWeight = 50;

for (String style : styles) {

@McArcady McArcady Mar 13, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beware, legends_plus (from the dfhack export script) provides its own <style> tags that provoke an exception:
without legends_plus:

		<style>vicious:4</style>
		<style>serious:2</style>

with legends_plus:

		<style>vicious:4</style>
		<style>serious:2</style>
		<style>Vicious</style>
		<style>Serious</style>

The extra tags from legends_plus may have to be ignored for the code to work in all cases ?

@McArcady McArcady left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a bug, see my comment below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants