1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
Commit Graph

17623 Commits

Author SHA1 Message Date
Xilmi
68e264d990 Prune paths involving enemy heroes
Capture objects and gather army will now skip paths that involve foreign heroes.
2024-10-03 15:06:34 +02:00
Xilmi
ddfeab8748 Merge remote-tracking branch 'upstream/develop' into develop 2024-10-03 13:38:51 +02:00
Xilmi
5e6fefdc50 Reverted fix for not trying to moving foreign heroes
While it fixed the bug it was supposed to fix it caused another severe bug: AI wasn't generating a thread-map anymore.
Original bug needs to find another fix.
2024-10-02 23:40:51 +02:00
Xilmi
0143a52755 Update PriorityEvaluator.cpp
Scores for all sorts of visitable and pickable objects are now unified in order to prevent AI from ignoring nearby valuables.
2024-10-02 20:12:47 +02:00
Xilmi
f0802c0b3c Move foreign hero fix
Fixed an issue that caused the AI to try and move heroes of other players.
2024-10-02 20:11:20 +02:00
Xilmi
c19d885603 Subterranean Gateway fix
Fixed an issue that caused pathfinding for player and AI not working when a subterranean gate was too close to the edge of the map.

Fixed another issue that played into pathfinding for AI not working when a subterranean gate was too close to the edge of the map.
2024-10-02 00:10:45 +02:00
Xilmi
f2b8b40925 Being less dismissive
Reduced the amount of circumstances under which the AI dismisses heroes. Among others to prevent a loop through all passes where it repeatedly hires and dismisses heroes.
2024-10-01 17:20:54 +02:00
Ivan Savenko
f816c3306b
Merge pull request #4694 from Laserlicht/spell_cast_only_self
cast only on self
2024-10-01 17:20:20 +03:00
Xilmi
3d9892f6b3 Merge remote-tracking branch 'upstream/develop' into develop 2024-10-01 16:08:57 +02:00
Ivan Savenko
cef7466c71
Merge pull request #4643 from SoundSSGood/CArtHandler-refactoring
CArtifactSet  tidy up
2024-10-01 16:26:32 +03:00
DjWarmonger
ffed9480e0
Merge pull request #4483 from vcmi/custom_objects_per_zone
Customizable objects in RMG zones
2024-10-01 14:58:35 +02:00
Ivan Savenko
e738378938
Merge pull request #4700 from altiereslima/develop
Update Portuguese Translation
2024-10-01 15:30:27 +03:00
Ivan Savenko
ee06e206f2
Merge pull request #4698 from XCOM-HUB/patch-4
Update mod.json
2024-10-01 15:30:02 +03:00
Ivan Savenko
32af41ac11
Merge pull request #4697 from XCOM-HUB/patch-3
Create swedish.json
2024-10-01 15:29:51 +03:00
Ivan Savenko
46ed052714
Merge pull request #4692 from dydzio0614/change-default-ai
Change default neutral creatures AI to BattleAI
2024-10-01 15:28:43 +03:00
Ivan Savenko
654f5a9100
Merge pull request #4691 from PolishUser/hero-recruitment-sound
Add 'newBuilding' sound upon hero recruitment in towns
2024-10-01 15:28:33 +03:00
Ivan Savenko
6b72549078
Merge pull request #4690 from IvanSavenko/ttf_tweaks
Tweaks for scalable / true type fonts
2024-10-01 15:28:11 +03:00
Ivan Savenko
b2f391e290
Merge pull request #4688 from dydzio0614/conflux-idle-animations
Remove block of conflux creatures idle animations
2024-10-01 15:27:28 +03:00
Ivan Savenko
f39d515d54
Merge pull request #4687 from dydzio0614/chain-lightning-magic-immunity
Fix chain lightning wasting effect on creatures immune to magic
2024-10-01 15:27:15 +03:00
Ivan Savenko
a4c3dd622f
Merge pull request #4685 from Laserlicht/turn_timer_load_change
turn timer and simturn change on load
2024-10-01 15:27:04 +03:00
Ivan Savenko
9c91559414
Merge pull request #4677 from IvanSavenko/rewardable_fixes
Unify rewardable map object and town building code
2024-10-01 15:26:50 +03:00
altiereslima
be20469dc1 Update Portuguese Translation 2024-09-30 22:35:19 -03:00
Xilmi
2d783211ce Fixed a crash
Fixed a crash from trying to access nonexisting map-element.
2024-10-01 01:11:17 +02:00
Xilmi
9c52e3a0b2 Fix for inconsistency in planned and performed army-merge.
Removed the usage of BonusModifiers because depending on the case the function was sometimes called with and sometimes without an actual hero as first parameter.
This lead to inconsistencies between planned and performed army-merge and got the AI stuck in a loop where it ordered an army-merge over and over that then would not conclude.
The inclusion of bonuses of the hero for determining which army is better on them is unnecessarily convoluted and just causes issues. It took me like 4 hours to figure out why the AI didn't act.
2024-10-01 00:42:01 +02:00
Maurycy
05d7b55209
Update mod.json
Added code for the Swedish language.
2024-09-30 21:07:45 +02:00
Xilmi
a01e84214f Fixed errors
AI no longer tries to access tiles it cannot see while clusterizing objects.
2024-09-30 21:00:50 +02:00
Maurycy
265e9a69e4
Update Mods/vcmi/config/vcmi/swedish.json
Co-authored-by: Laserlicht <13953785+Laserlicht@users.noreply.github.com>
2024-09-30 20:38:39 +02:00
Maurycy
c1b1685cc1
Update Mods/vcmi/config/vcmi/swedish.json
Co-authored-by: Laserlicht <13953785+Laserlicht@users.noreply.github.com>
2024-09-30 20:34:38 +02:00
Maurycy
7a3ff4a433
Create swedish.json
I have finally translated swedish.json 🥳
2024-09-30 19:51:40 +02:00
Xilmi
73e7d3f5bb Another reason not to try to town-portal
Even if the hero blocking a town is from the own faction, the town must not become a target if the city has stashed armies because in that case the hero ontop of it won't be able to go into garrison for the TP.
2024-09-30 19:41:39 +02:00
Xilmi
74f3aedcc9 TP onto friend attempt
Fixed an issue that caused the AI to think it can townportal onto heroes of other factions, for example their allies.
2024-09-30 19:32:27 +02:00
Xilmi
d59a1fe9e9 Fix case of "Got false in applying struct CastAdvSpell"
Heroes now leave the garrison before trying (and failing) to cast adventure-map-spells.
2024-09-30 17:57:41 +02:00
Dydzio
3c9ec0c30e Change neutral AI to BattleAI 2024-09-29 15:44:24 +02:00
Xilmi
58eeccd119 Merge remote-tracking branch 'upstream/develop' into develop 2024-09-29 12:35:44 +02:00
Xilmi
cfe4d7592a Update DefenceBehavior.cpp
Heroes will no longer rush to defend towns that have a standing garrison that they can't merge their armies with.
2024-09-29 03:13:21 +02:00
Xilmi
a2904584d3 Update Nullkiller.cpp
Build and hire-tasks no longer eat into the pass-depth.
2024-09-29 02:01:09 +02:00
Xilmi
f7a961793a Update PriorityEvaluator.cpp
AI is more careful when gathering stuff near enemies.

