1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

translation / 6 slots for big book

This commit is contained in:
Laserlicht
2025-07-08 10:11:17 +02:00
committed by GitHub
parent a37f918a15
commit c562aff7d2
4 changed files with 12 additions and 1 deletions

View File

@@ -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.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.",
"spellSchool.core.air.name" : "Air",
"spellSchool.core.earth.name" : "Earth",
"spellSchool.core.fire.name" : "Fire",
"spellSchool.core.water.name" : "Water"
}

View File

@@ -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.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",
"spellSchool.core.air.name" : "Luft",
"spellSchool.core.earth.name" : "Erde",
"spellSchool.core.fire.name" : "Feuer",
"spellSchool.core.water.name" : "Wasser"
}

View File

@@ -158,7 +158,7 @@ CSpellWindow::CSpellWindow(const CGHeroInstance * _myHero, CPlayerInterface * _m
for(const auto schoolId : LIBRARY->spellSchoolHandler->getAllObjects())
if(
!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)->getSchoolHeaderPath().empty()
)

View File

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