-
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
Added an UniqueType to Found puppet city. #12834
Conversation
…of running away Settler unit will now settle on best tile in dangerous Tiles without escort instead of running away.
with "Founds a new puppet city" in "uniques" of an unit in Units.json. Making it so you can now settle a puppet city.
val unique = UnitActionModifiers.getUsableUnitActionUniques(unit, UniqueType.FoundCity) | ||
.firstOrNull() ?: return null | ||
// FoundPuppetCity is to found a puppet city for modding. | ||
val unique = UnitActionModifiers.getUsableUnitActionUniques(unit, | ||
UniqueType.FoundCity).firstOrNull() ?: | ||
UnitActionModifiers.getUsableUnitActionUniques(unit, | ||
UniqueType.FoundPuppetCity).firstOrNull() ?: return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda feel like if there's going to be a unique for founding puppets, it should be as a separate option from founding regular cities. This here instead makes it only one or the other (preferring non puppet uniques), which imo might not match a modder's intent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm so to be able to have the two unique at one ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for now we can add this, if there's anyone in the future who wants a unit with both for some reason we can change it then
with "Founds a new puppet city" in "uniques" of an unit in Units.json. You can now settle a puppet city.