mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 11:26:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			359 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			359 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "loadalch.hpp"
 | 
						|
 | 
						|
namespace 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");
 | 
						|
    name = esm.getHNOString("FNAM");
 | 
						|
    esm.getHNT(data, "ALDT", 12);
 | 
						|
    effects.load(esm);
 | 
						|
}
 | 
						|
}
 |