|
|
@ -459,7 +459,7 @@ void Materials::ReadAllMaterials(void)
|
|
|
|
this->ReadCreatureTypes();
|
|
|
|
this->ReadCreatureTypes();
|
|
|
|
this->ReadCreatureTypesEx();
|
|
|
|
this->ReadCreatureTypesEx();
|
|
|
|
this->ReadDescriptorColors();
|
|
|
|
this->ReadDescriptorColors();
|
|
|
|
//this->ReadOthers();
|
|
|
|
this->ReadOthers();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::string Materials::getDescription(t_material & mat)
|
|
|
|
std::string Materials::getDescription(t_material & mat)
|
|
|
@ -475,6 +475,8 @@ std::string Materials::getDescription(t_material & mat)
|
|
|
|
if (mat.subIndex>0x292)
|
|
|
|
if (mat.subIndex>0x292)
|
|
|
|
return "?";
|
|
|
|
return "?";
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (mat.subIndex>=this->other.size())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (mat.itemType == 0) {
|
|
|
|
if (mat.itemType == 0) {
|
|
|
|
if(mat.subIndex<0)
|
|
|
|
if(mat.subIndex<0)
|
|
|
@ -482,8 +484,6 @@ std::string Materials::getDescription(t_material & mat)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return this->inorganic[mat.subIndex].id;
|
|
|
|
return this->inorganic[mat.subIndex].id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (mat.subIndex>=this->other.size())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(mat.subIndex<0)
|
|
|
|
if(mat.subIndex<0)
|
|
|
|
return "any";
|
|
|
|
return "any";
|
|
|
|
if(mat.subIndex>=this->raceEx.size())
|
|
|
|
if(mat.subIndex>=this->raceEx.size())
|
|
|
|