your current location:首页 > news>1.18.

1.18.

2024-12-10 17:54:10|Myriagame |source:minecraft skins

This tutorial is set by the author's setting without permission.

The divine module has modified the calculation formula that protects the enchanting and armor values. The original calculation formula is no longer applicable. After viewing the original code, the formula is listed as follows:

(The CLAMP function is the first number, the lower limit is the second number, the upper limit is the third number, and the comma is separated each number.)

1. About protective enchantment

Each level of protection in the original version is 1 protection point.In addition to the upper limit of the original 20 -point protection point, the demeanor module moves. Under the new calculation formula, the number of protective points at 20 points is 80%damage, and the 65 -point protection point is 95%damage reduction.The number of protective points at the first 20 points provides 4%damage reduction per point, and the number of protective points of 45 points is 0.33%reduction of injury reduction per point.

C = CLAMP (number of protection points, 0, 20).

R = CLAMP (the number of protection points -20, 0, 45).

F = 1 -C /25.

If R> 0, F = F -0.2 * R / 60.

Therefore, the amount of damage suffered after calculating the enchantment was reduced by the original damage * f.

2. About armor computing

A = CLAMP [1.25 * armor value -damage amount / (2 + toughness / 4), armor value * (0.25 + toughness / 200), 20].

F = 1 -a / 25

Therefore, the damage after calculating the armor is reduced by the original damage * A / 25.