mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
added test for actor class
This commit is contained in:
parent
11bc131417
commit
594d3cef4f
@ -197,7 +197,17 @@ namespace MWDialogue
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO check actor class
|
if (!info.clas.empty())
|
||||||
|
{
|
||||||
|
ESMS::LiveCellRef<ESM::NPC, MWWorld::RefData> *cellRef = actor.get<ESM::NPC>();
|
||||||
|
|
||||||
|
if (!cellRef)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (toLower (info.clas)!=toLower (cellRef->base->cls))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO check actor faction
|
// TODO check actor faction
|
||||||
// TODO check player faction
|
// TODO check player faction
|
||||||
|
|
||||||
@ -215,7 +225,6 @@ namespace MWDialogue
|
|||||||
|
|
||||||
std::cout
|
std::cout
|
||||||
<< "unchecked entries:" << std::endl
|
<< "unchecked entries:" << std::endl
|
||||||
<< " actor class: " << info.clas << std::endl
|
|
||||||
<< " actor faction: " << info.npcFaction << std::endl
|
<< " actor faction: " << info.npcFaction << std::endl
|
||||||
<< " player faction: " << info.pcFaction << std::endl
|
<< " player faction: " << info.pcFaction << std::endl
|
||||||
<< " DATAstruct" << std::endl;
|
<< " DATAstruct" << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user