From 94fc2beffa35fc3b3249e281d7cb7459bed5d147 Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Sat, 8 Feb 2025 02:39:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=BB=D0=B1=D0=BE=D0=B5=D0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FleshCult/FleshCultSystem.Abilities.cs | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/Content.Server/_Sunrise/FleshCult/FleshCultSystem.Abilities.cs b/Content.Server/_Sunrise/FleshCult/FleshCultSystem.Abilities.cs index 213ed82797..650644123d 100644 --- a/Content.Server/_Sunrise/FleshCult/FleshCultSystem.Abilities.cs +++ b/Content.Server/_Sunrise/FleshCult/FleshCultSystem.Abilities.cs @@ -51,6 +51,53 @@ public sealed partial class FleshCultSystem SubscribeLocalEvent(OnStartup); } + + + private int MatchSaturation(int bloodVolume, bool hasAppearance) + { + if (hasAppearance) + { + return 80; + } + return bloodVolume switch + { + >= 300 => 60, + >= 150 => 40, + >= 100 => 20, + _ => 10 + }; + } + + private int MatchEvolutionPoint(int bloodVolume, bool hasAppearance) + { + if (hasAppearance) + { + return 30; + } + return bloodVolume switch + { + >= 300 => 20, + >= 150 => 15, + >= 100 => 10, + _ => 0 + }; + } + + private float MatchHealPoint(int bloodVolume, bool hasAppearance) + { + if (hasAppearance) + { + return 1; + } + return bloodVolume switch + { + >= 300 => 0.8f, + >= 150 => 0.6f, + >= 100 => 0.4f, + _ => 0.2f + }; + } + private void OnUnlockAbility(EntityUid uid, FleshAbilitiesComponent component, FleshCultistUnlockAbilityEvent args) {