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

Update NextTurnAutomation.kt #12754

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ object NextTurnAutomation {
else 0
value += ourInfluence / 10

if (civInfo.gold < 100 && ourInfluence < 30) {
if (ourInfluence < 30) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we want to bully for cash if we're not strapped for cash? Sounds like a weird choice that would limit us later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would it limit us later? If we're at 100 gold, we can collect a tribute, so we can purchase a warrior, which we can use to tribute another CS, the gold of which we can use to purchase more warriors for more tributes and so on. After we're done purchasing warriors, it's waiting for the cooldown so we can tribute worker, or gold for shrines etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gold can be re-invested into our empire, which snowballs more than not tributing and waiting for a quest to happen to friend the city state. It can be correct to tribute workers and gold from friend/ally city states as well, but let's be a bit cautious about doing so (the influence decay is more expensive to re-purchase than the value of gold you're tributing).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, keep in mind that collecting tributes at the earliest opportunity will lock our opponents out of this same opportunity for the duration of the tibute cooldown period.

// Consider bullying for cash
value -= 5
}
Expand All @@ -227,13 +227,9 @@ object NextTurnAutomation {

private fun protectCityStates(civInfo: Civilization) {
for (state in civInfo.getKnownCivs().filter { !it.isDefeated() && it.isCityState }) {
val diplomacyManager = state.getDiplomacyManager(civInfo.civName)!!
val isAtLeastFriend = diplomacyManager.isRelationshipLevelGE(RelationshipLevel.Friend)
if (isAtLeastFriend && state.cityStateFunctions.otherCivCanPledgeProtection(civInfo)) {
state.cityStateFunctions.addProtectorCiv(civInfo)
} else if (!isAtLeastFriend && state.cityStateFunctions.otherCivCanWithdrawProtection(civInfo)) {
state.cityStateFunctions.removeProtectorCiv(civInfo)
}
if (state.cityStateFunctions.otherCivCanPledgeProtection(civInfo))
state.cityStateFunctions.addProtectorCiv(civInfo)
//Always pledge to protect, as it makes it harder for others to demand tribute, and grants +10 resting Influence
}
}

Expand Down
Loading