Skip to content
Snippets Groups Projects
Commit 3d6d66b1 authored by Nathanaëlle Courant's avatar Nathanaëlle Courant
Browse files

Fix inversion of full_punch_interval

parent 567dea29
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment