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

100 Commits

Author SHA1 Message Date
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
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
4b7792075d map editor: option to set random town same as player faction 2025-01-05 21:57:11 +01:00
15175a267c map editor: show edited values in inspector 2025-01-05 17:19:51 +01:00
c2bbcb7fce rework translation 2025-01-04 22:39:28 +01:00
0eea99247c fixed broken translations 2025-01-04 18:50:24 +01:00
b72f596832 missing tr 2025-01-04 18:40:24 +01:00
69c6ffa417 fix translation 2025-01-04 18:32:35 +01:00
4aed816b05 resource and playername translation 2025-01-04 16:26:57 +01:00
bdf778a80a mapeditor new translatable strings 2025-01-04 16:26:57 +01:00
896a148a7a map editor: Add possibility to customize hero artifacts 2024-12-03 21:07:33 +01:00
fcf3679377 Initialize random dwelling added to map 2024-11-26 20:42:12 +01:00
9e9f118b09 another attempt of using CGHeroInstance::NO_PATROLLING in map editor 2024-10-29 21:41:42 +01:00
37f7ce0ad6 improve translation for patrol radius 2024-10-29 21:22:10 +01:00
ed087b7a5b Use max ui32 value instead of -1 for NO_PATROLLING 2024-10-29 18:34:02 +01:00
da5bae301a try to fix build, use plain -1 in place of CGHeroInstance::NO_PATROLLING 2024-10-28 22:46:48 +01:00
911961da46 try to fix build 2024-10-28 19:59:03 +01:00
a9e04428c8 Possibility to set hero patrol radius in map editor 2024-10-28 18:30:30 +01:00
c2e49bd10a Merge pull request #4821 from IvanSavenko/flaggable
Basic support for configurable flaggable objects
2024-10-27 21:19:22 +02:00
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
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
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
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
31095248ab Removed typeName and subtypeName properties from CGObjectInstance 2024-10-13 13:05:50 +00:00
e221cdccab Fix initialization of hero type in map editor 2024-10-11 15:01:55 +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
a58e209cbd Merge pull request #4490 from godric3/fix-campaign-hero-placeholder
Fix campaign hero placeholder
2024-09-09 23:39:20 +03:00
71ec25a4a5 make sonar happier 2024-08-24 13:34:22 +02:00
cda66c4196 attempt to fix hero placeholder while reading h3m 2024-08-22 17:09:23 +02:00
58bb2b58e3 IMarket suggestions
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2024-08-20 18:49:48 +03:00
5578346dac map editor: Allow to customize town events 2024-07-28 16:28:21 +02:00
7aca2efb35 map editor: Allow to customize town spells 2024-07-28 16:28:21 +02:00
02e429e973 Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
7461df161c lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
578800b3e3 map editor: fix prison hero selection 2024-05-11 21:54:24 +02:00
acceca0139 map editor: Allow to customize hero spells 2024-03-24 10:01:20 +01:00
da91e90a7b map editor: dont suggest neutral owner for hero 2024-02-29 23:08:21 +01:00
51386db347 map editor: fix owner selection 2024-02-29 22:11:28 +01:00
ec735aa959 Fix mine resource and productivity on map load, also made them non editable 2024-02-03 11:30:09 +01:00
d5c4478816 Remove most of non-const access to VLC entities 2024-01-19 13:54:49 +02:00
10e110320b Remove std::vector<boo> from Json Serializer, simplify affected code 2023-11-15 15:55:18 +02:00
b42f073f0c Stabilization 2023-11-01 18:26:57 +02:00
7a09646009 Cleaned up dwelling randomization 2023-11-01 14:43:20 +02:00
a6db82f6f1 mapeditor/inspector/inspector.cpp: Directly assign to the "std::optional", without dereferencing it.
Assigning to an optional should directly target the optiona
2023-10-28 10:16:33 +00:00
b6b75beb29 Fixes for map editor
1) fix owner serialization for hero placeholder
2) fix roads/rivers layout
3) fix lasso
2023-10-24 23:58:26 +02:00
d03b75696a Merge pull request #3067 from Nordsoft91/editor-improvements-1.4
Add hero placeholder properties
2023-10-19 22:23:58 +02:00
15e45f966c typos found by lintian 2023-10-17 22:06:08 +02:00
f6d7755c6a Add hero placeholder properties 2023-10-16 22:24:12 +02:00