Laserlicht
07659e3b25
fix mine handler for rmg
2025-09-29 01:01:54 +02:00
Laserlicht
5ae4db60e3
add mines support
2025-09-28 22:47:41 +02:00
godric3
13133ab02c
map editor: fix crash on adding random artifact
2025-07-04 23:11:24 +02:00
Michał Zaremba
aed832a99d
Fixes following review
2025-06-15 23:47:12 +02:00
Michał Zaremba
ebe746d0cf
Integrate EditorCallback into mapeditor
...
EditorCallback being set up with std::unique_ptr stored in MapController.
2025-06-15 23:47:08 +02:00
Michał Zaremba
507c305a5a
Fix crash on getAverageExperience when stack count was 0
2025-06-15 23:35:16 +02:00
Ivan Savenko
283adc37d7
Unit stack rebalancing rework
...
- CStackInstance::count is now private with accessor methods
- CStackInstance::experience renamed to totalExperience and now stores
total stack experience (multiplied by stack size) to reduce rounding
errors
- CStackInstance::totalExperience is now private with accessors methods
- stack experience is now automatically reallocated on stack management
- Removed buggy BulkSmartRebalanceStacks pack, that mostly duplicates
BulkRebalanceStacks
- Renamed BulkSmartSplitStack to BulkSplitAndRebalanceStack to drop
unclear "smart" in name
- Reworked split-and-rebalance logic to correctly reallocate stack
experience
2025-05-01 18:18:30 +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
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
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
645b95ba02
Renamed LibClasses * VLC to GameLibrary * LIBRARY
2025-02-21 16:54:56 +00:00
Ivan Savenko
2362c6da21
Fixes for multiple new issues from Sonar
2025-02-21 15:57:39 +00:00
Ivan Savenko
09db3e4bef
Reworked resource piles loading to fix wog maps with mithril
2025-01-25 11:40:21 +00:00
Ivan Savenko
f3c88b5bc7
Merge pull request #5208 from godric3/map-editor-improve-inspector
...
map editor: show edited values in inspector
2025-01-10 15:25:29 +02:00
godric3
4b7792075d
map editor: option to set random town same as player faction
2025-01-05 21:57:11 +01:00
godric3
15175a267c
map editor: show edited values in inspector
2025-01-05 17:19:51 +01:00
Laserlicht
c2bbcb7fce
rework translation
2025-01-04 22:39:28 +01:00
Laserlicht
0eea99247c
fixed broken translations
2025-01-04 18:50:24 +01:00
Laserlicht
b72f596832
missing tr
2025-01-04 18:40:24 +01:00
Laserlicht
69c6ffa417
fix translation
2025-01-04 18:32:35 +01:00
Laserlicht
4aed816b05
resource and playername translation
2025-01-04 16:26:57 +01:00
Laserlicht
bdf778a80a
mapeditor new translatable strings
2025-01-04 16:26:57 +01:00
godric3
896a148a7a
map editor: Add possibility to customize hero artifacts
2024-12-03 21:07:33 +01:00
godric3
fcf3679377
Initialize random dwelling added to map
2024-11-26 20:42:12 +01:00
godric3
9e9f118b09
another attempt of using CGHeroInstance::NO_PATROLLING in map editor
2024-10-29 21:41:42 +01:00
godric3
37f7ce0ad6
improve translation for patrol radius
2024-10-29 21:22:10 +01:00
godric3
ed087b7a5b
Use max ui32 value instead of -1 for NO_PATROLLING
2024-10-29 18:34:02 +01:00
godric3
da5bae301a
try to fix build, use plain -1 in place of CGHeroInstance::NO_PATROLLING
2024-10-28 22:46:48 +01:00
godric3
911961da46
try to fix build
2024-10-28 19:59:03 +01:00
godric3
a9e04428c8
Possibility to set hero patrol radius in map editor
2024-10-28 18:30:30 +01:00
Ivan Savenko
c2e49bd10a
Merge pull request #4821 from IvanSavenko/flaggable
...
Basic support for configurable flaggable objects
2024-10-27 21:19:22 +02:00
godric3
1246333350
Initialize town's possibleSpells only if hasn't been initialized already(for example when copying existing town)
2024-10-26 12:15:40 +02:00
Ivan Savenko
8a5ac73438
Basic support for configurable flaggable objects
...
Converted CGLighthouse class into FlaggableMapObject
Bonus provided by Lighthouse/Flaggable is now defined in config and is
accessible to mods.
2024-10-25 16:48:10 +00:00
Ivan Savenko
604e3b5c67
Merge pull request #4763 from IvanSavenko/herohandler_split
...
Split CHeroHandler.cpp/.h into 1 file per class
2024-10-14 19:05:48 +03:00
Ivan Savenko
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
Ivan Savenko
31095248ab
Removed typeName and subtypeName properties from CGObjectInstance
2024-10-13 13:05:50 +00:00
Ivan Savenko
e221cdccab
Fix initialization of hero type in map editor
2024-10-11 15:01:55 +00:00
Ivan Savenko
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
Ivan Savenko
a58e209cbd
Merge pull request #4490 from godric3/fix-campaign-hero-placeholder
...
Fix campaign hero placeholder
2024-09-09 23:39:20 +03:00
godric3
71ec25a4a5
make sonar happier
2024-08-24 13:34:22 +02:00
godric3
cda66c4196
attempt to fix hero placeholder while reading h3m
2024-08-22 17:09:23 +02:00
SoundSSGood
58bb2b58e3
IMarket suggestions
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com >
2024-08-20 18:49:48 +03:00
godric3
5578346dac
map editor: Allow to customize town events
2024-07-28 16:28:21 +02:00
godric3
7aca2efb35
map editor: Allow to customize town spells
2024-07-28 16:28:21 +02:00
Alexander Wilms
02e429e973
Fix typos using https://github.com/crate-ci/typos
...
Changes were reviewed manually
2024-06-24 03:47:19 +02:00