首页 游戏攻略 正文

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

}

}

相关信息

问道金牛送喜活动介绍
问道金牛送喜抽抽抽活动介绍
问道2021经典服礼包
lol山海绘卷烬皮肤怎么样
《问道》2021新年活动大全
《魔兽世界》考尔曼哪里刷
《LOL》山海绘卷烬皮肤特效展示
《魔兽世界》腐烂的爪牙哪里刷
《魔兽世界》飞翼勇士在哪
《魔兽世界》刻符者在哪里
原神迷你仙灵选哪个好
炉石传说黑石剑圣怎么打
《原神》秘宝迷踪活动什么时候开
《原神》乌尔曼在哪里
炉石传说手机卡在门口进不去怎么办
炉石传说黑暗之门怎么打
《原神》寻宝仙灵在哪领
《原神》迷你仙灵怎么获得
《dnf》洞察之眼在哪进入
lol2021臻心之礼活动结束时间介绍