1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Merge pull request #6136 from Laserlicht/resource

Configurable resources
This commit is contained in:
Ivan Savenko
2025-09-28 21:51:10 +03:00
committed by GitHub
96 changed files with 674 additions and 314 deletions

View File

@@ -14,7 +14,7 @@ Difficulty configuration is located in [config/difficulty.json](../../config/dif
"pawn": //parameters for specific difficulty
{
//starting resources
"resources": { "wood" : 30, "mercury": 15, "ore": 30, "sulfur": 15, "crystal": 15, "gems": 15, "gold": 30000, "mithril": 0 },
"resources": { "wood" : 30, "mercury": 15, "ore": 30, "sulfur": 15, "crystal": 15, "gems": 15, "gold": 30000 },
//bonuses will be given to player globally
"globalBonuses": [],
//bonuses will be given to player every battle

View File

@@ -0,0 +1,20 @@
# Resource Format
```json
// Internal field for H3 resources. Do not use for mods
"index" : "",
// displayed name of the resource
"name" : "",
// Resource icons of varying size
"images" : {
// 20x18 resource icon
"small" : "",
// 32x32 resource icon
"medium" : "",
// 82x93 resource icon
"large" : ""
}
```

View File

@@ -568,7 +568,6 @@ Deprecated, please use primarySkill instead
- resource.gems
- resource.gold
- resource.mercury
- resource.mithril
- resource.ore
- resource.sulfur
- resource.wood

View File

@@ -31,7 +31,7 @@
// Type of mod, list of all possible values:
// "Translation", "Town", "Test", "Templates", "Spells", "Music", "Maps", "Sounds", "Skills", "Other", "Objects",
// "Mechanics", "Interface", "Heroes", "Graphical", "Expansion", "Creatures", "Compatibility", "Campaigns", "Artifacts", "AI"
// "Mechanics", "Interface", "Heroes", "Graphical", "Expansion", "Creatures", "Compatibility", "Campaigns", "Artifacts", "AI", "Resources"
//
// Some mod types have additional effects on your mod:
// Translation: mod of this type is only active if player uses base language of this mod. See "language" property.