简谈格挡增伤和ArmorBreaker原理
-
格挡伤害计算代码
if (!damageSrc.isUnblockable() && this.isBlocking() && damageAmount > 0.0F) {
damageAmount = (1.0F + damageAmount) * 0.5F;
}mc可以在一个伤害周期内造成多段伤害,每造成一段伤害就会减少一次护甲耐久度
如果玩家在一个伤害周期内造成两段伤害为b和c,a=b+c
那么格挡后的伤害 (1 + b) * 0.5 + (1 + c) * 0.5 > (a + 1) * 0.5
格挡时 空手暴击 伤害为 1.25
格挡时 空手无暴击+空手暴击 伤害为1.75
详情请看视频 -
here is your "armour-breaker" in scriptapi:
module.on('attack', function (e){
target = e.gettargetentity()
mc.theplayer.sendqueue.addtosendqueue(new c02packetuseitem(target, c02packetuseitem.action_attack))
} -
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!