Skip to content

Commit cc1e825

Browse files
committed
Revert "Wrong scale guard"
This reverts commit b4ae3cc.
1 parent b4ae3cc commit cc1e825

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/main/kotlin/com/lambda/util/combat/DamageUtils.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ object DamageUtils {
132132
*/
133133
fun World.scaleDamage(damage: Double): Double =
134134
when (difficulty) {
135+
Difficulty.PEACEFUL -> 0.0
135136
Difficulty.EASY -> min(damage / 2 + 1, damage)
136137
Difficulty.HARD -> damage * 3 / 2
137138
else -> damage

0 commit comments

Comments
 (0)