From 68a610efb26a2e4f8581237f6f38249331ee8d79 Mon Sep 17 00:00:00 2001 From: dastrukar <3derid@gmail.com> Date: Sat, 21 Oct 2023 14:41:27 +0800 Subject: [PATCH] medical: Clamp visual wound alpha --- medical/module/medical_wound.zsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medical/module/medical_wound.zsc b/medical/module/medical_wound.zsc index 4e30de3..8b58b2c 100644 --- a/medical/module/medical_wound.zsc +++ b/medical/module/medical_wound.zsc @@ -261,7 +261,7 @@ extend class UaS_Wound { BP.Flags = SPF_REPLACE; BP.FadeStep = 0; BP.Style = STYLE_Normal; - BP.StartAlpha = max((depth/width), 0.3); + BP.StartAlpha = min(1, max((depth/width), 0.3)); level.SpawnParticle(BP); // Do appearing and drops running down body