1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00
Commit Graph

19183 Commits

Author SHA1 Message Date
6b55401fde Swapped order of Defend and Far-Hunter-Gather 2025-02-09 17:33:39 +00:00
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
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
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
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
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
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
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
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
97111328a8 Made hiring heroes a bit more conditional to spam fewer of them 2025-02-09 17:33:39 +00:00
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
2468ab54ea Show total movement cost for multi-turn paths 2025-02-09 17:29:28 +00:00
c13edc8af3 Merge pull request #5383 from IvanSavenko/bugfixing
[1.6.6] Fixes for issues in 1.6.5
2025-02-09 19:27:43 +02:00
51c71bb839 Merge pull request #5394 from Laserlicht/fixes
[1.6.6] Multiple fixes
2025-02-09 19:24:04 +02:00
eb02c8924c Merge pull request #5389 from Laserlicht/chronicles_aoi
[1.6.6] support chronicles aoi installer
2025-02-09 19:22:05 +02:00
590c7b3a82 Merge pull request #5400 from GeorgeK1ng/health-bar
Czech translation update
2025-02-09 19:20:02 +02:00
1c28b8e007 Merge pull request #5392 from XCOM-HUB/patch-8
Update swedish.ts
2025-02-09 19:17:59 +02:00
ddeb6c3c2d Merge pull request #5388 from IvanSavenko/artifact_sort_icons
Separate icons for artifact sorting screen
2025-02-09 19:16:55 +02:00
ff66e4d55a Merge pull request #5387 from IvanSavenko/xbrz_autoselect
Enable xbrz2 by default on mobile systems
2025-02-09 19:16:42 +02:00
bf82d9a79a Merge pull request #5386 from IvanSavenko/junktions
Reduce size of junction zones on Coldshadow Fantasy template
2025-02-09 19:16:27 +02:00
92834d7306 Merge pull request #5385 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
aca51a0250 Merge pull request #5378 from MichalZr6/italian_translation
Italian translations for launcher, map editor and in-game interface
2025-02-09 19:15:54 +02:00
75dd4a1acb fix pinch event calculation 2025-02-09 13:11:49 +01:00
1f61f22122 implement overlay for touch screens 2025-02-09 13:10:27 +01:00
ca5471aa55 fix incorrect health calculation 2025-02-08 23:20:09 +01:00
70696aeae2 Add files via upload 2025-02-08 23:16:56 +01:00
5f74044d9a reorder battle settings 2025-02-08 22:59:32 +01:00
d98ce78c34 add setting for hp bar 2025-02-08 22:48:21 +01:00
a8211d12de Combat Health Bar 2025-02-08 22:22:22 +01:00
f0944752e1 Update launcher translation 2025-02-08 20:54:51 +01:00
de06de06b5 refactor backgrounds (allow resolution change) 2025-02-08 20:53:32 +01:00
0424f71cb2 portrait mode for android 2025-02-08 20:02:31 +01:00
52d72c75fc Buttons with text tooltip for artifact sorting screen 2025-02-08 16:31:37 +00:00
f2c872bd4c fix name in MapOverview 2025-02-08 16:22:05 +01:00
07b494632b optimize textSearchSimilar 2025-02-08 13:22:11 +01:00
d9ada6c7e8 fix touch relative mode 2025-02-08 12:54:25 +01:00
4d5eb6c870 Update swedish.ts 2025-02-08 02:41:06 +01:00
35a5310bee Update swedish translations 2025-02-08 01:22:55 +01:00
4f1a91c2bd support chronicles aoi installer 2025-02-07 22:49:54 +01:00
f3e3bb1749 Enable new option only on mobile platforms 2025-02-07 15:54:33 +00:00
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
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
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
d8ee343800 Merge pull request #5384 from kambala-decapitator/on-release-workflow-beta
add workflow to notify other repos about new release
2025-02-07 13:09:57 +03:00
d0a89a8cc8 add workflow to notify other repos about new release
only Homebrew repo for now

(cherry picked from commit 01eda54a0f)
2025-02-07 09:36:27 +03:00
8bac023e82 Fix internal connection sending queued packages after closing 2025-02-06 19:22:46 +00:00
4e6560c4c9 Fixes for issues detected by valgrind 2025-02-06 19:22:04 +00:00
fff5ac5945 Fix transparency on hero portraits 2025-02-06 14:22:06 +00:00
0efa39ec79 Fix pack name in logs 2025-02-06 14:21:32 +00:00
5a02a4c07f Fix path to Chronicles campaigns background, remove old code 2025-02-06 14:21:19 +00:00