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:
parent
45d637b26f
commit
b5cb0dcbad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user