mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 01:26:39 +00:00 
			
		
		
		
	Fix iLevelUpTotal not being used in the levelUp logic
This commit is contained in:
		
							parent
							
								
									55cd9b526c
								
							
						
					
					
						commit
						b5e0e45c78
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -264,13 +264,14 @@ int MWMechanics::NpcStats::getLevelProgress () const
 | 
			
		|||
 | 
			
		||||
void MWMechanics::NpcStats::levelUp()
 | 
			
		||||
{
 | 
			
		||||
    mLevelProgress -= 10;
 | 
			
		||||
    for (int i=0; i<ESM::Attribute::Length; ++i)
 | 
			
		||||
        mSkillIncreases[i] = 0;
 | 
			
		||||
 | 
			
		||||
    const MWWorld::Store<ESM::GameSetting> &gmst =
 | 
			
		||||
        MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>();
 | 
			
		||||
 | 
			
		||||
    mLevelProgress -= gmst.find("iLevelUpTotal")->getInt();
 | 
			
		||||
 | 
			
		||||
    for (int i=0; i<ESM::Attribute::Length; ++i)
 | 
			
		||||
        mSkillIncreases[i] = 0;
 | 
			
		||||
 | 
			
		||||
    const int endurance = getAttribute(ESM::Attribute::Endurance).getBase();
 | 
			
		||||
 | 
			
		||||
    // "When you gain a level, in addition to increasing three primary attributes, your Health
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue