Campfire can now have one of 3 rewards layouts:
- 400 gold + 4 of random non-gold resource
- 500 gold + 5 of random non-gold resource
- 600 gold + 6 of random non-gold resource
This should make it match H3 logic
- Same buildings in different towns of the same faction that provide
bonuses with propagators will now correctly stack their bonuses. This
fixes Tavern and possibly other such buildings
- Brotherhood of Sword now correctly adds bonus to thieves guild access
- bump our oldest builder from Ubuntu 20.04 to 22.04 due to Github
phasing-out of 20.04: https://github.com/actions/runner-images/issues/
11101
- use gcc-10 on ubuntu 22.04 (oldest available)
- explicitly use 24.04 image instead of latest, in line with other jobs.
Nullkiller AI will now prefer giving its scout heroes faster units to
optimize their movement points on next turns.
Unit selection logic:
- AI prefers to give 'weak' units that won't affect army strength of main
hero. Unit is considered 'weak' if its level below 4 or if its AI value
is below 1% of total army strength. So AI can give high-tier unit to
scout, but only if main hero already has massive army.
- Within weak units, if hero is moving on terrain with penalty, AI will
always prefer units that are native to this terrain. So on snow AI will
always prefer unit from Tower even if its speed is lower than unit from
another faction.
- Within remaining candidates, AI will prefer unit that will give higher
movement points limit. This also means that in case of H3 rules, all
units with 11+ speed will be viewed as equally good
- If there are multiple units with same speed, AI will prefer unit with
lowest AI value
AI will no longer leave the defense of a threatened town in order to bring the army to another hero.
AI will no longer send heroes to die outside of towns that already have a garrisioning hero inside, if there's a stronger enemy hero lurking around the town.
AI no longer rushes towns that don't have a citadel or better when there is a scary enemy hero around.
AI will no longer try to maximize defenses by using the strongest possible defender. Instead it will try to use the most appropriate defender. The most appropriate is considered to have roughly 75% power of the threat and the score will be lower but still above zero the bigger the deviation is.