You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
607 B
C++
38 lines
607 B
C++
15 years ago
|
#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");
|
||
15 years ago
|
icon = esm.getHNOString("TEXT"); // not ITEX here for some reason
|
||
15 years ago
|
script = esm.getHNOString("SCRI");
|
||
|
name = esm.getHNOString("FNAM");
|
||
|
esm.getHNT(data, "ALDT", 12);
|
||
|
effects.load(esm);
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
#endif
|