All pastes #382510 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-05 18:23 UTC
rendered paste body
if currentHp < _hpDecCheck || currentHp > _hpIncCheck 
   int multiplicator = (int)((maxHp - (maxHp - currentHp)) / _hpInterval);
   _hpIncCheck = _hpInterval * multiplicator;
   _hpDecCheck = _hpIncCheck - _hpInterval;