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.
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
15 years ago
|
|
|
#ifndef _ESM_ENCH_H
|
|
|
|
#define _ESM_ENCH_H
|
|
|
|
|
|
|
|
#include "esm_reader.hpp"
|
|
|
|
|
|
|
|
namespace ESM {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Enchantments
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct Enchantment
|
|
|
|
{
|
|
|
|
enum Type
|
|
|
|
{
|
|
|
|
CastOnce = 0,
|
|
|
|
WhenStrikes = 1,
|
|
|
|
WhenUsed = 2,
|
|
|
|
ConstantEffect = 3
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
15 years ago
|
|
|
};
|
|
|
|
|
|
|
|
struct ENDTstruct
|
|
|
|
{
|
|
|
|
int type;
|
|
|
|
int cost;
|
|
|
|
int charge;
|
|
|
|
int autocalc; // Guessing this is 1 if we are supposed to auto
|
|
|
|
// calculate
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
15 years ago
|
|
|
};
|
|
|
|
|
|
|
|
ENDTstruct data;
|
|
|
|
EffectList effects;
|
|
|
|
|
|
|
|
void load(ESMReader &esm)
|
|
|
|
{
|
|
|
|
esm.getHNT(data, "ENDT", 16);
|
|
|
|
effects.load(esm);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|