mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 10:09:31 +00:00
remove ship impact log
This commit is contained in:
parent
02ca871c31
commit
2c87f013cf
@ -42,9 +42,9 @@ namespace QSB.DeathSync.Patches
|
||||
{
|
||||
if (PlayerState.IsInsideShip())
|
||||
{
|
||||
DebugLog.DebugWrite($"Ignore impact when inside ship.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var speed = Mathf.Clamp01((impact.speed - __instance.GetMinImpactSpeed()) / (__instance.GetMaxImpactSpeed() - __instance.GetMinImpactSpeed()));
|
||||
var tookDamage = __instance.ApplyInstantDamage(100f * speed, InstantDamageType.Impact);
|
||||
if (tookDamage && ____currentHealth <= 0f && !PlayerState.IsDead())
|
||||
|
Loading…
Reference in New Issue
Block a user