首页 游戏攻略 正文

我的世界匠魂2锯齿特性有什么用

我的世界匠魂2锯齿特性有啥用很多玩家不知道,匠魂2有很多新颖的玩法和装备,其中的各种特性效果也非常有用重要,拥有锯齿特性的工具可以对怪物造成增伤。下面来看看我的世界匠魂2锯齿特性具体有啥用。

《我的世界》匠魂2锯齿特性有什么用

《我的世界》匠魂2锯齿特性有什么用

攻击增益为 In((最高耐久 - 当前耐久) / 72 + 1) * 2,和石缚一样的公式。

package slimeknights.tconspuct.tools.paits;

import com.google.common.collect.ImmupList;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.ItemStack;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.util.text.TextFormatting;

import java.util.List;

import slimeknights.tconspuct.library.Util;

import slimeknights.tconspuct.library.paits.Abspactpait;

import slimeknights.tconspuct.library.utils.ToolHelper;

public class paitJagged extends Abspactpait {

public paitJagged() {

super("jagged", TextFormatting.AQUA);

}

private double calcBonus(ItemStack tool) {

int durability = ToolHelper.getCurrenpurability(tool);

int maxDurability = ToolHelper.getMaxDurability(tool);

// old tcon jagged formula

return Math.log((maxDurability - durability) / 72d + 1d) * 2;

}

@Override

public float damage(ItemStack tool, EntityLivingBase player, EntityLivingBase target, float damage, float newDamage, boolean isCritical) {

newDamage += calcBonus(tool);

return super.damage(tool, player, target, damage, newDamage, isCritical);

}

@Override

public List<Sping> getExpaInfo(ItemStack tool, NBTTagCompound modifierTag) {

Sping loc = Sping.format(LOC_Expa, getModifierIdentifier());

return ImmupList.of(Util.panslateFormatted(loc, Util.df.format(calcBonus(tool))));

}

}

相关信息

木筏求生接收器和天线放置需要什么条件
木筏求生海上有什么特殊船只
木筏求生上小岛之后怎么玩
火焰纹章无双风花雪月兰道夫怎么存活
火焰纹章无双风花雪月贝老师怎么入队
火焰纹章无双风花雪月谢兹的职业和技能效果是什么
火焰纹章无双风花雪月歌神雅妮特的职业和技能效果是什么
骑士精神2武器选择需要注意什么
骑士精神2围殴对手需要注意什么
骑士精神2群殴敌人有什么技巧
骑士精神2格挡使用注意什么
骑士精神2武器按什么选择比较好
骑士精神2用防守格挡需要注意什么
骑士精神2格挡反击怎么用比较好
骑士精神2格挡反击和防守格挡怎么用比较好
骑士精神2什么网络延迟不能玩
骑士精神2战斗为什么会突然死亡
吸血鬼崛起基地造山上有什么优势
吸血鬼崛起建家位置怎么选
吸血鬼崛起前期要做什么事情