做不出来

This commit is contained in:
SoulliesOfficial
2026-06-30 01:48:58 -04:00
parent 9a9e48f8a5
commit ddd387ef35
132 changed files with 8945 additions and 2943 deletions

View File

@@ -1,4 +1,6 @@
using System;
using Cielonos.MainGame.Characters;
using SLSUtilities.General;
using UnityEngine;
namespace Cielonos.MainGame.Inventory.Collections
@@ -8,7 +10,7 @@ namespace Cielonos.MainGame.Inventory.Collections
/// - 提供与激情系统等级相关的属性加成。
/// - 加成效果根据激情等级逐级递增,最高可达 SSS 级别。
/// 具体效果如下:
/// - C级+4 能量回复,+0 攻击获得能量0% 攻击速度0% 暴击率0% 受到的最终伤害倍率
/// - C级+3 能量回复,+0 攻击获得能量0% 攻击速度0% 暴击率0% 受到的最终伤害倍率
/// - B级+2 能量回复,+0 攻击获得能量1% 攻击速度2% 暴击率0% 受到的最终伤害倍率
/// - A级+1 能量回复,+0 攻击获得能量2% 攻击速度4% 暴击率0% 受到的最终伤害倍率
/// - S级+0 能量回复,+1 攻击获得能量3% 攻击速度6% 暴击率5% 受到的最终伤害倍率
@@ -38,8 +40,8 @@ namespace Cielonos.MainGame.Inventory.Collections
public override void OnDiscarded()
{
base.OnDiscarded();
_passionSystem.OnLevelChanged -= Refresh;
base.OnDiscarded();
}
private void Refresh(int oldLevel, int newLevel)
@@ -51,6 +53,7 @@ namespace Cielonos.MainGame.Inventory.Collections
private void UpdateAttributes()
{
passiveAttributeSm.charAttrNumericChange[CharacterAttribute.EnergyRegeneration] = GetEnergyRegen();
passiveAttributeSm.charAttrNumericChange[CharacterAttribute.EnergyGainByAttack] = GetEnergyGainByAttack();
passiveAttributeSm.chaAttrPercentageChangeOfAccumulation[CharacterAttribute.AttackSpeed] = GetAttackSpeed();
passiveAttributeSm.charAttrNumericChange[CharacterAttribute.CriticalAttackChance] = GetCriticalAttackChance();
passiveAttributeSm.chaAttrPercentageChangeOfMultiplication[CharacterAttribute.FinalDamageReceivedMultiplier] = GetFinalDamageReceivedMultiplier();
@@ -63,7 +66,7 @@ namespace Cielonos.MainGame.Inventory.Collections
{
return PassionLevel switch
{
0 => 4.0f, // C-Rank
0 => 3.0f, // C-Rank
1 => 2.0f, // B-Rank
2 => 1.0f, // A-Rank
_ => 0.0f // S, SS, SSS (Ranks 3, 4, 5)