mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix inversion of full_punch_interval
This commit is contained in:
parent
567dea29ee
commit
3d6d66b181
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ HitParams getHitParams(const ItemGroupList &armor_groups,
|
|||
for(std::map<std::string, s16>::const_iterator
|
||||
i = tp->damageGroups.begin(); i != tp->damageGroups.end(); i++){
|
||||
s16 armor = itemgroup_get(armor_groups, i->first);
|
||||
damage += i->second * rangelim(time_from_last_punch * full_punch_interval, 0.0, 1.0)
|
||||
damage += i->second * rangelim(time_from_last_punch / full_punch_interval, 0.0, 1.0)
|
||||
* armor / 100.0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue