一些修复和优化

This commit is contained in:
FloatGaming
2026-07-20 02:22:51 +08:00
parent 818fc9a02f
commit 0a0872c4f4
49 changed files with 2008 additions and 262 deletions
+1 -2
View File
@@ -793,7 +793,7 @@ public class eqpmtDesPrefab : MonoBehaviour
case equipmentSO.EquipmentSpecialEffectType.ScoreEfficiency: return "得分效率";
case equipmentSO.EquipmentSpecialEffectType.HitManaRecovery: return "hit法力恢复";
case equipmentSO.EquipmentSpecialEffectType.HitDamageMultiplier: return "hit伤害倍率";
case equipmentSO.EquipmentSpecialEffectType.HpLoseBase: return "hplosebase";
case equipmentSO.EquipmentSpecialEffectType.HpLoseBase: return "基本生命损失";
case equipmentSO.EquipmentSpecialEffectType.Skill: return "技能";
default: return effectType.ToString();
}
@@ -848,4 +848,3 @@ public class eqpmtDesPrefab : MonoBehaviour
}
}
+19
View File
@@ -68,6 +68,25 @@ public class equipItemPrefab : MonoBehaviour, IBeginDragHandler, IDragHandler, I
}
}
private void OnDisable()
{
if (spawnedDescription != null)
{
Destroy(spawnedDescription);
spawnedDescription = null;
}
if (dragGhost != null)
{
Destroy(dragGhost);
dragGhost = null;
dragGhostRect = null;
}
suppressNextClick = false;
isDraggingWithLeftButton = false;
}
public void Bind(equipmentSO so, Action<equipmentSO> onClick = null, Func<equipmentSO, bool> onRightClick = null)
{
itemSO = so;
+5
View File
@@ -107,6 +107,11 @@ public class equipmentSO : ScriptableObject
return maxLevelEffects != null && maxLevelEffects.Length > 0;
}
public bool IsMaxLevelEffectActive()
{
return level >= 20 && HasFinalDreamEffect();
}
public int GetTierStageIndex()
{
if (level >= 20)