很多更新,服务端连接,新UI和系统

This commit is contained in:
2026-04-17 20:09:41 +08:00
parent 85dfff28dd
commit e0bc0bbf08
910 changed files with 65191 additions and 1291 deletions
+5
View File
@@ -1676,6 +1676,10 @@ public class AllyCombatant : MonoBehaviour, ICombatant
int oldHP = currentHP;
float effective = amount * (1f - damageResistance);
int delta = Mathf.CeilToInt(effective);
if (SkillBuilder.Instance != null && SkillBuilder.Instance.TryPreventLethalDamage(this, delta))
{
return;
}
ModifyHP(-delta, true, true);
int actual = oldHP - currentHP;
@@ -1793,6 +1797,7 @@ public class AllyCombatant : MonoBehaviour, ICombatant
if (buff.scoreMultiplier != 1f) scoreEfficiency *= buff.scoreMultiplier;
if (buff.attackMultiplier != 1f) RecalculateAttackFromBuffs();
iBudeffPrefabController.Instance?.NotifyBuffApplied(this, buff);
SkillBuilder.Instance?.NotifyBuffApplied(slotIndex);
}
public void RemoveBuff(string buffId)