The wasted movement-points are no longer considered when calculating which own city to fall back to when there's nothing better to do.
2024-09-29 01:23:13 +02:00
Xilmi
4a5ecdf25e Update Nullkiller.h
Removed pointless default-parameter.
2024-09-29 01:15:53 +02:00
Xilmi
769268cfe3 Eternal Garrison
Fixed an issue that caused heroes to stay garrisoned for ever when hero-cap was reached.
2024-09-29 01:15:09 +02:00
PolishUser
c2ddf8e06a Add 'newBuilding' sound upon hero recruitment in towns 2024-09-28 23:54:51 +02:00
Ivan Savenko
4ed478b6e5 Improve font mode auto-selection for languages like Chinese 2024-09-28 19:31:16 +00:00
Ivan Savenko
fecfdd7056 Fix centering of multi-line labels 2024-09-28 19:30:50 +00:00
Ivan Savenko
51848ced3b Add font loading tracking to log 2024-09-28 19:30:26 +00:00
Ivan Savenko
532ed9b12c Adjusted ttf font sizes to better match H3 fonts 2024-09-28 19:29:49 +00:00
Dydzio
ac380b0f4c Remove block of conflux creatures idle animations 2024-09-28 19:12:32 +02:00
Laserlicht
e6cb87abac cast only on self 2024-09-28 17:32:53 +02:00
Dydzio
63b711758f Fix chain lightning wasting effect on creatures immune to magic 2024-09-28 17:22:26 +02:00
Laserlicht
1558cbdfa9 turn timer and simturn change on load 2024-09-28 13:45:04 +02:00
Xilmi
8d93c0c9c9 Update PriorityEvaluator.cpp
Removed workaround that was likely necessitated by other issues.
2024-09-27 23:03:35 +02:00
Xilmi
ea535b211a Update Nullkiller.h
Fixed issues caused by running buildPlan with wrong default-priority-tier.
2024-09-27 23:03:09 +02:00