فهرست منبع

show creature level

Laserlicht 1 سال پیش
والد
کامیت
6aa29ac8ee
3فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 1 0
      Mods/vcmi/config/vcmi/english.json
  2. 1 0
      Mods/vcmi/config/vcmi/german.json
  3. 3 0
      lib/mapObjects/CGCreature.cpp

+ 1 - 0
Mods/vcmi/config/vcmi/english.json

@@ -12,6 +12,7 @@
 	"vcmi.adventureMap.monsterThreat.levels.9"  : "Overpowering",
 	"vcmi.adventureMap.monsterThreat.levels.9"  : "Overpowering",
 	"vcmi.adventureMap.monsterThreat.levels.10" : "Deadly",
 	"vcmi.adventureMap.monsterThreat.levels.10" : "Deadly",
 	"vcmi.adventureMap.monsterThreat.levels.11" : "Impossible",
 	"vcmi.adventureMap.monsterThreat.levels.11" : "Impossible",
+	"vcmi.adventureMap.monsterLevel.title"     : "\n\nLevel: ",
 
 
 	"vcmi.adventureMap.confirmRestartGame"               : "Are you sure you want to restart the game?",
 	"vcmi.adventureMap.confirmRestartGame"               : "Are you sure you want to restart the game?",
 	"vcmi.adventureMap.noTownWithMarket"                 : "There are no available marketplaces!",
 	"vcmi.adventureMap.noTownWithMarket"                 : "There are no available marketplaces!",

+ 1 - 0
Mods/vcmi/config/vcmi/german.json

@@ -12,6 +12,7 @@
 	"vcmi.adventureMap.monsterThreat.levels.9"  : "Überwältigend",
 	"vcmi.adventureMap.monsterThreat.levels.9"  : "Überwältigend",
 	"vcmi.adventureMap.monsterThreat.levels.10" : "Tödlich",
 	"vcmi.adventureMap.monsterThreat.levels.10" : "Tödlich",
 	"vcmi.adventureMap.monsterThreat.levels.11" : "Unmöglich",
 	"vcmi.adventureMap.monsterThreat.levels.11" : "Unmöglich",
+	"vcmi.adventureMap.monsterLevel.title"     : "\n\nStufe: ",
 
 
 	"vcmi.adventureMap.confirmRestartGame"               : "Seid Ihr sicher, dass Ihr das Spiel neu starten wollt?",
 	"vcmi.adventureMap.confirmRestartGame"               : "Seid Ihr sicher, dass Ihr das Spiel neu starten wollt?",
 	"vcmi.adventureMap.noTownWithMarket"                 : "Kein Marktplatz verfügbar!",
 	"vcmi.adventureMap.noTownWithMarket"                 : "Kein Marktplatz verfügbar!",

+ 3 - 0
lib/mapObjects/CGCreature.cpp

@@ -101,6 +101,9 @@ std::string CGCreature::getPopupText(const CGHeroInstance * hero) const
 
 
 	if (settings["general"]["enableUiEnhancements"].Bool())
 	if (settings["general"]["enableUiEnhancements"].Bool())
 	{
 	{
+		hoverName += VLC->generaltexth->translate("vcmi.adventureMap.monsterLevel.title");
+		hoverName += std::to_string(VLC->creatures()->getById(getCreature())->getLevel());
+
 		hoverName += VLC->generaltexth->translate("vcmi.adventureMap.monsterThreat.title");
 		hoverName += VLC->generaltexth->translate("vcmi.adventureMap.monsterThreat.title");
 
 
 		int choice;
 		int choice;