首页 游戏攻略 正文

我的世界匠魂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))));

}

}

相关信息

原神稻妻井底解谜怎么玩
原神干烧香鱼食谱在哪获得
神佑释放守护圣女的灵魂碎片获得攻略
DNF特工护石符文搭配
《魔兽世界》tbc带冲锋的宝宝有什么
神佑释放友好的信物任务攻略
原神枫原万叶特殊料理怎么获取
神佑释放恶之镜魅魔怎么打
DNF帕拉丁护石符文搭配
神佑释放切换区服方法
原神2.1新武器有哪些
原神2.1新地图是什么
DNF混沌魔灵护石符文搭配
DNF精灵骑士护石符文搭配
迷你世界巴啦啦小魔仙变身道具用法
DNF影舞者护石符文搭配
原神稻妻纪念品商店为什么买不了东西
迷你世界1.3.0更新内容介绍
神佑释放夏日火蜥蜴庆典怎么玩
原神稻妻杂货店在哪