From b228433eaac2e218d41c0825334c6f5cd45dc27b Mon Sep 17 00:00:00 2001 From: Sveske Juice Date: Sun, 4 Feb 2024 02:48:24 -0800 Subject: [PATCH] fix blod regen --- Assets/Scripts/Player/HealthComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Player/HealthComponent.cs b/Assets/Scripts/Player/HealthComponent.cs index e110192..a041f54 100644 --- a/Assets/Scripts/Player/HealthComponent.cs +++ b/Assets/Scripts/Player/HealthComponent.cs @@ -87,7 +87,7 @@ public class HealthComponent : MonoBehaviour, ISquezeDamageReceiver if (bloodRegen) { PlayerInput playerInput = GetComponent(); - float bloodAccumalted = playerInput.PlayerNum == 1 ? BloodComputeShader.Instance.mop1Clean : BloodComputeShader.Instance.mop2Clean; + float bloodAccumalted = playerInput.PlayerNum == 0 ? BloodComputeShader.Instance.mop1Clean : BloodComputeShader.Instance.mop2Clean; TakeDamage(-bloodAccumalted / regen); }