godric3
13133ab02c
map editor: fix crash on adding random artifact
2025-07-04 23:11:24 +02:00
godric3
a4767fb02a
map editor: Fix crash on editing random hero portrait + isDefault checkbox fix
2025-07-04 23:11:24 +02:00
godric3
04ae449821
map editor: Fix crash on adding random hero to map
2025-07-04 23:11:24 +02:00
godric3
61e5dbde20
map editor: fix resource reward in events
2025-02-02 17:03:58 +01:00
godric3
dea6a02e1c
Fix loading vcmp campaign with specific hero used in scenario bonuses
2025-01-18 14:50:34 +01:00
godric3
68335f51d3
map editor: extract setting display and tooltip text method to base delegate class
2025-01-07 18:53:49 +01:00
godric3
494777987d
map editor: improve building inspector texts
2025-01-06 19:47:23 +01:00
godric3
5cfd4c9fff
map editor: remove no longer needed check - getTown() return also randomTown
2025-01-06 19:44:25 +01: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
godric3
e189d6a737
map editor: fix crash when copying monster
2024-12-31 14:46:23 +01:00
godric3
31e4937a8c
Editing hero primary skill in map editor should not be influenced by artifacts
2024-12-08 17:49:41 +01:00
godric3
c1413b9368
remove chains of parent()->parent()
2024-12-07 22:31:08 +01:00
godric3
01bb73b0cc
fix imports
2024-12-03 21:28:21 +01:00
godric3
025ad58561
map editor: check hero artifacts during mod assessment
2024-12-03 21:17:04 +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
56efb82b2e
try to fix build, separate definition of NO_PATROLLING in CGHeroInstance
2024-10-28 21:49:25 +01:00
godric3
394812c02a
try to fix build, use inline constexpr
2024-10-28 20:58:36 +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
godric3
7e66bd4a90
Don't use separate versioning for map editor
2024-10-26 13:48:12 +02:00
godric3
152962354d
Don't paste objects that cannot be placed, show warning only if error occurred
2024-10-26 12:20:13 +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
godric3
87ebb22a55
map editor: fix reading town faction name for non random towns on h3m maps
2024-10-06 13:59:34 +02:00
godric3
d3db673df2
Fic build
2024-10-01 07:12:27 +02:00
godric3
d078c5ff2d
store ObjectInstanceID of objects to remove instead of their position
2024-09-30 20:44:40 +02:00
godric3
e50ba14bbe
Use exact position of object to remove + add object name to list of objects to remove
2024-09-30 19:17:21 +02:00
godric3
253af651cc
Add map editor ui to set objects to remove on timed event
2024-09-29 13:37:24 +02:00
godric3
1b4a8db4c5
Fix build
2024-09-22 00:11:21 +02:00
godric3
f4dc2dcd22
add missing serialization of spells in Limiter
2024-09-21 22:40:58 +02:00
godric3
f51ef2de4c
remove unused item data for artifact/spell/skill items and fix code style
2024-09-21 22:35:04 +02:00
godric3
e61ef459c6
Add all artifacts/spells/skills to quest widget lists and disable banned
...
Previous code added at most as many items as were in allowed lists, which caused to skip last items if some were banned.
2024-09-21 21:54:29 +02:00
godric3
514e81406d
extract PlayerColor to QString conversion to helper function
2024-09-17 20:57:05 +02:00
godric3
9baccdeeae
map editor: fix event players after conversion to std::set
2024-09-16 20:25:19 +02:00
godric3
8917c753bd
adjust town event handling after introducing 8th creature in town
2024-09-16 20:16:36 +02: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
godric3
786be6f253
map-editor: add hero placeholder with heroType defined to reservedCampaignHeroes on map save
2024-08-22 16:53:43 +02:00
godric3
355bf4ec3e
read reservedCampaignHeroes from vmaps
2024-08-22 16:52:35 +02:00
godric3
78aa376d50
introduce getModScope into AObjectTypeHandler
2024-08-12 13:58:03 +02:00
godric3
0ef42a1d3d
introduce modScope into ObstacleInfo
2024-08-12 13:57:27 +02:00
godric3
07a1e9b768
fix tests
2024-08-10 22:39:35 +02:00
godric3
c34956e912
introduce getModScope method toEntity class and subclasses
2024-08-10 16:08:04 +02:00
godric3
18e96171de
map editor: check hero and town spells during mod assessment
2024-08-07 21:29:21 +02:00
godric3
e782d3984f
fix some sonarcloud issues
2024-08-01 23:31:06 +02:00
godric3
27f83449f2
PR review fixes:
...
- change return of `getBuildingVariantsFromModel` to `QVariantList`
- change while to do-while where it makes sense
- moved constants outside of methods
- made building and resources name non editable
2024-08-01 22:36:01 +02:00
godric3
3fb3fef16b
use range constructor or QVariantList::fromStdList based on Qt version
2024-07-29 19:03:17 +02:00
godric3
2b9461ed6e
use custom roles instead of Qt::UserRole
2024-07-28 22:58:06 +02:00
godric3
d540ee1887
extract magic numbers to constants
2024-07-28 22:57:44 +02:00
godric3
67ab43526f
reduce code duplication
2024-07-28 16:28:21 +02:00
godric3
3d3f388fb8
rename TownEvent to TownEventDialog
2024-07-28 16:28:21 +02:00
godric3
fa3fef8a0f
change town events to vector + use getDefaultAllowed for spells
2024-07-28 16:28:21 +02:00
godric3
c212b1bf36
map editor: update translation + polish translation
2024-07-28 16:28:21 +02: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
godric3
db1a780030
map editor: fix unchecking when there is more then one child biulding
2024-07-28 16:28:21 +02:00
godric3
5c3c6d4baa
map editor: Add bulk actions for buildings in TownBulidingsWidget
2024-07-28 16:28:21 +02:00
godric3
4d1c8bb1b7
map editor: auto update checkboxes of base/upgrade buildings in TownBulidingsWidget
2024-07-28 16:28:21 +02:00
godric3
ddfc212a03
fix CGObjectInstance subTypeName to include mod id
2024-06-18 21:42:22 +02:00
godric3
c69150f984
fix victory/loss conditions widget
2024-05-26 22:50:26 +02:00
godric3
ddb641c0ef
map editor: fix seer visit mode input initialization
2024-05-13 23:00:13 +02:00
godric3
e7c03e3387
map editor: block remove visit info button if no info to remove
2024-05-13 22:40:26 +02:00
godric3
578800b3e3
map editor: fix prison hero selection
2024-05-11 21:54:24 +02:00
godric3
353435047f
use GameConstants::SPELL_LEVELS
2024-03-24 19:02:39 +01:00
godric3
acceca0139
map editor: Allow to customize hero spells
2024-03-24 10:01:20 +01:00
godric3
da91e90a7b
map editor: dont suggest neutral owner for hero
2024-02-29 23:08:21 +01:00
godric3
51386db347
map editor: fix owner selection
2024-02-29 22:11:28 +01:00
godric3
ec735aa959
Fix mine resource and productivity on map load, also made them non editable
2024-02-03 11:30:09 +01:00
godric3
b2cd92d937
Fix initializing map editor mod settings with more than one level of submods
2024-02-03 10:36:47 +01:00
godric3
ccc8d28043
Fix inspector using wrong editor for some values
2024-01-23 13:45:47 +02:00
godric3
dd004f0f6e
Fix inspector using wrong editor for some values
2024-01-21 21:07:06 +01:00
godric3
78b73961d1
Fix saving map settings (allowed abilities, spells, arts and heroes)
2024-01-09 21:52:11 +01:00
godric3
8650a8eea8
allow json schema references to use relative file path
2018-10-30 22:30:56 +01:00
godric3
1586868a5d
make source id optional in functions converting deprecated specialty bonuses
2018-10-30 20:58:22 +01:00
godric3
f9ac46576b
Add description for bonuses from hero specialty
2018-10-29 21:33:13 +01:00
godric3
c8ba3de821
Change skill bonuses description to use name instead of identifier
2018-10-29 20:53:13 +01:00
godric3
7ded9dbda8
Fix crash when generating random map with random number of players
2018-10-27 18:18:08 +02:00
godric3
ad20528a7b
fix osx build
2017-12-27 16:11:42 +03:00
godric3
e7ad517bb5
fix mxe build
2017-12-26 17:21:23 +03:00
godric3
76eed8682c
Allow mods to add music played during battles and ai turn
2017-11-11 21:16:11 +01:00
godric3
f03a0b1151
fix #2731 , now no morale, and no luck texts show properly
2017-10-05 17:13:49 +02:00
godric3
e3f0126e41
Removed unnecessary code, fix #2737
...
bonus value is added to desciption inside Bonus
2017-10-05 16:50:39 +02:00