mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 11:43:25 +00:00
show the creature name for soul gems (if any)
This commit is contained in:
parent
c044fadcc3
commit
c2fdacc84f
@ -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…
x
Reference in New Issue
Block a user