Xilmi
2ad9038709
AI can now disband units that block slots for buying better units
...
When the AI cannot buy units in a city because all slots are blocked and the units in the slot are cheaper than the units it wants to buy, the AI will now get rid of the units that block that slot in order to be able to buy the better units.
2024-12-12 20:06:33 +01:00
Xilmi
6536c9a18e
Satisfy SonarCube
2024-12-12 14:58:29 +01:00
Xilmi
59497db428
Fixed isEnemy becoming true for things it shouldn't
...
Not sure whether it actually impacts behavior but better fix it either way.
2024-12-12 13:40:50 +01:00
Xilmi
32d85ce6ff
Fix for retreating-behavior generally not working
...
Fixed that armyInvolvement was only filled in when the action involved a target to interact with rather than just a tile.
Since armyInvolvement was used for scoring actions such as retreating towards the closest town, this caused the AI to never retreat to their towns when they were supposed to.
2024-12-12 11:07:56 +01:00
Xilmi
347efa98a0
Introduced new priority-tiers for handling attacking and gathering near enemies that are really far away
...
So that the AI won't become too passive on giant maps.
2024-12-11 14:47:08 +01:00
Xilmi
650db73300
Ignore all ExceuteHeroChain-tasks with 0 movement-cost
...
These can happen when an enemy spawns ontop of an AI-hero. If the action would win, it wouldn't be executed anyways. So now AI does the next best thing instead, which likely what it wanted to do anyways.
2024-12-11 13:05:51 +01:00
Xilmi
eab6de4686
Fixed an issue that could cause the AI to skip almost their entire turn
...
If the best Task is to recruit a hero this now triggers pathfinding again as the newly bought hero may impair other heroe's paths.
2024-12-10 19:21:23 +01:00
Xilmi
71553783e6
Merge remote-tracking branch 'upstream/beta' into develop
2024-12-10 18:37:47 +01:00
Ivan Savenko
3d7178dcef
Merge pull request #5000 from IvanSavenko/start_game_tab
...
Add Start Game page to launcher with preset management
2024-12-10 14:01:16 +02:00
Ivan Savenko
56c53a983d
Regenerated translations
2024-12-10 11:29:47 +00:00
Ivan Savenko
5d9e1483e0
Fix translation of mod types on localization change
2024-12-10 11:29:08 +00:00
Ivan Savenko
274ed05827
Fix build
2024-12-10 11:29:08 +00:00
Ivan Savenko
0fde7942d2
Implemented preset management for Start Game tab
2024-12-10 11:29:08 +00:00
Ivan Savenko
277adab03f
Replace unnecessary buttons with labels
2024-12-10 11:29:08 +00:00
Ivan Savenko
0b6f467c49
Add help messages for tooltip buttons
2024-12-10 11:29:08 +00:00
Ivan Savenko
b2099121cd
Add tooltip / help for files import
2024-12-10 11:29:08 +00:00
Ivan Savenko
28724c3f1b
Fix translation buttons
2024-12-10 11:29:08 +00:00
Ivan Savenko
0bce49d618
Integrated fixes for English text from #4961
2024-12-10 11:29:08 +00:00
Ivan Savenko
9b1ca39818
Implement mod update function
2024-12-10 11:29:08 +00:00
Ivan Savenko
3a8b0ead35
More progress with Start Game tab, Chronicles status shown
2024-12-10 11:29:08 +00:00
Ivan Savenko
009fe1836a
Add icons to start game tab, update button names
2024-12-10 11:29:08 +00:00
Ivan Savenko
d34ad05c36
Moved Install from file button from Mods to Start Game tab
2024-12-10 11:29:07 +00:00
Ivan Savenko
4e83120882
Implemented some of Start Game tab functionality
2024-12-10 11:29:07 +00:00
Ivan Savenko
d46eadab79
Added initial version of start game UI
2024-12-10 11:29:07 +00:00
Ivan Savenko
4d08ac92fb
Merge pull request #5060 from Laserlicht/mapeditor_translation
...
translate strings for mapeditor
2024-12-10 13:14:21 +02:00
Ivan Savenko
24669afee3
Merge pull request #5055 from Laserlicht/shortcut_modifier
...
fix shortcut modifier
2024-12-10 13:10:34 +02:00
Ivan Savenko
ee44c5d13f
Merge pull request #5054 from godric3/map-editor-fix-editing-hero-primary-skills
...
Editing hero primary skill in map editor should not be influenced by artifacts
2024-12-10 13:09:48 +02:00
Ivan Savenko
fd555940b6
Merge pull request #5053 from Laserlicht/fix_button
...
fix automatic button
2024-12-10 13:09:34 +02:00
Ivan Savenko
06c7aa90e2
Merge pull request #5050 from Laserlicht/graphic_fixes
...
Graphic fixes
2024-12-10 13:09:02 +02:00
Ivan Savenko
a0514819e1
Merge pull request #5049 from Laserlicht/reg_check
...
fix registry check for systems with WOW6432Node
2024-12-10 13:08:54 +02:00
Ivan Savenko
d140917a8f
Merge pull request #5047 from Laserlicht/fix_tut_video
...
fix tutorial video
2024-12-10 13:08:05 +02:00
Ivan Savenko
fe42613e5f
Merge pull request #5027 from MichalZr6/update_polish_translation
...
Polish translation update
2024-12-10 13:07:26 +02:00
Ivan Savenko
81d53497de
Merge pull request #4939 from Kuxe/map_editor_open_recent-v2
...
Add 'Open Recent' to mapeditor
2024-12-10 13:07:01 +02:00
Laserlicht
e7b6962211
translate strings
2024-12-09 21:51:35 +01:00
Laserlicht
a0c0496784
fix shadow hex
2024-12-09 20:27:39 +01:00
Laserlicht
1bf55958fb
use QVector<QPair<>>
2024-12-09 20:16:21 +01:00
Ivan Savenko
c5eb285a08
Merge branch 'beta' into map_editor_open_recent-v2
2024-12-09 16:51:07 +02:00
MichalZr6
31058854c5
Fixes following review.
2024-12-09 15:09:56 +01:00
MichalZr6
ddb5e7670b
Polish translation update
2024-12-09 15:09:56 +01:00
Xilmi
f56681d521
Removed weird logic that prevented AI from casting spells.
...
What was the rationale? AI loses fights with full Mana that it could easily have won otherwise. I just removed that weird logic and now it uses it's mana and wins.
2024-12-08 21:43:17 +01:00
Laserlicht
2d94246174
fix shortcut modifier
2024-12-08 21:14:51 +01:00
godric3
31e4937a8c
Editing hero primary skill in map editor should not be influenced by artifacts
2024-12-08 17:49:41 +01:00
Laserlicht
e2f61ead5b
fix automatic button
2024-12-08 15:21:08 +01:00
Laserlicht
b148994aa9
fix iterating QHash
2024-12-08 14:51:15 +01:00
Laserlicht
726f22043f
use qhash
2024-12-08 13:39:45 +01:00
Ivan Savenko
04987eef5c
Merge pull request #5051 from IvanSavenko/hero_removal_fix
...
Remove object from owned objects before resetting owner
2024-12-08 14:07:23 +02:00
Laserlicht
47427df767
add registy entry for localized variant of H3
2024-12-08 12:41:15 +01:00
Xilmi
7a5c311d64
Revert "Fix crash"
...
This reverts commit 4ff7516a58
.
2024-12-08 12:34:14 +01:00
Xilmi
ccc0db6d8d
Merge branch 'pr/5051' into develop
2024-12-08 12:33:45 +01:00
Xilmi
4ff7516a58
Fix crash
...
Reinstated 2 lines who's removal caused a crash at the end of a turn in which a hero is killed.
2024-12-08 12:29:30 +01:00