Closed oalzubbi closed 8 years ago
@ilteroi , any ideas here?
can't even find where the bonus from wonders is applied ...
i did see a merge error or a copy/paste error though which might affect the bonus in enemy lands. but that's not the bug we're looking for :)
might be if there's an issue where the shoshone should have had that bonus.
I think wonder bonuses are applied at the plot level, right?
ok, observations. unfortunately there are many variables here. so let's try to look at both modifiers separately first.
shorthand for below: H - himeiji castle owner S - shoshone T - third party N - neutral
shoshone only:
himeiji only:
it seems himeiji bonus is applied if the defender is in its own territory. interesting effect but i don't think that was the plan.
now in the screenshots the situations are
also, keep in mind that nobody guarantees that the preview (lua) and the actual combat (dll) are in sync!
open questions:
which plot should considered - attacker or defender or both? is ranged combat different from melee combat here? it uses different code for sure on dll side, i don't see where the bonus would be applied there but it's shown in the preview.
then what is friendly territory? does it include open borders? vassals? cs allies? does is include water? currently neither shoshone bonus nor himeiji works on ships.
ok, now it gets interesting.
is there any lua wizard here who can fix that?
Fix what, specifically?
the combat preview.
sorry, it was meant to align with item 4 there
but there are a bunch of open questions you can weigh in on. i'll consider this done for now
I think friendly territory should be owned territory, and (for bonuses) you should have to be in it, or end up in it, for it to count. So melee attacking into owned, or from owned, or ranged attacked into/from owned, should count.
I have Himeji castle built in one of my cities (granting +15% cs in friendly lands). I am at war with the Shoshone. We are both getting the friendly lands bonus when his units are in my lands and vice versa.
http://steamcommunity.com/sharedfiles/filedetails/?id=671434251
http://steamcommunity.com/sharedfiles/filedetails/?id=671741344