Many changes to Invector inventory system, added WIP UI system, added implementation for max stamina, moving speed, attack speed, attack power, thorns

This commit is contained in:
2025-12-05 15:10:52 +01:00
parent 53fa05e246
commit af7706bfac
21 changed files with 2352 additions and 3868 deletions

View File

@@ -135,7 +135,7 @@ namespace Beyond
maturity = Player.Instance.GetAttribute("Maturity");
brightness.OnValueChanged.AddListener(PlayBrightnessEffectOnValueChanged);
Player.Instance.onStatsUpdated += SetSlidersScales;
Player.Instance.UodatePlayerStatistics();
Player.Instance.UpdatePlayerStatistics();
// Player.Instance.brig
}
@@ -348,11 +348,12 @@ namespace Beyond
yield return StartCoroutine(FlashBrightnesOnce(finalColorGained, brighntessAnimTime));
}
public void SetSlidersScales(float value)
public void SetSlidersScales(float healthScale, float faithScale, float staminaScale)
{
staminaSlider.SetScale(value);
healthSlider.SetScale(value);
faithSlider.SetScale(value);
// Apply specific scales to specific sliders
staminaSlider.SetScale(staminaScale);
healthSlider.SetScale(healthScale);
faithSlider.SetScale(faithScale);
}
private void SetTextureOffset(Material material, float value)