-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Force calculation fix and moddability improvement #12035
Conversation
I don't like the fact that it requires micromanaging from the mod makers ('how do I know what's a good number?') |
Well, the modder (or we when managing the vanilla/G&K rules) will have a better idea how often a Bonus will actually apply than any hardcoded stuff - code will slowly become obsolete. And I'm sure gut feeling will give vastly better estimates than what we currently do. How is code to know that An alternate approach would be to add the AI power weight to the Conditional object itself, which would be less flexible (can't depend on parameter values) - but true, much simpler for modders. That way at least a coder adding a new Conditional that can affect Strength/power might (or might not) see there's a field to fill... As I said I'm not entirely happy with this either, but as food for thought it's definitely something. Oh - I forgot - this will make problems with ranking history getting "jumps" - or when ppl with different versions compare their scores... I'd not do anything about that... |
Hmmmmm |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
# Conflicts: # core/src/com/unciv/models/ruleset/unique/Unique.kt # core/src/com/unciv/models/ruleset/unit/BaseUnit.kt
Conflicts have been resolved. |
Beg to differ - we can' guess a sensible probability calculation for any new conditional, so we'll get the Wakanda mod over-accumulation sooner or later - unless the default is zero. And dang merge tool - didn't even ask me about RulesetValidator, it runied that all by itself... |
I haven't forgotten about this, I'll try to merge it into the next version |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR was closed because it has been stalled for 10 days with no activity. |
Fixes #12001
Side effects
Triggered Strength Uniques no longer affect force calculation
Negative Strength modifiers now do count - I saw no good reason why they were excluded
Strength uniques with "unknown" conditionals and without the new modifier no longer affect power at all
Weaknesses