-
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
Can't trade resources from other trades or city-states #5252
Conversation
This is really unclear to the user. |
template string
Maybe "+1 from Trade" to make more clear this is an additional one? |
"untradable" is a good word to include, gets right to the point |
Somehow, this seems to be unrelated to resources, trades and city states... |
It's an error in master. |
Go ahead and debug it, I'm not going to, sorry, toying elsewhere. You know how to debug tests - if not, search through my scratchpad. Actually, now see #5272 |
I've fixed the problem in #5272. |
Well, "general solution" would mean a Unique would be identifiable out of context without relying on placehoder text being a primary key... Actually, TranslationFileWriter knows or could know some context, so having each Unique - in the enum perhaps - know the scope of application (not the scope of effect or scope of conditionals) - could enable TranslationFileWriter to distinguish such "uniques". Meaning another test should whine when two Uniques with identical placeholder text have overlapping scopes. enum class Scope { BaseUnit, Building, Policy, Nation, Terrain,....... }
enum class UniqueTypeOrHowIsItCalledNow(val placeholderText: String, val scope: EnumSet<Scope> = EnumSet.noneOf(Scope::class.java)) {
ProvidesStatsCity("Provides [] []", EnumSet.of(Scope.Building, Scope.Nation)),
ProvidesResources("Provides [] []", EnumSet.of(Scope.Terrain, Scope.Whatever)),
.... |
To be clear, I'm not working on any improvement to the translation writer. |
Relates to #4602.
![Screenshot_2021-09-17_23-29-56](https://user-images.githubusercontent.com/63475501/133857083-b956f65e-d8fe-4a2a-818a-5ee0da3a4cd2.png)
This PR disables "trading on" resources that you got from other trades, or from city states. They still show up in the trade list (so you don't forget that you have them), but with a quantity of 0 (unless you also have other sources).