Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 12:20:17 +00:00
|
|
|
#ifndef _ESM_ALCH_H
|
|
|
|
#define _ESM_ALCH_H
|
|
|
|
|
|
|
|
#include "esm_reader.hpp"
|
|
|
|
#include "defs.hpp"
|
|
|
|
|
|
|
|
namespace ESM {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Alchemy item (potions)
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct Potion
|
|
|
|
{
|
|
|
|
struct ALDTstruct
|
|
|
|
{
|
|
|
|
float weight;
|
|
|
|
int value;
|
|
|
|
int autoCalc;
|
|
|
|
};
|
|
|
|
ALDTstruct data;
|
|
|
|
|
|
|
|
std::string name, model, icon, script;
|
|
|
|
EffectList effects;
|
|
|
|
|
|
|
|
void load(ESMReader &esm)
|
|
|
|
{
|
|
|
|
model = esm.getHNString("MODL");
|
2010-06-16 17:51:59 +00:00
|
|
|
icon = esm.getHNOString("TEXT"); // not ITEX here for some reason
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 12:20:17 +00:00
|
|
|
script = esm.getHNOString("SCRI");
|
|
|
|
name = esm.getHNOString("FNAM");
|
|
|
|
esm.getHNT(data, "ALDT", 12);
|
|
|
|
effects.load(esm);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|