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

230 Commits

Author SHA1 Message Date
1def86a3ec Move main town to the tile with highest distance to water shore 2025-03-09 18:46:59 +01:00
9f713a0914 Rename int3::valid to isValid for consistency 2025-03-03 10:46:00 +00:00
33468f21ff Remove custom implementation of threadpool from rmg in favor of TBB 2025-03-01 21:16:03 +00:00
a8b9ec9d67 Revert "std::sort instead of boost::sort"
This reverts commit 2f8566b63e.
2025-02-28 17:04:06 +01:00
2f8566b63e std::sort instead of boost::sort 2025-02-28 16:47:35 +01:00
4e73f7d90f shared_mutex replace boost 2025-02-28 16:01:11 +01:00
7dfb499edf replace boost locks with std 2025-02-28 15:25:58 +01:00
3fb9260f3b replace boost::recursive_mutex with std 2025-02-28 14:08:32 +01: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
09db3e4bef Reworked resource piles loading to fix wog maps with mithril 2025-01-25 11:40:21 +00:00
685403c588 Cleanup 2025-01-02 18:12:59 +01:00
a88a994d75 Proper fix for the issue 2025-01-02 18:12:40 +01:00
ce003af4b9 Heavier penalty for routing roads behind monoliths 2025-01-02 17:41:01 +01:00
d631e3f604 Do not call visitablePos for non-visitable objects 2024-12-25 08:23:45 +01:00
9e07b5c5de Merge pull request #4954 from vcmi/curved_roads
Curved roads
2024-12-04 07:54:41 +01:00
e5b151991b Fix duplicated offroad connections 2024-11-23 10:43:14 +01:00
c8fcc6ffca Fix broken roads to portals or gates by the lower zone border 2024-11-23 08:25:55 +01:00
f95bb58433 Implement curved paths for all road node objects 2024-11-22 09:28:37 +01:00
9277c5f4e7 Fixed main issue with custom path routing 2024-11-21 22:30:21 +01:00
855ab0f0e9 First attempt to enforce curved paths 2024-11-21 22:00:24 +01:00
08fbcd5239 TerrainTile now uses identifiers instead of pointers to VLC 2024-10-30 16:22:11 +00:00
31095248ab Removed typeName and subtypeName properties from CGObjectInstance 2024-10-13 13:05:50 +00:00
3dd4fa2528 Reduce usage of pointers to VLC entities
Final goal (of multiple PR's) is to remove all remaining pointers from
serializeable game state, and replace them with either identifiers or
with shared/unique pointers.

CGTownInstance::town and CGHeroInstance::type members have been removed.
Now this data is computed dynamically using subID member.

VLC entity of a town can now be accessed via following methods:
- getFactionID() returns ID of a faction
- getFaction() returns pointer to a faction
- getTown() returns pointer to a town

VLC entity of a hero can now be accessed via following methods:
- getHeroTypeID() returns ID of a hero
- getHeroClassID() returns ID of a hero class
- getHeroType() returns pointer to a hero
- getHeroClass() returns pointer to a hero class
2024-10-10 12:28:08 +00:00
a8f8c3f4b1 Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
54ba4d50d6 Allow to ban spell scrolls 2024-09-23 17:09:46 +02:00
ec603f46ae - Handle new configurable banks
- Handle "all" object banned option
2024-09-21 13:36:28 +02:00
2fe54504ab Merge remote-tracking branch 'origin/develop' into custom_objects_per_zone
# Conflicts:
#	lib/rmg/CRmgTemplate.cpp
2024-09-14 10:19:22 +02:00
4d4538a48d Use CompoundMapObjectID in ObjectInfo 2024-09-14 09:23:28 +02:00
9591ce1ab4 Move CompoundMapObjectID to separate file 2024-09-14 08:55:28 +02:00
4b263b6d41 Add specific objects and configure their frequency / value 2024-09-12 21:04:27 +02:00
bfe75a6a02 It is now possible to copy object settings between zones 2024-08-24 20:18:36 +02:00
64fc2e5ed0 Move ObjectConfig to ObjectInfo.cpp. Preliminary version of banning object categories. 2024-08-24 15:12:22 +02:00
85ee859b6e First version that works - banning objects is possible 2024-08-21 20:16:41 +02:00
39bb6d5f39 IMarket now able to store artifacts 2024-08-20 18:49:47 +03:00
4413f03276 Cleanup 2024-07-30 08:50:33 +02:00
d10711928f Allow connecting zone to itself (always through the portal) 2024-07-29 21:56:07 +02:00
f4f416eb16 Add RMG option "forcePortal" 2024-07-29 20:36:23 +02:00
4aa73b40c9 Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
63bcf7d83c Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
60a51e98de Remove usage of std::function from CRandomGenerator 2024-07-16 13:13:07 +00:00
6b8f94e6e7 Merge remote-tracking branch 'vcmi/master' into develop 2024-07-11 17:43:44 +00:00
5b99974d31 Route roads even further away from zone boundary 2024-07-04 14:22:22 +02:00
d7a4ea9f32 Draw random artifact as an atomic operation 2024-06-24 20:06:50 +02:00
02e429e973 Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
3bea383b59 Merge branch 'vcmi/beta' into 'vcmi/develop' 2024-06-21 12:58:36 +00:00
0ca41127a6 Merge pull request #4152 from IvanSavenko/rmg_fix
[1.5.3] Fix rmg generation if player list is not continuous
2024-06-18 12:06:40 +03:00
6d9f83a376 Protect lakes accessed from both zones with lock 2024-06-17 19:00:37 +02:00
2d0bd94135 Fix rmg generation if player list is not continuous 2024-06-17 13:35:58 +00:00
5d6470e527 Merge pull request #4025 from IvanSavenko/shared_ptr_lib
[1.6] Use shared_ptr for library entities
2024-05-30 19:14:06 +03:00