首页 游戏攻略 正文

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

}

}

相关信息

《超猎都市》内核加速模式介绍
《刺客信条:英灵殿》处决动作及电影模式细节介绍
《刺客信条:英灵殿》UI界面变化分享
《超猎都市》皇冠冲刺模式介绍
《超猎都市》熔岩地面模式介绍
《MMORPG大亨2》技能的设计及发动规律分享
《MMORPG大亨2》愤怒值设定分享
《MMORPG大亨2》法力基本设定介绍
《超猎都市》军火走私贩模式介绍
《超猎都市》阵营大战模式介绍
《MMORPG大亨2》血量基本设定机制分享
《超猎都市》皇冠获胜机制介绍
《刺客信条:英灵殿》实机演示流出事件分析
《超猎都市》黑客全技能效果介绍
《超猎都市》打架专用技能组合分享
《影廊》游戏配置要求一览
《超猎都市》LYB专用技能搭配推荐
《觅长生》神通全词缀效果介绍
《龙腾世纪3:审判》图文全攻略 全DLC全支线任务攻略
《超猎都市》铁血战士流技能搭配介绍