|
|
|
@ -242,64 +242,7 @@ void printCreature(DFHack::API & DF, const DFHack::t_creature & creature)
|
|
|
|
|
{
|
|
|
|
|
for(unsigned int i = 0; i < mymat.size(); i++)
|
|
|
|
|
{
|
|
|
|
|
strcpy(maintype, "???");
|
|
|
|
|
switch(mymat[i].typeA)
|
|
|
|
|
{
|
|
|
|
|
case 0:
|
|
|
|
|
if(mymat[i].typeD>=0)
|
|
|
|
|
{
|
|
|
|
|
if(mymat[i].typeD<=Materials->inorganic.size())
|
|
|
|
|
sprintf(maintype, "%s bar", Materials->inorganic[mymat[i].typeD].id);
|
|
|
|
|
else
|
|
|
|
|
strcpy(maintype, "invalid metal bar");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
strcpy(maintype, "any metal bar");
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
strcpy(maintype, "cut gem");
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
strcpy(maintype, "block");
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
switch(mymat[i].typeC)
|
|
|
|
|
{
|
|
|
|
|
case 3: strcpy(maintype, "raw green glass"); break;
|
|
|
|
|
case 4: strcpy(maintype, "raw clear glass"); break;
|
|
|
|
|
case 5: strcpy(maintype, "raw crystal glass"); break;
|
|
|
|
|
default: strcpy(maintype, "raw gems"); break;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
strcpy(maintype, "raw stone");
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
strcpy(maintype, "wood log");
|
|
|
|
|
break;
|
|
|
|
|
case 24:
|
|
|
|
|
strcpy(maintype, "weapon?");
|
|
|
|
|
break;
|
|
|
|
|
case 26:
|
|
|
|
|
strcpy(maintype, "footwear");
|
|
|
|
|
break;
|
|
|
|
|
case 28:
|
|
|
|
|
strcpy(maintype, "headwear");
|
|
|
|
|
break;
|
|
|
|
|
case 54:
|
|
|
|
|
strcpy(maintype, "leather");
|
|
|
|
|
break;
|
|
|
|
|
case 57:
|
|
|
|
|
strcpy(maintype, "cloth");
|
|
|
|
|
break;
|
|
|
|
|
case 71:
|
|
|
|
|
strcpy(maintype, "food");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
strcpy(maintype, "unknown");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
printf("\t%s(%d)\t%d %d %d - %.8x\n", maintype, mymat[i].typeA, mymat[i].typeB, mymat[i].typeC, mymat[i].typeD, mymat[i].flags);
|
|
|
|
|
printf("\t%s(%d)\t%d %d %d - %.8x\n", Materials->getDescription(mymat[i]).c_str(), mymat[i].typeA, mymat[i].typeB, mymat[i].typeC, mymat[i].typeD, mymat[i].flags);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|