Laserlicht
2625b44979
add error
2025-09-29 02:19:35 +02:00
Laserlicht
07659e3b25
fix mine handler for rmg
2025-09-29 01:01:54 +02:00
Laserlicht
6c6350ad8b
code review
2025-09-21 22:07:57 +02:00
Laserlicht
3ec731ef6e
json validation & mithril remove
2025-09-16 01:52:47 +02:00
Laserlicht
d808bd6412
introduce toResourceType
2025-09-15 00:08:18 +02:00
Laserlicht
f034584dfa
replace RESOURCE_QUANTITY where possible
2025-09-14 21:12:51 +02:00
Laserlicht
a54a1f8b8d
replace RESOURCE_NAMES where possible
2025-09-14 20:43:53 +02:00
Laserlicht
bf0fcaadb7
fix rmg underground
2025-08-29 21:22:45 +02:00
Ivan Savenko
118029b2ba
Merge pull request #5964 from Laserlicht/levels
...
multilevel support
2025-08-14 11:03:42 +03:00
Tomasz Zieliński
5ecaf5d321
Default all roads to random (optional)
2025-08-07 16:03:11 +02:00
Tomasz Zieliński
f375259c78
Final implementation
2025-08-01 21:41:47 +02:00
Tomasz Zieliński
07a6474117
Move road randomizer to separate file
2025-08-01 20:43:40 +02:00
Tomasz Zieliński
3bfd714d3f
Merge branch 'develop' into randomize_optional_roads
2025-08-01 20:05:03 +02:00
Laserlicht
ecfe09f6b1
multilevel support
2025-08-01 02:21:44 +02:00
Ivan Savenko
7fcb0246fb
Merge pull request #5909 from Laserlicht/template_editor_object
...
Template editor - object & townHints selection
2025-07-18 23:08:53 +03:00
Ivan Savenko
f58d08e563
Support for banned game entities in random map templates
...
The following entities can now be banned in a random map template
definition:
- Hero
- Artifact
- Spell
- Secondary skill
The ban follows the same rules as banning via the map settings in the
map editor.
It is also now possible to bypass dependencies and access identifiers
from mods that are not dependencies when defining:
- Banned entities in random map templates
- the chance of a hero class appearing in a tavern of a specific faction
- the chance of a spell appearing in a mage guild of a specific faction
- the chance of a hero class receiving a secondary skill
For this to work, the identifier must be specified in full, e.g.
`modName:objectName`. If the specified mod is not active, the game will
silently ignore this entry.
This behaviour is not affected by mod load order. It is possible to use
this format to access a mod that has not yet been loaded.
2025-07-14 00:18:11 +03:00
Ivan Savenko
e12765dca0
Fix sonar warnings, convert spaces -> tabs
2025-07-09 17:52:51 +03:00
Laserlicht
9c101af161
object selector
2025-07-07 21:17:04 +02:00
Ivan Savenko
8721bdd728
Split CCreatureSet file on .h/.cpp per class basis
2025-07-07 19:12:31 +03:00
Laserlicht
5aa5eff285
code review
2025-06-19 00:38:00 +02:00
Laserlicht
c2c936276c
code review: renaming
2025-06-18 23:38:48 +02:00
Laserlicht
ddd422a075
template editor
2025-06-08 15:20:49 +02:00
Ivan Savenko
4d4da0454f
map objects hierarchy now uses IGameInfoCallback
2025-05-14 18:33:20 +03:00
Ivan Savenko
6f20235d07
Merge CPrivilegedInfoCallback into CGameInfoCallback
2025-05-14 13:42:20 +03:00
Ivan Savenko
716da918f8
Completely remove IGameCallback class
...
- CClient now inherits directly from CPrivilegedInfoCallback, like
IGameCallback did before. However CClient no longer needs dummy
implementation of IGameEventCallback
- CGObjectInstance hierarchy now uses CPrivilegedInfoCallback for
callback. Actual events can only be emitted in calls that receive
IGameEventCallback pointer, e.g. heroVisit
- CGameHandler now inherits directly from both CPrivilegedInfoCallback
and IGameEventCallback as it did before via IGameCallback
2025-05-14 13:39:41 +03:00
Ivan Savenko
f70ad2c15b
Reorganized artifact-related classes
...
- files now generally contain only 1 class (except for tightly coupled
classes)
- files are now located in lib/entities/artifact directory
- removed excessive includes
No changes to functionality
2025-04-29 13:29:08 +03:00
Ivan Savenko
829739da24
Reduce usage of implicit conversions to int
2025-04-27 14:57:31 +03:00
Ivan Savenko
93b18ee94b
Fix some issues detected by Sonar & code review, fix build
2025-04-27 14:57:31 +03:00
Ivan Savenko
63d00b080e
Removed pointer to army from StackInstance
2025-04-27 14:57:30 +03:00
Ivan Savenko
16a06179cf
Use ArtifactInstanceID in CGArtifact
2025-04-27 14:57:30 +03:00
Ivan Savenko
ab11d2b075
Remove quests from CMap, now solely owned by quest objects
2025-04-27 14:57:30 +03:00
Ivan Savenko
c02a8a84fd
Stacks of armed instance are now unique_ptr
2025-04-27 14:57:30 +03:00
Ivan Savenko
84cf7b052d
Map objects now use shared_ptr (rmg)
2025-04-27 14:57:30 +03:00
Ivan Savenko
2ca1748e96
Artifact instances are now owned solely by CMap
2025-04-27 14:57:30 +03:00
Ivan Savenko
797646cc05
Quests in map now use shared_ptr instead of const ptr
2025-04-27 14:57:30 +03:00
Ivan Savenko
c6a541752e
Fix unused variable on serialization
2025-03-26 19:55:56 +00:00
Ivan Savenko
bc07fa2fa3
Merge pull request #5571 from IvanSavenko/boost_old_remove
...
Remove old boost includes and defines
2025-03-26 16:45:39 +02:00
Tomasz Zieliński
85f019b136
Ensure all trees are connected together
2025-03-20 21:37:58 +01:00
Tomasz Zieliński
863e469b4d
+ Remove roads from wide connections BEFORE graph is generated
...
+ Explain all requirements in a commeny
2025-03-20 21:37:14 +01:00
Tomasz Zieliński
237f6ebb1c
Make sure that connection road is set to same value for both zones
2025-03-20 17:30:37 +01:00
DjWarmonger
a3d1159512
Merge pull request #5550 from vcmi/non_euclidean_roads
...
Curved roads
2025-03-20 16:24:00 +01:00
DjWarmonger
1e9f65693f
Merge pull request #5523 from vcmi/town_hints
...
Town hints
2025-03-20 16:23:44 +01:00
Tomasz Zieliński
6327e268f3
Simplified and correct algorithm
2025-03-19 19:43:03 +01:00
Tomasz Zieliński
f4233aa2fd
First draft of new algorithm that deliberately links zones with towns
2025-03-19 17:25:45 +01:00
Ivan Savenko
7a3e1409d0
Remove old boost includes and defines
2025-03-19 08:03:56 +00:00
Tomasz Zieliński
2d3892845b
Remove multiple connections without checking graph
2025-03-14 20:28:27 +01:00
Tomasz Zieliński
5d410a4243
Use vstd::contains
2025-03-14 20:14:57 +01:00
Tomasz Zieliński
d94b2f05eb
Handle multiple connections between pair of zones
2025-03-14 20:07:25 +01:00
Tomasz Zieliński
7814d4ae8e
Clenaup
2025-03-14 15:05:24 +01:00
Tomasz Zieliński
11ecb05bca
Fix connections not getting actually updated
2025-03-14 14:37:33 +01:00