浏览代码

translation / 6 slots for big book

Laserlicht 3 月之前
父节点
当前提交
c562aff7d2

+ 5 - 0
Mods/vcmi/Content/config/english.json

@@ -800,4 +800,9 @@
 	"spell.core.thunderbolt.description.none" : "{Thunderbolt}\n\nWhen the stack attacks, the there is a 20% chance that a lightning strike occurs before the enemy has a chance to retaliate. If if occurs, the lightning strike deals damage equal to ten times the number of attacking Thunderbirds",
 	"spell.core.thunderbolt.description.none" : "{Thunderbolt}\n\nWhen the stack attacks, the there is a 20% chance that a lightning strike occurs before the enemy has a chance to retaliate. If if occurs, the lightning strike deals damage equal to ten times the number of attacking Thunderbirds",
 	"spell.core.dispelHelpful.description.none" : "{Dispel Helpful Spells}\n\nRemoves all spell effects from the targeted unit.",
 	"spell.core.dispelHelpful.description.none" : "{Dispel Helpful Spells}\n\nRemoves all spell effects from the targeted unit.",
 	"spell.core.acidBreath.description.none" : "{Acid breath}\n\nThe breath reduces the target stack's defense by 3, and has 20% chance to cause additional damage amount of 25 points per attacking unit.",
 	"spell.core.acidBreath.description.none" : "{Acid breath}\n\nThe breath reduces the target stack's defense by 3, and has 20% chance to cause additional damage amount of 25 points per attacking unit.",
+
+	"spellSchool.core.air.name" : "Air",
+	"spellSchool.core.earth.name" : "Earth",
+	"spellSchool.core.fire.name" : "Fire",
+	"spellSchool.core.water.name" : "Water"
 }
 }

+ 5 - 0
Mods/vcmi/Content/config/german.json

@@ -799,4 +799,9 @@
 	"spell.core.thunderbolt.description.none" : "{Donnerblitz}\n\nWenn der Stapel angreift, besteht eine 20-prozentige Chance, dass ein Blitzschlag erfolgt, bevor der Feind die Chance hat, zurückzuschlagen. Tritt dieser Fall ein, verursacht der Blitzschlag Schaden in Höhe der zehnfachen Anzahl der angreifenden Donnervögel",
 	"spell.core.thunderbolt.description.none" : "{Donnerblitz}\n\nWenn der Stapel angreift, besteht eine 20-prozentige Chance, dass ein Blitzschlag erfolgt, bevor der Feind die Chance hat, zurückzuschlagen. Tritt dieser Fall ein, verursacht der Blitzschlag Schaden in Höhe der zehnfachen Anzahl der angreifenden Donnervögel",
 	"spell.core.dispelHelpful.description.none" : "{Hilfreiche Zaubersprüche bannen}\n\nEntfernt alle Zaubereffekte von der anvisierten Einheit",
 	"spell.core.dispelHelpful.description.none" : "{Hilfreiche Zaubersprüche bannen}\n\nEntfernt alle Zaubereffekte von der anvisierten Einheit",
 	"spell.core.acidBreath.description.none" : "{Saurer Atem}\n\nDer Atem reduziert die Verteidigung des Zielstapels um 3 und hat eine 20%ige Chance, zusätzlichen Schaden in Höhe von 25 Punkten pro angreifender Einheit zu verursachen",
 	"spell.core.acidBreath.description.none" : "{Saurer Atem}\n\nDer Atem reduziert die Verteidigung des Zielstapels um 3 und hat eine 20%ige Chance, zusätzlichen Schaden in Höhe von 25 Punkten pro angreifender Einheit zu verursachen",
+
+	"spellSchool.core.air.name" : "Luft",
+	"spellSchool.core.earth.name" : "Erde",
+	"spellSchool.core.fire.name" : "Feuer",
+	"spellSchool.core.water.name" : "Wasser"
 }
 }

+ 1 - 1
client/windows/CSpellWindow.cpp

@@ -158,7 +158,7 @@ CSpellWindow::CSpellWindow(const CGHeroInstance * _myHero, CPlayerInterface * _m
 	for(const auto schoolId : LIBRARY->spellSchoolHandler->getAllObjects())
 	for(const auto schoolId : LIBRARY->spellSchoolHandler->getAllObjects())
 		if(
 		if(
 			!isLegacySpellSchool(schoolId) &&
 			!isLegacySpellSchool(schoolId) &&
-			customSpellSchools.size() < MAX_CUSTOM_SPELL_SCHOOLS &&
+			customSpellSchools.size() < (isBigSpellbook ? MAX_CUSTOM_SPELL_SCHOOLS_BIG : MAX_CUSTOM_SPELL_SCHOOLS) &&
 			!LIBRARY->spellSchoolHandler->getById(schoolId)->getSchoolBookmarkPath().empty() &&
 			!LIBRARY->spellSchoolHandler->getById(schoolId)->getSchoolBookmarkPath().empty() &&
 			!LIBRARY->spellSchoolHandler->getById(schoolId)->getSchoolHeaderPath().empty()
 			!LIBRARY->spellSchoolHandler->getById(schoolId)->getSchoolHeaderPath().empty()
 		)
 		)

+ 1 - 0
client/windows/CSpellWindow.h

@@ -106,6 +106,7 @@ class CSpellWindow : public CWindowObject, public IVideoHolder
 	std::map<SpellSchool, int> sitesPerTabBattle;
 	std::map<SpellSchool, int> sitesPerTabBattle;
 
 
 	const int MAX_CUSTOM_SPELL_SCHOOLS = 5;
 	const int MAX_CUSTOM_SPELL_SCHOOLS = 5;
+	const int MAX_CUSTOM_SPELL_SCHOOLS_BIG = 6;
 	std::vector<SpellSchool> customSpellSchools;
 	std::vector<SpellSchool> customSpellSchools;
 
 
 	bool battleSpellsOnly; //if true, only battle spells are displayed; if false, only adventure map spells are displayed
 	bool battleSpellsOnly; //if true, only battle spells are displayed; if false, only adventure map spells are displayed