Tweak various interpolators.
This commit is contained in:
parent
0207a54da8
commit
5d443cf33c
9 changed files with 19 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue