1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-08 22:26:51 +02:00
Commit Graph

18636 Commits

Author SHA1 Message Date
a983b5c7d7 It is now possible to export or import mod preset to/from clipboard 2024-12-17 14:38:50 +00:00
a2827bf6f0 Merge remote-tracking branch 'upstream/beta' into develop 2024-12-17 12:08:36 +01:00
64ad060846 Update RecruitHeroBehavior.cpp
closestThreat was supposed to be < 1, not < 0
2024-12-17 12:03:46 +01:00
aff73b6e65 Be less wasteful with hiring heroes
When an enemy is near our city that currently has a hero hiding in it, we don't buy a hero without army as that one would be forced to wait outside and likely be killed.
2024-12-17 12:02:58 +01:00
09163009e7 Merge pull request #5087 from Laserlicht/boost_update
fix boost 1.87
2024-12-17 12:30:14 +02:00
99fcf136ec Nullkiller AI is now also capable of upgrading dwellings a second time if that's possible 2024-12-16 23:45:21 +01:00
604aa9a6b9 Merge pull request #5101 from IvanSavenko/android_chronicle
Attempt to fix Chronicles installation on Android
2024-12-17 00:12:57 +02:00
d9dcce4ea4 Support for native multilanguage installer in main VCMI languages 2024-12-16 21:48:09 +01:00
5d65816c25 Fixes according to review 2024-12-16 20:45:00 +00:00
80f5aa8336 Slightly rework Chronicles installer to make it work on Android 2024-12-16 17:14:21 +00:00
9012560e38 Fix for AI not recognizing 2nd T7-building of Factory as dwelling
This lead to it being built dead-last in the build-order instead of the AI trying to go for it quite early.
2024-12-16 17:19:07 +01:00
a9dfd9b7f4 Merge pull request #5099 from IvanSavenko/bugfixing_beta_3
Fixes for beta bugs reported on Discord
2024-12-15 23:32:24 +02:00
f4a15a198b Cleanup 2024-12-15 21:32:23 +01:00
50838f24bf Auto-recover from cases when active preset is invalid 2024-12-15 19:43:43 +00:00
d42ae2995b Fix crash on attempt to install mod not present in mod repository 2024-12-15 19:37:25 +00:00
88bf46f57b Add more logging to Launcher 2024-12-15 19:17:06 +00:00
63af2d174f Fix overwriting mod download URL during repo checkout 2024-12-15 19:16:49 +00:00
92dcac90ae Reload start game tab state on language change 2024-12-15 19:15:54 +00:00
bfbc97c14f Merge pull request #5093 from kdmcser/beta
update Chinese translation
2024-12-15 13:30:01 +02:00
4e30af287e Merge pull request #5090 from Laserlicht/fix_prescale
fix margin if image prescaled and not equal to current scaling
2024-12-15 13:29:54 +02:00
c9ccfd8625 Merge pull request #5089 from IvanSavenko/profile_translation_fix
Fix crash on selecting different language during initial setup
2024-12-15 13:29:46 +02:00
81e29d6ce2 Return built in default image 2024-12-15 11:43:39 +01:00
5fc61df717 fix_crash_loading_frames_from_def 2024-12-15 11:43:39 +01:00
edbf555695 update Chinese translation 2024-12-15 16:38:19 +08:00
d232b7b46b fix margin if image prescaled and not equal to current scaling 2024-12-15 04:44:08 +01:00
321fc42a8e Fix crash on selecting different language during initial setup
Remove placeholder item from mod preset combobox - it should be filled
using mod preset list from user config file, and should not be translated.
2024-12-14 22:44:27 +00:00
1517dcca6c boost 1.87 2024-12-14 22:26:26 +01:00
132500b292 Merge pull request #5084 from IvanSavenko/ukrainian
Ukrainian translation update
2024-12-14 21:11:39 +02:00
d939e7cce8 Merge pull request #5081 from Laserlicht/german
German translation update
2024-12-14 21:11:32 +02:00
d69be1a504 Merge pull request #5082 from MichalZr6/update_polish_translation
Polish translation update
2024-12-14 21:11:20 +02:00
b07b1b794b Merge pull request #5083 from IvanSavenko/bugfixing_beta_2
Another batch of fixes for beta
2024-12-14 21:11:12 +02:00
9a2be51b90 Partial Ukrainian translation for map editor 2024-12-14 15:51:33 +00:00
69c219ccfd Translate Launcher to Ukrainian 2024-12-14 15:00:31 +00:00
52b1af12d8 Translated VCMI strings to Ukrainian 2024-12-14 15:00:24 +00:00
bb7cf3ffbf Use existing callback method instead of custom one in AI 2024-12-14 14:53:34 +00:00
0a99d60ee7 polish translation update 2024-12-14 15:42:50 +01:00
64db89711e Retranslate start game tab on language change 2024-12-14 14:34:15 +00:00
92b49370ed Remove not used window title from Start Game tab 2024-12-14 14:34:15 +00:00
b0c66ae69b Completely erase old cache on mod repo checkout
This allows to remove any outdated data that might be present:
- mods removed from repository
- mods that came from no longer used repository
- fields that were removed from mod.json's
2024-12-14 14:34:15 +00:00
b39e8dc1ef Merge pull request #5021 from Xilmi/develop
Fix for AI not defending in some cases
2024-12-14 16:33:17 +02:00
65c73051c6 fine adjust 2024-12-14 15:04:16 +01:00
5c4f59546c update german qt 2024-12-14 14:36:42 +01:00
3b442bc4e4 update german 2024-12-14 14:36:09 +01:00
5ff834aac2 Remove debug-outputs
Debug-outputs removed
2024-12-13 22:13:27 +01:00
33f5b473b3 Defender should not run off for troop-delivery
Fixed a rare case in which a town-defender could become an indirect part of a troop-delivery-task by doing a sub-task like capturing a shipyard that takes less than 1 turn but leaves him out in the open.
2024-12-13 21:50:45 +01:00
d0c99423a3 Merge remote-tracking branch 'upstream/beta' into develop 2024-12-13 12:31:51 +01:00
79fb5faa2e Fixed a freeze
It was happening when all slots were full but no unit even needed disbanding because the unit to be bought is part of the units that are inside of the existing slots.

(This commit contains excessive debugging but I don't want to remove it just yet incase another issue pops up.)
2024-12-13 12:23:13 +01:00
fac18d953e Fixed and improved disband-logic
The score for buying army now scales with the cost of that army.
The cost of the units that need to be disbanded in order to hire the new units is subtracted from the army-hiring-score so the AI will prefer hiring armies where the amount of troops to disband is low or non-existent.
Fixed a bug that also disbanded troops when there still were free slots available.
2024-12-13 00:09:10 +01:00
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
6536c9a18e Satisfy SonarCube 2024-12-12 14:58:29 +01:00