mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 09:53:54 +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.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;
|
||||
|
||||
if (ref->base->name == environment.mWorld->getStore().gameSettings.search("sGold")->str)
|
||||
|
|
Loading…
Reference in a new issue