浏览代码

Fix inversion of full_punch_interval

Novatux 10 年之前
父节点
当前提交
3d6d66b181
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/tool.cpp

+ 1 - 1
src/tool.cpp

@@ -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;
 	}