1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00
Commit Graph

19832 Commits

Author SHA1 Message Date
Ivan Savenko
aeb6c0be26 Support for replacement of individual entries in json lists
It is now possible for mods to modify json lists precisely, without full
replacement. Supported options:
- `append`: appends a single item to end of list
- `appendItems`: appends multiple items to end of list
- `insert@NUM`: inserts a single item *before* item NUM (item counting
is 0-based)
- `modify@NUM`: allows editing of a single item NUM (item counting is 0-
based)

Example - addition of a new item into town hall slots:
```json
"hallSlots":
{
	"modify@4" : {
		"append" : [ "dwellingLvl7B", "dwellingUpLvl7B" ]
	}
},
```
This would modify 4th element (last row) by appending new entry to the
end of last row

```json
{
	"modify@4" : {
		"insert@1" : [ "dwellingLvl5B", "dwellingUpLvl5B" ]
	}
},
```
This would add new slot not in the end of last row, but before 1st item
(between 5th and 6th dwellings)
2025-03-27 19:22:50 +00:00
George King
04bfe12b2b Added new mod types 2025-03-27 19:15:09 +01:00
Ivan Savenko
4cf0211600 Merge pull request #5587 from IvanSavenko/crashfixes_beta
Fixes for beta
2025-03-27 13:51:34 +02:00
Ivan Savenko
4df4438f59 Merge pull request #5588 from IvanSavenko/ci_fix
Fix CI failure in develop branch
2025-03-26 22:33:09 +02:00
Ivan Savenko
8771ecdf57 Workaround for crash due to static destruction order 2025-03-26 20:32:55 +00:00
Ivan Savenko
c6a541752e Fix unused variable on serialization 2025-03-26 19:55:56 +00:00
Ivan Savenko
7d3e59d7d3 Do not track clipboard on mobile systems to avoid permissions prompt 2025-03-26 16:00:31 +00:00
Ivan Savenko
8a0fed7b3a Temporarily(?) use weak_ptr to reduce ram usage increase during long
game sessions
2025-03-26 15:37:38 +00:00
Ivan Savenko
ded12f2df9 Disable auto-selection of xbrz on 32-bit systems 2025-03-26 15:37:38 +00:00
Ivan Savenko
9da598dcaf Fix possible crash on accessing content rect with nullptr surface 2025-03-26 15:37:38 +00:00
Ivan Savenko
1c96489721 Merge pull request #5569 from Laserlicht/configeditor
Editor for JSON config in launcher
2025-03-26 17:28:26 +02:00
Ivan Savenko
0197d226c9 Merge pull request #5565 from kdmcser/new_morale_luck
support setting dice molecule for rolling morale and luck
2025-03-26 16:53:13 +02:00
Ivan Savenko
3ca0c7661a Merge pull request #5584 from kambala-decapitator/macos-launcher-quit
[launcher] restore quitting launcher when starting game on Windows and macOS
2025-03-26 16:48:32 +02:00
Ivan Savenko
33f708c744 Merge pull request #5577 from GeorgeK1ng/skill_removal
Skill removal as reward
2025-03-26 16:47:37 +02:00
heroesiiifan
032d4bf112 Merge pull request #5574 from heroesiiifan/bela
add belarussian
2025-03-26 16:46:46 +02:00
Ivan Savenko
dfbe6d1965 Merge pull request #5572 from IvanSavenko/old_banks_remove
Remove deprecated support for banks in 1.5 format
2025-03-26 16:45:56 +02: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
kdmcser
5c1adc7df5 change config format 2025-03-26 00:18:45 +08:00
Andrey Filipenkov
602616f38f [launcher] restore quitting launcher when starting game on Windows and macOS 2025-03-25 09:57:47 +03:00
Laserlicht
a371501005 code review 2025-03-23 13:09:03 +01:00
George King
474e044caf Update lib/mapObjects/CGHeroInstance.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-03-22 18:25:30 +01:00
George King
cae84e0e77 Skill removal as reward 2025-03-22 17:16:46 +01:00
George King
1edd666ac1 Page identification when needed 2025-03-21 22:12:15 +01:00
George King
11774c279d Update AssetGenerator.cpp 2025-03-21 17:20:37 +01:00
George King
551c1021b9 Remove not needed variables 2025-03-21 17:16:25 +01:00
George King
a62c658224 Fix AB typo 2025-03-21 17:15:27 +01:00
George King
1996c77d49 Update client/mainmenu/CCampaignScreen.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-03-21 17:14:55 +01:00
George King
11c32c7a8c Update client/mainmenu/CCampaignScreen.cpp
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-03-21 17:14:24 +01:00
George King
38f18366ea Merge pull request #2 from vcmi/develop
Update branch
2025-03-21 14:33:49 +01:00
George King
5a69e21a0d Added new buttons images by Aph-ra 2025-03-21 14:33:00 +01:00
George King
e058f31dc8 Delete Mods/vcmi/Content/Sprites/campaigns/next.png 2025-03-21 14:32:24 +01:00
George King
a5ebfc13d8 Delete Mods/vcmi/Content/Sprites/campaigns/back.png 2025-03-21 14:32:15 +01:00
George King
e5f873fff2 Remove obsolete string 2025-03-21 14:31:02 +01:00
George King
b237ed7b7a Add files via upload 2025-03-21 14:20:36 +01:00
George King
1123d944fc Make new buttons moddable 2025-03-21 14:17:08 +01:00
George King
fada0b9d74 Change Chronicles campaigns screen shortcuts to "T" as Tarnum 2025-03-20 19:55:14 +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
Laserlicht
11459d9268 editor for JSON config in launcher 2025-03-19 19:03:28 +01:00
George King
4a0d8a2015 Merge pull request #1 from vcmi/develop
Update branch
2025-03-19 09:45:29 +01:00
Ivan Savenko
356eaae716 Merge pull request #5543 from kambala-decapitator/ios-portrait-mode
[iOS] enable portrait mode
2025-03-19 10:09:47 +02:00
Ivan Savenko
c73116a010 Reduce boost includes further 2025-03-19 08:03:56 +00:00
Ivan Savenko
7a3e1409d0 Remove old boost includes and defines 2025-03-19 08:03:56 +00:00
Ivan Savenko
2b286378e8 Remove logic for banks in 1.5 format 2025-03-19 08:02:39 +00:00
Ivan Savenko
8e1bd64799 Merge pull request #5570 from IvanSavenko/savecompat_150
Remove save compatibility with 1.5.X
2025-03-19 10:01:57 +02:00
Ivan Savenko
ca8dcf30ed Fix build 2025-03-18 11:56:22 +00:00
Ivan Savenko
eb3b51a6cf Remove save compatibility with 1.5.X 2025-03-18 11:35:15 +00:00
George King
02bae5ef21 Removed non needed part of code 2025-03-17 22:08:08 +01:00
George King
2e352dc233 Minimize changes 2025-03-17 22:01:08 +01:00
George King
784b5ba09e Minimize changes 2025-03-17 21:59:10 +01:00