|
|
|
@ -748,6 +748,7 @@ bool Player::Hurt(int damage,bool onUpperLevel,float z){ |
|
|
|
|
|
|
|
|
|
hurtRumbleTime="Player.Hurt Rumble Time"_F; |
|
|
|
|
Input::StartVibration(); |
|
|
|
|
Input::SetLightbar(PixelLerp(GREEN,DARK_RED,GetHealth()/GetMaxHealth())); |
|
|
|
|
|
|
|
|
|
if(lastHitTimer>0){ |
|
|
|
|
damageNumberPtr.get()->damage+=int(mod_dmg); |
|
|
|
@ -1016,6 +1017,7 @@ bool Player::Heal(int damage,bool suppressDamageNumber){ |
|
|
|
|
if(!suppressDamageNumber&&damage>0){ |
|
|
|
|
DAMAGENUMBER_LIST.push_back(std::make_shared<DamageNumber>(GetPos(),damage,true,HEALTH_GAIN)); |
|
|
|
|
} |
|
|
|
|
Input::SetLightbar(PixelLerp(GREEN,DARK_RED,GetHealth()/GetMaxHealth())); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|