1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-21 20:10:17 +02:00

Fixed some pseudocode

This commit is contained in:
Bituvo 2024-04-21 09:48:51 -04:00
parent 45d637b26f
commit b5cb0dcbad

View File

@ -2372,8 +2372,7 @@ Damage calculation:
damage = 0
for group in cap.damage_groups do
armor = object.armor_groups[group] or 0
damage = damage
+ cap.damage_groups[group]
damage += cap.damage_groups[group]
* limit(actual_interval / cap.full_punch_interval, 0.0, 1.0)
* (armor / 100.0)
end