球探足球比分

图片
您的位置: 单机 > 攻略 > 图文攻略 > 攻略详情

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

时间:2022-10-28 10:12:06
  • 来源:MC百科
  • 作者:yesu007
  • 编辑:Nick
0

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

}

}

9.3
已有7389人评分 您还未评分!
  • 类型:模拟经营
  • 发行:Mojang
  • 发售:2009-03-10(PC)
  • 开发:Markus Persson,Mojang
  • 语言:简中 | 英文
  • 平台:PC Switch PS4 PS3 Wiiu
  • 标签:沙盒探险像素图形

玩家点评 0人参与,0条评论)

收藏
违法和不良信息举报
分享:

热门评论

全部评论

3DM自运营游戏推荐 更多+