|
|
@ -24,6 +24,7 @@ distribution.
|
|
|
|
|
|
|
|
|
|
|
|
#include "DFCommonInternal.h"
|
|
|
|
#include "DFCommonInternal.h"
|
|
|
|
#include "../private/APIPrivate.h"
|
|
|
|
#include "../private/APIPrivate.h"
|
|
|
|
|
|
|
|
#include "DFTypes.h"
|
|
|
|
#include "modules/Materials.h"
|
|
|
|
#include "modules/Materials.h"
|
|
|
|
#include "DFMemInfo.h"
|
|
|
|
#include "DFMemInfo.h"
|
|
|
|
#include "DFProcess.h"
|
|
|
|
#include "DFProcess.h"
|
|
|
@ -296,6 +297,7 @@ bool Materials::ReadCreatureTypesEx (void)
|
|
|
|
uint32_t sizeof_string = mem->getHexValue ("sizeof_string");
|
|
|
|
uint32_t sizeof_string = mem->getHexValue ("sizeof_string");
|
|
|
|
uint32_t caste_colormod_offset = mem->getOffset ("caste_color_modifiers");
|
|
|
|
uint32_t caste_colormod_offset = mem->getOffset ("caste_color_modifiers");
|
|
|
|
uint32_t caste_bodypart_offset = mem->getOffset ("caste_bodypart_vector");
|
|
|
|
uint32_t caste_bodypart_offset = mem->getOffset ("caste_bodypart_vector");
|
|
|
|
|
|
|
|
uint32_t caste_attributes_offset = mem->getOffset ("caste_attributes");
|
|
|
|
uint32_t bodypart_id_offset = mem->getOffset ("bodypart_id");
|
|
|
|
uint32_t bodypart_id_offset = mem->getOffset ("bodypart_id");
|
|
|
|
uint32_t bodypart_category_offset = mem->getOffset ("bodypart_category");
|
|
|
|
uint32_t bodypart_category_offset = mem->getOffset ("bodypart_category");
|
|
|
|
uint32_t bodypart_layers_offset = mem->getOffset ("bodypart_layers_vector");
|
|
|
|
uint32_t bodypart_layers_offset = mem->getOffset ("bodypart_layers_vector");
|
|
|
@ -353,6 +355,9 @@ bool Materials::ReadCreatureTypesEx (void)
|
|
|
|
caste.bodypart.push_back(part);
|
|
|
|
caste.bodypart.push_back(part);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p->read(caste_start + caste_attributes_offset, sizeof(t_attrib) * (6+11), (uint8_t *)&caste.strength);
|
|
|
|
|
|
|
|
|
|
|
|
mat.castes.push_back(caste);
|
|
|
|
mat.castes.push_back(caste);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mat.tile_character = p->readByte( p_races[i] + tile_offset );
|
|
|
|
mat.tile_character = p->readByte( p_races[i] + tile_offset );
|
|
|
|