mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
fcfe267fc9
Removed obsolete *.cpp files.
31 lines
630 B
C++
31 lines
630 B
C++
#include "loadlocks.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void Tool::load(ESMReader &esm)
|
|
{
|
|
model = esm.getHNString("MODL");
|
|
name = esm.getHNString("FNAM");
|
|
|
|
esm.getSubName();
|
|
NAME n = esm.retSubName();
|
|
// The data name varies, RIDT for repair items, LKDT for lock
|
|
// picks, PBDT for probes
|
|
|
|
esm.getHT(data, 16);
|
|
|
|
if (n == "RIDT")
|
|
{
|
|
// Swap t.data.quality and t.data.uses for repair items (sigh)
|
|
float tmp = *((float*) &data.uses);
|
|
data.uses = *((int*) &data.quality);
|
|
data.quality = tmp;
|
|
}
|
|
|
|
script = esm.getHNOString("SCRI");
|
|
icon = esm.getHNOString("ITEX");
|
|
}
|
|
|
|
}
|