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

Added an UniqueType to Found puppet city. #12834

Merged
merged 29 commits into from
Jan 22, 2025
Merged

Conversation

Emandac
Copy link
Contributor

@Emandac Emandac commented Jan 19, 2025

with "Founds a new puppet city" in "uniques" of an unit in Units.json. You can now settle a puppet city.

…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.
Comment on lines -42 to +46
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
Copy link
Collaborator

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

Copy link
Contributor Author

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 ?

Copy link
Owner

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

@yairm210 yairm210 merged commit 19d0fbc into yairm210:master Jan 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants