Implement passive relics and six-family defense towers
This commit is contained in:
@@ -339,6 +339,18 @@ namespace BumpCombat.Combat
|
||||
playerStats.CalculateDamage(rawDamage, damageTag),
|
||||
side,
|
||||
isOffsetHit);
|
||||
finalDamage = PassiveRelicController.Instance?.ApplyTrophyBumpDamage(
|
||||
finalDamage,
|
||||
!isDash && string.IsNullOrEmpty(sourceId) && !artifactColor.HasValue)
|
||||
?? finalDamage;
|
||||
float baseBumpDamage = !isDash
|
||||
&& string.IsNullOrEmpty(sourceId)
|
||||
&& !artifactColor.HasValue
|
||||
? finalDamage
|
||||
: BumpCombatMath.ApplySideMultiplier(
|
||||
playerStats.CalculateDamage(baseDamage, DamageTag.Collision),
|
||||
side,
|
||||
isOffsetHit);
|
||||
finalDamage = PassiveRelicController.Instance?.ApplyOrdinaryBumpDamageMultiplier(
|
||||
finalDamage,
|
||||
!isDash && string.IsNullOrEmpty(sourceId),
|
||||
@@ -494,7 +506,8 @@ namespace BumpCombat.Combat
|
||||
playerHealth?.TryTakeDamage(
|
||||
enemy.ContactDamage,
|
||||
enemyToPlayer,
|
||||
enemy.PlayerKnockbackDistance);
|
||||
enemy.PlayerKnockbackDistance,
|
||||
fromEnemyAttack: false);
|
||||
}
|
||||
else if (side != HitSide.Front
|
||||
&& !enemy.IsCrowd
|
||||
@@ -527,7 +540,8 @@ namespace BumpCombat.Combat
|
||||
launchSucceeded,
|
||||
artifactEffect.HasValue,
|
||||
artifactEffect.GetValueOrDefault(),
|
||||
artifactEffect.HasValue && isStrongDash));
|
||||
artifactEffect.HasValue && isStrongDash,
|
||||
baseBumpDamage));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user