added "finish" button to dialogue UI, implementation of many, many trinket's effects, autot-argetting fix on death, added script for particles/player following

This commit is contained in:
2025-12-19 11:39:39 +01:00
parent 56f7fb4aaa
commit f624eeeeb6
14 changed files with 3062 additions and 1774 deletions

View File

@@ -61,7 +61,8 @@ namespace Beyond
[Description("Attack Speed Bonus")] AttackSpeedBonusPercent = 26,
[Description("Faith Regen Bonus")] FaithRegenBonusPercent = 27,
[Description("Thorn Damage Bonus")] ThornDamageBonusPercent = 28,
[Description("Stamina Bonus")] StaminaBonusPercent = 29
[Description("Stamina Bonus")] StaminaBonusPercent = 29,
[Description("Soulfire Damage Bonus")] SoulfireDamageBonusPercent = 30
}
public enum TrinketColor

View File

@@ -13,6 +13,9 @@ namespace Beyond
protected bool m_GodMode = false;
public bool m_ignoreTriggers = true;
[Header("Beyond Health Logic")]
// Default cap is 1.0 (100% HP)
public float healthRecoveryCap = 1f;
[Header("Beyond's Custom Settings")]
[Tooltip("When 'Use RootMotion' is checked, and this is true, the animation's root motion will control character rotation (for 8-way directional movement). If false, the script will rotate the character to face the input direction.")]
public bool useAnimationBasedRotation = false;
@@ -52,6 +55,18 @@ namespace Beyond
}
}
protected override bool canRecoverHealth
{
get
{
// Calculate the actual HP limit based on the cap
float limitHP = maxHealth * healthRecoveryCap;
// Add the check: currentHealth must be LESS than the Limit
return base.canRecoverHealth && (_currentHealth < limitHP);
}
}
public bool IsDashingOrRolling()
{
return m_isDashing || isRolling;