1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

19124 Commits

Author SHA1 Message Date
Xilmi
5bd4b6a541 Several AI-Adjustments
Dismissing StayAtTown-tasks for heroes with less than 100 movement-points in order to avoid these tasks to be creates for heroes that have no movement over and over.

Resource-silo is now evaluated by it's output rather than like a building the AI doesn't know what it is good for.

AI should now try to maximize the highest mage-guild instead of building them slowly one by one.

Drastically reducing the score of dwelling-upgrades for upgrades the AI already has.

Heroes that are currently threatened anyways will be more brave and not care about going for things that are also threatened if there is nothing safe in range.

AI will no longer waste their heroe's MPs defending cities that don't have at least a Citatdel.

Reverted prior change that caused AI to no longer push for grey towns.
2025-02-09 17:33:39 +00:00
Xilmi
6b55401fde Swapped order of Defend and Far-Hunter-Gather 2025-02-09 17:33:39 +00:00
Xilmi
b0e87f01ed Fix cluster prio
Clusters are now checked against all priority-tiers instead of just hunter-gather.
2025-02-09 17:33:39 +00:00
Xilmi
8d3970c6d5 AI-adjustments
AI no longer thinks it can recharge their mana at towns without a mage-guild.
AI no longer treats neutral monsters as if  they were their enemies.
Upgrading armies no longer has it's own priority-tier. It is now handled at the same-priority as hunter-gather.
2025-02-09 17:33:39 +00:00
Xilmi
c9f669b41d Update PriorityEvaluator.cpp
If there's several valid defense-tasks use the one that takes fewer turns to get to.
2025-02-09 17:33:39 +00:00
Xilmi
b3eecf431c Anti-suicide-changes
Fixed an issue causing the AI to use evaluationContext.powerRatio as maxWillingToLose instead of evaluationContext.powerRatio * ai->settings->getMaxArmyLossTarget().

Defense-tasks no longer ignore maxWillingToLose when the target isn't a hero.
2025-02-09 17:33:39 +00:00
Xilmi
64ff6a0631 Update PriorityEvaluator.cpp
Basic dwellings get a score-boost to take into consideration that units are immediately hirerable as opposed to just being added at the beginning of next weak. This means they should win out against early Citadels more.

Handling for conditional quicker mage-guild-upgrading incase of caster-mains.
2025-02-09 17:33:39 +00:00
Xilmi
765658ec83 Various Evaluation improvements
AI-heroes are reduce their confidence for attacks based on how many of the units they currently have stacks from exist somewhere else in their empire. So for example if an AI has 2 black-drakes while 3 more are waiting in their castle, they act as if their army was only 2/5th as strong as it is. This should make them more likely to first reinforce their army before attacking.

Changed the formula of scoring dwelling-upgrades in a way that doesn't overvalue upgrading vs. producing new units so much.

AI will no longer be so overconfident when fighting enemy heroes near their own castle. This lead to a lot of horrible trades, especially between different AI which made FFAs way easier in the long run.

AI should be better at preventing their enemies finding their towns undefended due to considering enemies that are not immediately in their castle's range too.

If only gold is missing but no special-resources the AI will no longer devalue what building it wants to build next and build something cheaper instead. This should lead to AI quicker reaching their tier 7 units and skipping some unnecessary lower tiers on the way to it.
2025-02-09 17:33:39 +00:00
Xilmi
6c4996ff54 AI will now devalue the usefulness of non-flying units when attacking defensive structures in order to prevent suiciding against castles 2025-02-09 17:33:39 +00:00
Xilmi
d3987d8456 AI should only defend with one hero, not several who won't fit into the city anyways 2025-02-09 17:33:39 +00:00
Xilmi
97111328a8 Made hiring heroes a bit more conditional to spam fewer of them 2025-02-09 17:33:39 +00:00
Xilmi
ae6dcf4c6b Fix for going through all passes despite not doing anything
AI now checks whether it moved anything when it executed tasks. If it didn't it will not continue to further passes.
2025-02-09 17:33:39 +00:00
Ivan Savenko
c13edc8af3
Merge pull request from IvanSavenko/bugfixing
[1.6.6] Fixes for issues in 1.6.5
2025-02-09 19:27:43 +02:00
Ivan Savenko
51c71bb839
Merge pull request from Laserlicht/fixes
[1.6.6] Multiple fixes
2025-02-09 19:24:04 +02:00
Ivan Savenko
eb02c8924c
Merge pull request from Laserlicht/chronicles_aoi
[1.6.6] support chronicles aoi installer
2025-02-09 19:22:05 +02:00
Ivan Savenko
590c7b3a82
Merge pull request from GeorgeK1ng/health-bar
Czech translation update
2025-02-09 19:20:02 +02:00
Ivan Savenko
1c28b8e007
Merge pull request from XCOM-HUB/patch-8
Update swedish.ts
2025-02-09 19:17:59 +02:00
Ivan Savenko
ddeb6c3c2d
Merge pull request from IvanSavenko/artifact_sort_icons
Separate icons for artifact sorting screen
2025-02-09 19:16:55 +02:00
Ivan Savenko
ff66e4d55a
Merge pull request from IvanSavenko/xbrz_autoselect
Enable xbrz2 by default on mobile systems
2025-02-09 19:16:42 +02:00
Ivan Savenko
bf82d9a79a
Merge pull request from IvanSavenko/junktions
Reduce size of junction zones on Coldshadow Fantasy template
2025-02-09 19:16:27 +02:00
Ivan Savenko
92834d7306
Merge pull request from IvanSavenko/advmap_select
[1.6.6] Clicking on blocked tile of a visitable object now builds a path to it
2025-02-09 19:16:12 +02:00
Ivan Savenko
aca51a0250
Merge pull request from MichalZr6/italian_translation
Italian translations for launcher, map editor and in-game interface
2025-02-09 19:15:54 +02:00
George King
70696aeae2
Add files via upload 2025-02-08 23:16:56 +01:00
Ivan Savenko
52d72c75fc Buttons with text tooltip for artifact sorting screen 2025-02-08 16:31:37 +00:00
Laserlicht
f2c872bd4c fix name in MapOverview 2025-02-08 16:22:05 +01:00
Laserlicht
07b494632b optimize textSearchSimilar 2025-02-08 13:22:11 +01:00
Laserlicht
d9ada6c7e8 fix touch relative mode 2025-02-08 12:54:25 +01:00
Maurycy
4d5eb6c870
Update swedish.ts 2025-02-08 02:41:06 +01:00
Maurycy
35a5310bee
Update swedish translations 2025-02-08 01:22:55 +01:00
Laserlicht
4f1a91c2bd support chronicles aoi installer 2025-02-07 22:49:54 +01:00
Ivan Savenko
f3e3bb1749 Enable new option only on mobile platforms 2025-02-07 15:54:33 +00:00
Ivan Savenko
3ed599bef3 Enable xbrz2 by default on mobile systems
Since upscaling is now performed in background there should be no
noticeable lags on most systems.

