mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 19:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
	
		
			607 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
	
		
			607 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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");
 | |
|     icon = esm.getHNOString("TEXT"); // not ITEX here for some reason
 | |
|     script = esm.getHNOString("SCRI");
 | |
|     name = esm.getHNOString("FNAM");
 | |
|     esm.getHNT(data, "ALDT", 12);
 | |
|     effects.load(esm);
 | |
|   }
 | |
| };
 | |
| }
 | |
| #endif
 |