狗屎Minimax坏我代码

This commit is contained in:
SoulliesOfficial
2026-04-18 13:57:19 -04:00
parent 41140a2017
commit 7379583165
473 changed files with 34480 additions and 8069 deletions

View File

@@ -47,6 +47,9 @@ namespace Cielonos.MainGame.Characters.Inventory
public BreakthroughType breakthroughType = BreakthroughType.Weak;
public DisruptionType disruptionType = DisruptionType.NormalExternal;
[Title("Tags")]
public List<string> tags = new List<string>();
[Title("Hit VFX")]
public bool useVFXDataHit;
[HideIf("useVFXDataHit")]
@@ -69,7 +72,7 @@ namespace Cielonos.MainGame.Characters.Inventory
{
bool isCritical = Random.value < GetFinalCriticalChance();
float finalDamage = isCritical ? GetFinalCriticalDamage() : GetFinalRegularDamage();
return new AttackValue(attacker, isCritical, finalDamage, attackType, disruptionType, breakthroughType);
return new AttackValue(attacker, isCritical, finalDamage, attackType, disruptionType, breakthroughType, tags);
}
public GameObject GetHitVFX()

View File

@@ -8,7 +8,8 @@ namespace Cielonos.MainGame.Characters.Inventory
[CreateAssetMenu(fileName = "AttributeData", menuName = "Cielonos/Items/AttributeData")]
public class AttributeData : SerializedScriptableObject
{
[Title("Item Attributes")] public SerializedDictionary<string, float> itemAttributes = new();
[Title("Item Attributes")]
public SerializedDictionary<string, float> itemAttributes = new();
[Title("Character Attribute Changes")] [DictionaryTitle("Numeric")]
public SerializedDictionary<string, float, CharacterAttributePair> chaAttrNumericChange = new();

View File

@@ -0,0 +1,19 @@
using Sirenix.OdinInspector;
using UnityEngine;
namespace Cielonos.MainGame.Characters.Inventory
{
[CreateAssetMenu(fileName = "OverloadData", menuName = "Cielonos/Items/OverloadData")]
public class OverloadData : SerializedScriptableObject
{
[Title("Overload Configuration")]
[LabelText("Trigger Threshold (Max Overload)")]
public float maxOverload = 200f;
[LabelText("Absorption Weight")]
public float overloadWeight = 1f;
[LabelText("Cooldown After Trigger (Seconds)")]
public float triggerCooldown = 8f;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: c3e872bf5164c1b449783ffe50bdab9c

View File

@@ -34,6 +34,11 @@ namespace Cielonos.MainGame.Characters.Inventory
{
if (upgradeMode == UpgradeMode.ManualList)
{
if (valueList.Count == 0)
{
return defaultUpgradeValue * level;
}
if (level < valueList.Count)
{
return valueList[level];