Xilmi
433c58f8b1
Workaround for previously masked issue
...
A recent fix made it so that towns that weren't supposed to be defended are now no longer defended.
This caused scouts with minimal army to also go after them in addition to the main-hero.
Problem is when two heroes go for the same town it's a massive waste of movement-points. So for the time being only main-heroes will go for faraway captures.
Better solution would be to memorize who was sent to attack what on the same turn and filter out tasks going for the same target.
2024-09-23 18:42:31 +02:00
Xilmi
d87f195bc7
Update AINodeStorage.cpp
...
Nodes along the path are now also considered for how dangerous it is.
2024-09-23 18:39:18 +02:00
Xilmi
71504a3140
Hire despite hero present
...
Only if both the garrison and the outside of a town are blocked are hires of heros being blocked.
2024-09-23 17:25:17 +02:00
Xilmi
20f7751e16
Weekend-decisions
...
When attacking non-neutral towns that are far away, the AI now considers whether their attack would arrive in the same week. If it wouldn't, it means there's a high risk that newly bought troops might flip around who is stronger. So they now refrain from sending a hero towards an enemy town that is too far away.
2024-09-23 01:25:58 +02:00
Xilmi
e7e4d6cc72
Fix invincible Hellbardiers
2024-09-23 01:23:18 +02:00
Xilmi
9ef2c6f8a0
Merge remote-tracking branch 'upstream/develop' into develop
2024-09-22 23:43:29 +02:00
Ivan Savenko
ab2cc6600f
Merge pull request #4644 from kdmcser/not_check_8_unit
...
not report warning in factory-town
2024-09-22 21:58:56 +03:00
Andrii Danylchenko
894c88defc
Merge pull request #4612 from vcmi/nkai-treat-pandora-as-blocker
...
NKAI: pandora as blocker object
2024-09-22 15:30:17 +03:00
Xilmi
90d72a4458
Chase & FFA-changes
...
The AI should no longer chase enemy heroes that are not reachable in the same turn, when there's other options as this behavior was quite exploitable.
The AI should now take their overall strength into account when deciding whether to attack or not.
Previously it would attack as long as their assumed army-loss was at most 25%.
Now that is 50% times the ratio of their power compared to the total power of everyone.
2024-09-22 13:06:07 +02:00
Xilmi
d679ee72b9
Merge remote-tracking branch 'upstream/develop' into develop
2024-09-22 12:21:20 +02:00
kdmcser
d6e69b9586
not report warning in factory-town
2024-09-22 14:22:56 +08:00
Ivan Savenko
43666ec987
Merge pull request #4627 from Laserlicht/chronicles_config
...
avoid warnings if not installed chronicles
2024-09-21 17:46:55 +03:00
Ivan Savenko
535be56888
Merge pull request #4629 from XCOM-HUB/patch-1
...
Update swedish.ts
2024-09-21 17:46:47 +03:00
Ivan Savenko
4a5818aa7d
Merge pull request #4631 from Laserlicht/fix_error_output
...
fix error with description
2024-09-21 17:46:31 +03:00
Ivan Savenko
8a18d92a8e
Merge pull request #4633 from Laserlicht/xbrz_fix
...
fix xbrz font fallback
2024-09-21 17:46:12 +03:00
Laserlicht
73d3903e43
fix xbrz font fallback
2024-09-20 21:25:09 +02:00
Laserlicht
629da99679
fix error with description
2024-09-20 18:21:52 +02:00
Andrii Danylchenko
ce0f51672a
NKAI: replace hardcoded pandora with more flexible solution
2024-09-20 16:05:57 +03:00
Ivan Savenko
6299b29789
Merge pull request #4619 from IvanSavenko/changelog_september
...
Updated changelog with all new changes so far
2024-09-20 14:19:21 +03:00
Ivan Savenko
54dc55f7d2
Updated changelog with all new changes so far
2024-09-20 10:06:25 +00:00
Ivan Savenko
6832a5c4be
Merge pull request #4599 from MichalZr6/fix_hero_access_check
...
Fix error "hero access check" flooding console during quick-battle
2024-09-20 13:01:49 +03:00
Ivan Savenko
3209aa58e8
Merge pull request #4626 from Laserlicht/fix_settings
...
missing default value
2024-09-20 11:50:58 +03:00
Ivan Savenko
c7fc6a4c2e
Merge pull request #4625 from IvanSavenko/fix_doublevisit
...
Fix crash on AI double-visiting a town with new hero
2024-09-20 11:50:47 +03:00
Ivan Savenko
cb96b9959e
Merge pull request #4623 from Laserlicht/invincible_bonus
...
INVINCIBLE bonus
2024-09-20 11:50:29 +03:00
Ivan Savenko
26aeb1dd48
Merge pull request #4616 from Laserlicht/show_level
...
show creature level
2024-09-20 11:50:17 +03:00
Ivan Savenko
2b4342f21d
Merge pull request #4597 from Laserlicht/simplify_ttf
...
simplify usage of ttf font
2024-09-20 11:49:58 +03:00
Maurycy
9e8aad23dd
Update swedish.ts
...
@Fabrice-TIERCELIN
2024-09-20 03:27:34 +02:00
Laserlicht
417fb8d434
avoid warnings if not installed chronicles
2024-09-19 22:14:23 +02:00
Laserlicht
2394809abd
missing default value
2024-09-19 21:36:03 +02:00
Laserlicht
5e3630adae
adjust texts
2024-09-19 20:57:43 +02:00
Laserlicht
a1384bf47f
defending, when not possible to attack invincible
2024-09-19 20:54:50 +02:00
Laserlicht
0c1ef33d5a
text change
2024-09-19 20:03:33 +02:00
Laserlicht
3a6b2d80fa
adjusted monsterLevel text
2024-09-19 19:55:57 +02:00
Ivan Savenko
292f4c8ad2
Do not process pack if it was blocked by a queryReply
...
Regression from earlier PR
2024-09-19 16:45:13 +00:00
Ivan Savenko
bbeaf0ad01
NKAI: Do not visit town on recruiting hero
...
Currently this may lead to a case where player have received a query
(such as levelup query from Battle Academy in Dungeon), but still
attempts to move
2024-09-19 16:44:48 +00:00
Xilmi
7c8f4c423c
Merge remote-tracking branch 'upstream/develop' into develop
2024-09-19 17:35:18 +02:00
Ivan Savenko
658c359bc7
Merge pull request #4542 from MichalZr6/update_displayed_path
...
Update displayed hero path when hiring/dismissing creatures that give move penalty
2024-09-19 17:35:49 +03:00
Ivan Savenko
fb28de5beb
Merge pull request #4531 from Laserlicht/mouse_right_drag
...
map drag with right mouse
2024-09-19 16:42:33 +03:00
Ivan Savenko
e3d365262e
Merge pull request #4588 from Laserlicht/intro_video_rework
...
Intro video rework
2024-09-19 16:18:31 +03:00
Ivan Savenko
65355925e9
Merge pull request #4595 from Laserlicht/cast_without_skip
...
Bonus for spell: cast without skip the turn
2024-09-19 16:17:48 +03:00
Ivan Savenko
d4ace69e72
Merge pull request #4622 from kaja47/im-here-to-clean-up-your-bonus-system-code
...
miniscule bonus system cleanup
2024-09-19 16:11:45 +03:00
MichalZr6
a66651cdbb
Trigger workflow
2024-09-19 11:31:08 +02:00
MichalZr6
5f86f5504b
Fix #3286
2024-09-19 09:51:18 +02:00
MichalZr6
7fa965e78b
Fix unintentionally broken line endings to LF in Client.cpp
2024-09-19 09:20:36 +02:00
MichalZr6
e13e72d093
Moved code from NetpacksClient.cpp to Client.cpp
...
Created new function CClient::updatePath that will invalidate paths and update given hero displayed path
2024-09-19 08:43:54 +02:00
MichalZr6
6b4220c510
Add update paths code to netpack visiting methods
2024-09-19 08:43:53 +02:00
Laserlicht
b36c05df1d
INVINCIBLE bonus
2024-09-19 03:14:45 +02:00
Laserlicht
081ba4839c
added town info
2024-09-18 22:39:53 +02:00
Laserlicht
a43475042f
code review
2024-09-18 22:10:25 +02:00
Laserlicht
735af83294
castSpellThisTurn to bool var
2024-09-18 21:24:27 +02:00