Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add worded modifiers ("Half", "Twice" etc.) for Spells #1694

Draft
wants to merge 3 commits into
base: effect-refactor
Choose a base branch
from

Conversation

Forien
Copy link
Contributor

@Forien Forien commented Jul 12, 2023

Resolves #1684

Caveat: I only realized that near the end, but I guess my solution will break if someone does Range like Half Willpower Bonus + Twice Intelligence Bonus. It will completely ignore the Twice... so not sure it's the best solution then.

On the other hand I don't know if there exists a spell that would consider this, so not sure if it's worth time chasing a very specific edge case...

@moo-man
Copy link
Owner

moo-man commented Jul 12, 2023

This should probably receive a lot of scrutiny and testing to ensure all the spells still correctly compute (and this also may affect translations).

@Forien
Copy link
Contributor Author

Forien commented Jul 12, 2023

I tried to make sure existing translations are not impacted.

As for spells, from what I've tested it works fine, but yeah, more testing is better. It's not urgent issue, so PR can sit here for a while, no worries

@silentmark
Copy link
Contributor

@Forien, sorry for jumping in, but is this really necessary? you can have any basic arythmetic operations on integers, and introducing words like twice/half will complicate life for i.e. Polish translation. English has much easier rules of declinazione, in contrary to Polish, where such wording would either sound badly or would be much harder to parse.

@Forien
Copy link
Contributor Author

Forien commented Jul 12, 2023

@Forien, sorry for jumping in, but is this really necessary? you can have any basic arythmetic operations on integers, and introducing words like twice/half will complicate life for i.e. Polish translation. English has much easier rules of declinazione, in contrary to Polish, where such wording would either sound badly or would be much harder to parse.

Death's Release, Captivating Flame and other spells in WoM are specifically worded Half Willpower yards or Half Initiative yards and their FVTT counterparts have Ranges worded as that in official WoM module too.

Spell Example (Screenshots)

image

image

If Official Module has Half Willpower yards but then system itself screws stuff up and displays range as Half 40 yards then something is not right. And it will interfere with macros and 3rd party modules that might use Spell's range, even if they only extract numeric value, it will not be accurate true value.

Your argument could be used on ammunition as well. Why have "twice weapon" or "half weapon" if we have * and / operators?

I think if we allow worded modifiers in one place where Rulebooks use them, we should allow in all places Rulebooks use them (and for further consistency, if we allow users to use Half etc in Spell's Range, they will be confused if we don't allow it in Duration).

Translation concerns

For Polish, it's not that hard to translate those words. "Czwarta", "Trzecia", "Połowa", "Dwukrotność", "Trzykrotność" etc.

I would argue (and agree) that lack of ability to properly decline (decline or inflect? I always mess this up..) words for Characteristics is way bigger issue here. "Half Willpower Bonus" would probably need to end up like "Połowa Siła Woli metrów" which sounds just plain bad.

BUT!, nobody stops translators to (using Babele or something) completely change "Half Willpower yards" to "Siła Woli / 2 metrów". Remember that those things are within Spell Items itself, not within main translation file. And support for arithmetics is not taken away, so basically, nothing in this Pull Request changes for translations in comparison to how things work now. All current features work. If you translated as weapon and half weapon, it will still register properly. If you used arithmetics in translations, this feature is still there.

The only difference is that it now additionally supports worded modifiers for new things, because C7 started adding those to Spell Ranges and that is currently not supported by this system

@silentmark
Copy link
Contributor

thanks for explanation, as long as it's backward - compatibile, i feel more secured, especially that we are close to end with PL translation. However, i still think it would be better to change the WoM module spells with Initiative / 2 yards instead.

@Forien Forien closed this Jan 2, 2024
@Forien Forien deleted the 1684-refactor-worded-modifiers branch January 2, 2024 10:52
@Forien Forien restored the 1684-refactor-worded-modifiers branch January 2, 2024 11:28
@Forien Forien reopened this Jan 2, 2024
@Forien
Copy link
Contributor Author

Forien commented Jan 2, 2024

Accidentally deleted branch on my end, sorry :D

@Forien Forien changed the base branch from master to effect-refactor April 2, 2024 18:14
@Forien Forien marked this pull request as draft April 2, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

[WFRP4e System] "Half" Modifier not working in Spell's attributes like Range, Duration, Target/AoE
3 participants