首页 游戏攻略 正文

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

}

}

相关信息

《无主之地3》四元主宰武器该死差点就干掉他们了红字效果介绍
荒野大镖客2奇克的藏宝图位置
《无主之地3》打孔枪武器这超出科学范畴了红字效果介绍
无主之地3怎么联机 多人组队模式网络优化办法
《怪物猎人:世界》制作大盾的男人10位置攻略
《怪物猎人:世界》制作大盾的男人09位置攻略
《无主之地3》莉尤达武器男性杀手红字效果介绍
《怪物猎人:世界》制作大盾的男人08位置攻略
《无主之地3》炼金术师武器天下没有免费的午餐红字效果介绍
《无主之地3》飞船外部景观一览 出飞船方法分享
《无主之地3》破坏者/万岁红字效果介绍
《怪物猎人:世界》制作大盾的男人07位置攻略
《无主之地3》新皇迫不及待上位红字效果介绍
《怪物猎人:世界》制作大盾的男人06位置攻略
《怪物猎人:世界》制作大盾的男人05位置攻略
《怪物猎人:世界》制作大盾的男人04位置攻略
《怪物猎人:世界》制作大盾的男人03位置攻略
《怪物猎人:世界》制作大盾的男人02位置攻略
《无主之地3》急冻自大熊狸武器我喜欢晨间爆米花的味道红字效果介绍
《怪物猎人:世界》制作大盾的男人01位置攻略