Tweak various interpolators.

This commit is contained in:
Mari the Deer 2022-09-26 15:15:11 +02:00
commit 5d443cf33c
9 changed files with 19 additions and 19 deletions

View file

@ -523,9 +523,9 @@ extend Class SWWMHandler
hmax = thealth;
for ( int i=0; i<30; i++ ) oldhealth[i] = thealth;
cummdamage = 0;
if ( !ihealth ) ihealth = SmoothLinearValueInterpolator.Create(thealth,max(1,hmax/120));
if ( !ihealth ) ihealth = SmoothLinearValueInterpolator.Create(thealth,max(1,hmax/50));
else ihealth.Reset(thealth);
if ( !ihealthr ) ihealthr = SmoothDynamicValueInterpolator.Create(thealth,.5,1,100);
if ( !ihealthr ) ihealthr = SmoothDynamicValueInterpolator.Create(thealth,.5);
else ihealthr.Reset(thealth);
return;
}