1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00
Commit Graph

134 Commits

Author SHA1 Message Date
2fdf40e7a9 Remove connection pointer from CPack 2025-03-03 10:46:00 +00:00
645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
2362c6da21 Fixes for multiple new issues from Sonar 2025-02-21 15:57:39 +00:00
57f16be9a6 Merge pull request #5417 from IvanSavenko/hota_h3m
[1.7] Support for loading HotA 1.7.X maps and campaigns
2025-02-20 16:32:49 +02:00
f9fe8fc312 Cleanup hota object loading code 2025-02-13 19:10:29 +00:00
d996726fe7 Support for parsing HotA 1.7.0 maps 2025-02-13 19:10:29 +00:00
ec970c7b22 Support for configuring minimal cost for moving between tiles
- Added `movementCostBase` parameter to game config that defines minimal
amount of movement points that will be spent when moving from one tile
on another while offroad (and cost of Fly / Town Portal spells)
- Added `BASE_TILE_MOVEMENT_COST` bonus type that allows modifying
`movementCostBase` on per-hero basis

Example usage for hota-like pathfinding skill
```json
"tileCostReduction" : {
	"type" : "BASE_TILE_MOVEMENT_COST",
	"val" : -15
}
```
2025-02-03 22:52:33 +00:00
baa9b1e312 Load unknown objects as "Nothing" object 2025-01-24 19:26:40 +00:00
8468469976 Fixes for AI town building logic
- Fixes AI not considering non-built dwellings
- AI will now skip evaluation of towns in which construction today is no
longer possible
2025-01-06 16:20:53 +00:00
65fc50d33b Simplified building ID logic
- Replaced overcomplicated and broken math on dwelling ID's with fixed
enum
- Fixed broken 2nd upgrades and 8th dwelling
- Removed no longer used enumeration values from building ID's
2024-12-25 19:16:21 +00:00
e035cf9e63 Optimized getHeroStrength method
- replaced 4x access to bonus system with single access
- fixed formula for Diplomacy
- fxied formula for hero transfer in campaigns
- removed pointless sqrt(pow()) construct
2024-12-22 14:49:35 +00:00
4f80ccd648 Small micro-optimizations for code that gets called A LOT 2024-12-21 14:43:09 +00: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
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
b29d7e8cfd third upgrade for 8th dwelling 2024-11-24 17:57:49 +01:00
10ad0fc760 Split CHeroHandler.cpp/.h into 1 file per class
All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
2024-10-13 14:01:09 +00:00
408a632002 Deprecate artifact-related building types 2024-08-28 13:50:08 +00:00
55fd7bd7aa Thieves guild information level is now a bonus type 2024-08-28 13:50:07 +00:00
8ef8ffa5c4 Implemented configurable blacksmith. Deprecated ballistaYard type 2024-08-28 13:49:42 +00:00
691a1a666d Moved most of town growth handling to NewTurnProcessor 2024-08-28 13:03:13 +00:00
3e605253db Merge pull request #4481 from Laserlicht/fix_hota
fix for 8th creature
2024-08-24 16:06:12 +03:00
43fc741a15 cleaner 2024-08-21 21:24:06 +02:00
6fa2bb7e91 Deprecate previously hardcoded buildings 2024-08-19 11:47:13 +00:00
abfb467f68 Cleanup old code, add compatibility for 1.5 mods 2024-08-19 11:47:13 +00:00
f1e63792f0 Greatly simplify town buildings logic 2024-08-19 11:47:13 +00:00
abdb23f78f Removed getMappedValue methods in favor of existing vstd method 2024-08-14 17:03:25 +00:00
38311244a4 Merge pull request #4402 from Laserlicht/8th_creature
support for 8th creature (Factory)
2024-08-14 17:04:32 +03:00
170f375179 code review 2024-08-10 00:29:30 +02:00
b4c25a148a Merge branch 'develop' into bank_support 2024-08-09 23:36:59 +02:00
475b769eef fix ToW 2024-08-07 01:35:50 +02:00
14bcfad7b0 fix upgrade 2024-08-06 23:28:45 +02:00
758617e2df order 2024-08-06 09:39:16 +02:00
0c3778feda id 2024-08-06 09:35:06 +02:00
abd1a1940a fix recruitment & icons 2024-08-06 01:02:38 +02:00
ebeeff5aa3 abstraction layer 2024-08-05 23:51:07 +02:00
3afddbbf29 replaced constant 2024-08-05 23:03:19 +02:00
1a06a2cc44 basic 8th creature support 2024-08-05 21:15:47 +02:00
b7391f49f6 Merge branch 'vcmi/master' into 'vcmi/develop' 2024-08-05 10:36:10 +00:00
072af5bd6d basic support for bank 2024-08-04 15:44:57 +02:00
15f37f8c4b Fix possible crash on invalid SPELL_LIKE_ATTACK ability 2024-07-29 17:13:31 +00:00
4aa73b40c9 Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
1aa391fdf8 Split CGeneralTextHandler file into 1 file per class form
All text processing code is now located in lib/texts.
No changes other than code being moved around and adjustment of includes

Moved without changes:
Languages.h           -> texts/Languages.h
MetaString.*          -> texts/MetaString.*
TextOperations.*      -> texts/TextOperations.*

Split into parts:
CGeneralTextHandler.* -> texts/CGeneralTextHandler.*
                      -> texts/CLegacyConfigParser.*
                      -> texts/TextLocalizationContainer.*
                      -> texts/TextIdentifier.h
2024-07-20 12:55:17 +00:00
6dd76908bc MoveArtifact struct not used now 2024-07-09 14:27:04 +03:00
b4c6906471 Merge branch 'vcmi/beta' into 'vcmi/develop' 2024-06-11 19:22:23 +00:00
df83fa33a1 Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
9c1ce214fc thievesGuild support 2024-05-30 21:58:35 +02:00
3f9e53acc8 fix typo 2024-05-30 21:57:58 +02:00
f8a206b0c6 Fix serialization of size_t breaking 32<->64 bit compatibility 2024-05-23 12:46:28 +00:00
2521557f68 Fixed some newly reported issues from SonarCloud 2024-05-10 13:40:24 +00:00
8b861fc58f Do not check for guards when teleporting using means other than DD 2024-05-07 20:05:23 +00:00