Unciv icon indicating copy to clipboard operation
Unciv copied to clipboard

Feature request: paramaterized strength bonus vs city-states

Open SpacedOutChicken opened this issue 3 years ago • 3 comments

Currently, the strength bonus for fighting city-state cities is hard coded at 30 percent, in the "+30% Strength when fighting City-State units and cities" unique. I don't think it has to be this way. Ethiopia's "Spirit of Adwa" unique, for instance, offers a bonus when fighting both units and cities from a civilization with more cities than you, and it is parameterized and adjustable. If that unique can spot cities from a civilization with more cities than you, then a different unique could spot cities from a city-state civilization.

To that end, I'd like to see a "[relativeAmount]% Strength <vs City-State units and cities>" unique implemented. Can it be done?

SpacedOutChicken avatar Aug 30 '22 20:08 SpacedOutChicken

I'd sit this in two uniques, one for city-state units and one for city-state cities, both via a conditional. Shouldnt be too hard, but I currently dont have the time for it

xlenstra avatar Aug 30 '22 22:08 xlenstra

For what it's worth, the unique against city-state units already exists; "[+20]% Strength <vs [City-State] units>" is fully functional. I experimented to see if "[+20]% Strength <vs [{City-State} {City}] units>" would do what I wanted, but it didn't work. Maybe it could be made to work?

SpacedOutChicken avatar Aug 30 '22 22:08 SpacedOutChicken

City units sounds like something that will confuse users a lot, if I have the time (which won't be for about a week) I'd add a new conditional <vs [cityFilter] cities> to handle this case

xlenstra avatar Aug 31 '22 09:08 xlenstra

Merge into #3242

yairm210 avatar Oct 07 '22 09:10 yairm210