|
|
@ -682,6 +682,14 @@ public class EnemyNode : MonoBehaviour,IEnemyObserver |
|
|
//ËÀÍöʱ
|
|
|
//ËÀÍöʱ
|
|
|
public void OnDeath() |
|
|
public void OnDeath() |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (EnemyState.abnormalCondition.TryGetValue(AbnormalCondition.posion,out Buff posionbuff)&& |
|
|
|
|
|
LegacyManager.Instance.relicClassNameList.Contains(Name.Legacy.LegacyNode_SnakeGall)) |
|
|
|
|
|
{ |
|
|
|
|
|
if (posionbuff.value > 10) |
|
|
|
|
|
{ |
|
|
|
|
|
Usermanager.Instance.recoverHp(1); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
if (EnemyState.abnormalCondition.ContainsKey(AbnormalCondition.boomAndPollute)) |
|
|
if (EnemyState.abnormalCondition.ContainsKey(AbnormalCondition.boomAndPollute)) |
|
|
{ |
|
|
{ |
|
|
boomAndPolluteCal(); |
|
|
boomAndPolluteCal(); |
|
|
@ -938,12 +946,12 @@ public class EnemyNode : MonoBehaviour,IEnemyObserver |
|
|
//firseedµÄÌØÊâ´¦Àí
|
|
|
//firseedµÄÌØÊâ´¦Àí
|
|
|
int damage = 15; |
|
|
int damage = 15; |
|
|
int checkVal = 10; |
|
|
int checkVal = 10; |
|
|
if (LegacyManager.Instance.relicClassNameList.Contains(Name.Legacy.LegacyNode_CharcoalFire)) |
|
|
if (LegacyManager.Instance.relicClassNameList.Contains(Name.Legacy.LegacyNode_VulcanHammer)) |
|
|
{ |
|
|
{ |
|
|
damage = 25; |
|
|
damage = 25; |
|
|
checkVal = 15; |
|
|
checkVal = 15; |
|
|
} |
|
|
} |
|
|
if (LegacyManager.Instance.relicClassNameList.Contains(Name.Legacy.LegacyNode_FireSpark)) |
|
|
if (LegacyManager.Instance.relicClassNameList.Contains(Name.Legacy.LegacyNode_AgnisTorch)) |
|
|
{ |
|
|
{ |
|
|
checkVal = 8; |
|
|
checkVal = 8; |
|
|
} |
|
|
} |
|
|
@ -982,6 +990,10 @@ public class EnemyNode : MonoBehaviour,IEnemyObserver |
|
|
int trueValue = nowValue + value; |
|
|
int trueValue = nowValue + value; |
|
|
if (trueValue >= 10) |
|
|
if (trueValue >= 10) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (LegacyManager.Instance.relicClassNameList.Contains(Name.Legacy.LegacyNode_EnchantedConch)) |
|
|
|
|
|
{ |
|
|
|
|
|
sufferAbnormalCondition(AbnormalCondition.vulnerable, 1); |
|
|
|
|
|
} |
|
|
sufferAbnormalCondition(AbnormalCondition.coma, 1); |
|
|
sufferAbnormalCondition(AbnormalCondition.coma, 1); |
|
|
EnemyState.abnormalCondition.Remove(condition); |
|
|
EnemyState.abnormalCondition.Remove(condition); |
|
|
|
|
|
|
|
|
|