To be safe - it will only be enabled on systems with over 2 Gb RAM, to
exclude oldest hardware

This only affects autoselection. If upscaling filter was selected by
player explicitly, these changes will have no effect
2025-02-07 14:27:37 +00:00
Ivan Savenko
8a09d364f5 Reduce size of junction zones on Coldshadow Fantasy template
This should reduce amount of huge blocked chunks of map without greatly
changing template gameplay.

Junction zones are used on one more template (Gimlis revenge), however
that template is limited to L-sized maps, so there are no massive chunks
of blocked terrain
2025-02-07 14:06:12 +00:00
Ivan Savenko
7803f7a972 Clicking on blocked tile of a visitable object now builds a path to it
Suggestion from Discord.

If player has hero selected, clicking on a blocked tile of a visitable,
reachable object will now build a path to its visitable position (or
move hero to it, in case of second click / tap).

Objects that have interaction on left click (allied town and shipyards)
are excluded from this change and work as before
2025-02-07 13:59:32 +00:00
Andrey Filipenkov
d8ee343800
Merge pull request from kambala-decapitator/on-release-workflow-beta
add workflow to notify other repos about new release
2025-02-07 13:09:57 +03:00
Andrey Filipenkov
d0a89a8cc8 add workflow to notify other repos about new release
only Homebrew repo for now

(cherry picked from commit 01eda54a0fc3924bb48cf81704bec275e704765a)
2025-02-07 09:36:27 +03:00
Ivan Savenko
8bac023e82 Fix internal connection sending queued packages after closing 2025-02-06 19:22:46 +00:00
Ivan Savenko
4e6560c4c9 Fixes for issues detected by valgrind 2025-02-06 19:22:04 +00:00
Ivan Savenko
fff5ac5945 Fix transparency on hero portraits 2025-02-06 14:22:06 +00:00
Ivan Savenko
0efa39ec79 Fix pack name in logs 2025-02-06 14:21:32 +00:00
Ivan Savenko
5a02a4c07f Fix path to Chronicles campaigns background, remove old code 2025-02-06 14:21:19 +00:00
Ivan Savenko
367aa94227 Do not scroll lists in lobby if another item is hovered 2025-02-06 14:20:45 +00:00
Ivan Savenko
f4a218285f Fix display of remaining spell duration for creatures 2025-02-06 14:19:34 +00:00
Ivan Savenko
d586d4ea89 Do not highlight unavailable columns of hexes on battlefield 2025-02-06 14:18:56 +00:00
Ivan Savenko
7823dd3945 Block pathfinder from allowing to interact with heroes standing on
another visitable object
2025-02-06 14:18:18 +00:00
Ivan Savenko
436aa0a15f Add victory condition overrides for Elixir of Life
Maps can only be won by finding required artifact, defeating enemies is
not enough
2025-02-06 14:16:52 +00:00
Ivan Savenko
f210bd9cb3 Fix crash on winning map on 7-day town timer running out for enemy 2025-02-06 14:15:12 +00:00
Ivan Savenko
2beb4c6aa4
Merge pull request from IvanSavenko/chronicle_install_fix
Fixes Chronicles installation on Windows with non-ascii chars in path
2025-02-04 17:38:29 +02:00
Ivan Savenko
b2c340158d Fixes Chronicles installation on Windows with non-ascii chars in path 2025-02-04 14:57:26 +00:00
Ivan Savenko
d72b743ce5
Merge pull request from MichalZr6/fix_miniHillFort
Fix creating buttons in Stack Window when upgrade is unavailable
2025-02-04 01:02:50 +02:00