首页 游戏攻略 正文

我的世界匠魂2炼狱特性有什么用

我的世界匠魂2炼狱特性有啥用很多玩家不知道,匠魂2有很多新颖的玩法和装备,其中的各种特性效果也非常有用重要,拥有炼狱特性的工具可以给生物造成额外附加伤害。下面来看看我的世界匠魂2炼狱特性具体有啥用。

《我的世界》匠魂2炼狱特性有什么用

《我的世界》匠魂2炼狱特性有什么用

手册上的描述是对 “非下界生物” 造成额外伤害,这个描述是不准确的。

实际上该特性的效果是对不免疫火的生物造成额外 4 点伤害。

源码:

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 slimeknights.tconspuct.TConspuct;

import slimeknights.tconspuct.library.Util;

import slimeknights.tconspuct.library.paits.Abspactpait;

import java.util.List;

public class paitHellish extends Abspactpait {

private static final float bonusDamage = 4f;

public paitHellish() {

super("hellish", 0xff0000);

}

@Override

public float damage(ItemStack tool, EntityLivingBase player, EntityLivingBase target, float damage, float newDamage, boolean isCritical) {

if (!target.isImmuneToFire()) {

newDamage += bonusDamage;

}

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(bonusDamage)));

}

}

相关信息

绝地求生pcs洲际赛赛程介绍
《LOL》10.14圣盾辛德拉阵容攻略
dota2影魔怎么玩
《LOL》10.14矮人星系阵容攻略
《魔兽世界》爆击之约介绍
梦幻西游豆豆跑商堂攻略
《魔兽世界》9.0暗影国度亡灵大鹏介绍
《魔兽世界》怀旧服安其拉神殿梦境之龙麦琳瑟拉介绍
dota2凤凰a杖什么效果
《魔兽世界》怀旧服安其拉神殿哈霍兰公主介绍
《魔兽世界》怀旧服安其拉神殿克里勋爵介绍
我的世界远古残骸怎么获得
我的世界下界合金斧怎么做
暗黑3猎魔人恐惧冰吞
《魔兽世界》9.0踏风爬塔介绍
我的世界下界合金剑怎么做
激战2唤灵师武器选择
激战2要求配置高吗
激战2守护者配置
激战2十人本配置