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
Always set Max?-Capacity-SecondaryStat for WEAPON_BASE_EFFECTS #4557
Always set Max?-Capacity-SecondaryStat for WEAPON_BASE_EFFECTS #4557
Conversation
…currently: iff in supply)
fix temporary changes to capacity/secondary stat (e.g. from PLC_CHARGING) when not being in supply https://freeorion.org/forum/viewtopic.php?t=12778&sid=543cf0256e11cd5c604c55d4e093f769 tested: * defensive and offensive flanking work out of supply * md2 upgrade happens only in supply * flux lance, arc disruptor, flak, md1/md2 have the expected values in the ship designer
794afcb
to
b84c62b
Compare
b84c62b
to
c7ca581
Compare
Ok, seems i finally won against the linters. Ready to merge from my side. playtested:
|
Does using flanking allow a ship to upgrade permanently outside of supply? ie. have 72/72, get upgrade tech so have 72/100, use flanking for a turn to have 100/100, keep 100/100 despite never having been in supply range to get upgrade? |
in theory not. there is no state involved - the meters get set to maximum every turn. and the max meters get set to values; not modified. the weapon upgrade techs fire if last turn resupplied is >= the turn the tech got researched. i will playtest though. |
playtested OK:
|
Right, that now works differently from how I remembered. |
Can we change it that way it doesn't use turn the tech was researched? Then the other empires' tech info could be disabled. |
I suppose you could add an empire meter or meters to track various weapon upgrade levels, and key the effect off that. Or add a series of specials to the capital and test for / add effects to that. Not sure how you want it to work though... I assume other empires should be able to predict the weapon levels o an empire, but not know that or when that empire researched a tech? Need to share the info somehow then, but specials on the capital or empire meters probably aren't improvements over sharing tech info, in that case... |
Is wrong effects accounting a big problem here? For implementation the base is that the other empire needs to observe a source of the effect in order for correct accounting. So specials/meters on the capital planet won't really work. Also I do not know if there are public empire meters. Hiding the research turns but publishing the researched tech (either per FOCS or via public empire meters) would work partly; the effect accounting for ships which are not upgraded would show an unknown malus, but the upgraded ones would have correct accounting. Another option would be to add a special per ship set to the current damage value coming from the tech (so lower if not upgraded yet) - the special can be observed by enemies so accounting would work. One could probably also repurpose e.g. the max meter for this - we do not really need a max meter for damage anymore. Some complexity/choices there how to handle gifting though; should the base damage downgrade to highest lower tech? Anyway I think all of this should not delay merging the PR. |
Co-authored-by: Geoff <geoffthemedio@users.noreply.github.com>
Co-authored-by: Geoff <geoffthemedio@users.noreply.github.com>
2d47c73
to
b10463d
Compare
fd69ba6
to
4887ff2
Compare
fixes #4555 and #4517 in master