mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 04:26:42 +00:00 
			
		
		
		
	Allow drain fatigue effect to reduce below zero
This commit is contained in:
		
							parent
							
								
									3a1b6dd354
								
							
						
					
					
						commit
						413bf127de
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -334,7 +334,7 @@ namespace MWMechanics
 | 
				
			||||||
            float currentDiff = creatureStats.getMagicEffects().get(ESM::MagicEffect::RestoreHealth+i).mMagnitude
 | 
					            float currentDiff = creatureStats.getMagicEffects().get(ESM::MagicEffect::RestoreHealth+i).mMagnitude
 | 
				
			||||||
                    - creatureStats.getMagicEffects().get(ESM::MagicEffect::DamageHealth+i).mMagnitude
 | 
					                    - creatureStats.getMagicEffects().get(ESM::MagicEffect::DamageHealth+i).mMagnitude
 | 
				
			||||||
                    - creatureStats.getMagicEffects().get(ESM::MagicEffect::AbsorbHealth+i).mMagnitude;
 | 
					                    - creatureStats.getMagicEffects().get(ESM::MagicEffect::AbsorbHealth+i).mMagnitude;
 | 
				
			||||||
            stat.setCurrent(stat.getCurrent() + currentDiff * duration);
 | 
					            stat.setCurrent(stat.getCurrent() + currentDiff * duration, i == 2);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            creatureStats.setDynamic(i, stat);
 | 
					            creatureStats.setDynamic(i, stat);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue