mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 12:23:53 +00:00
show the creature name for soul gems (if any)
This commit is contained in:
parent
c044fadcc3
commit
c2fdacc84f
1 changed files with 6 additions and 0 deletions
|
@ -132,6 +132,12 @@ namespace MWClass
|
||||||
info.caption = ref->base->name;
|
info.caption = ref->base->name;
|
||||||
info.icon = ref->base->icon;
|
info.icon = ref->base->icon;
|
||||||
|
|
||||||
|
if (ref->ref.soul != "")
|
||||||
|
{
|
||||||
|
const ESM::Creature *creature = environment.mWorld->getStore().creatures.search(ref->ref.soul);
|
||||||
|
info.caption += " (" + creature->name + ")";
|
||||||
|
}
|
||||||
|
|
||||||
std::string text;
|
std::string text;
|
||||||
|
|
||||||
if (ref->base->name == environment.mWorld->getStore().gameSettings.search("sGold")->str)
|
if (ref->base->name == environment.mWorld->getStore().gameSettings.search("sGold")->str)
|
||||||
|
|
Loading…
Reference in a new issue