mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-02 15:45:32 +00:00
Issue #314: Moved ingredients and potions to a different type of record list
This commit is contained in:
parent
29b4a5e5f7
commit
182017b8e9
6 changed files with 15 additions and 7 deletions
|
@ -187,7 +187,7 @@ int main(int argc, char**argv)
|
|||
case REC_ALCH:
|
||||
{
|
||||
Potion p;
|
||||
p.load(esm);
|
||||
p.load(esm, id);
|
||||
if(quiet) break;
|
||||
cout << " Name: " << p.name << endl;
|
||||
break;
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
namespace ESM
|
||||
{
|
||||
void Potion::load(ESMReader &esm)
|
||||
void Potion::load(ESMReader &esm, const std::string& id)
|
||||
{
|
||||
mId = id;
|
||||
|
||||
model = esm.getHNString("MODL");
|
||||
icon = esm.getHNOString("TEXT"); // not ITEX here for some reason
|
||||
script = esm.getHNOString("SCRI");
|
||||
|
|
|
@ -24,7 +24,9 @@ struct Potion
|
|||
std::string name, model, icon, script;
|
||||
EffectList effects;
|
||||
|
||||
void load(ESMReader &esm);
|
||||
std::string mId;
|
||||
|
||||
void load(ESMReader &esm, const std::string& id);
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
namespace ESM
|
||||
{
|
||||
|
||||
void Ingredient::load(ESMReader &esm)
|
||||
void Ingredient::load(ESMReader &esm, const std::string& id)
|
||||
{
|
||||
mId = id;
|
||||
|
||||
model = esm.getHNString("MODL");
|
||||
name = esm.getHNString("FNAM");
|
||||
esm.getHNT(data, "IRDT", 56);
|
||||
|
|
|
@ -24,7 +24,9 @@ struct Ingredient
|
|||
IRDTstruct data;
|
||||
std::string name, model, icon, script;
|
||||
|
||||
void load(ESMReader &esm);
|
||||
std::string mId;
|
||||
|
||||
void load(ESMReader &esm, const std::string& id);
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace ESMS
|
|||
|
||||
// Each individual list
|
||||
RecListT<Activator> activators;
|
||||
RecListT<Potion> potions;
|
||||
RecListWithIDT<Potion> potions;
|
||||
RecListT<Apparatus> appas;
|
||||
RecListT<Armor> armors;
|
||||
RecListT<BodyPart> bodyParts;
|
||||
|
@ -47,7 +47,7 @@ namespace ESMS
|
|||
RecListT<Enchantment> enchants;
|
||||
RecListT<Faction> factions;
|
||||
RecListT<Global> globals;
|
||||
RecListT<Ingredient> ingreds;
|
||||
RecListWithIDT<Ingredient> ingreds;
|
||||
RecListT<CreatureLevList> creatureLists;
|
||||
RecListT<ItemLevList> itemLists;
|
||||
RecListT<Light> lights;
|
||||
|
|
Loading…
Reference in a new issue