1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Right attack damage calculation

Discussion in 'Development' started by CreeperFace, Dec 12, 2016.

  1. CreeperFace

    CreeperFace Witch

    Messages:
    58
    GitHub:
    creeperface01
    hi im thinking about right damage calculation because i found different calculations on different pages, so idk.
    I mean calculation containing epf value (original vanilla calculation :D )

    from pocketmine:
    PHP:
    $itemDamage 3;
    $armorModifier $itemDamage $armorPoints 0.04;

    $finalDamage $itemDamage $armorModifier;
    from http://minecraft.gamepedia.com/Armor :
    PHP:
    $finalDamage $itemDamage * ( min20max$armorPoints 5$armorPoints $itemDamage / ( $toughness ) ) ) / 25 ) * ( $epf 25 )
    and from different unknown webside:
    PHP:
    $finalDamage $itemDamage * ($armorPoints 0.04) * (0.75 $epf 0.04)
    I assume, pocketmine calculation is wrong, because it subtracts armorModifier from iteDamage and its not equal to other calculations. But 2 other calculations are similar, only first of them calculates damage with doughness and some min(), max() operations.

    So my only question is what calculation is right one :D because all are different :D
    or mix all calculations and create new and right calculation? :D
     
    Last edited: Dec 12, 2016
    SOFe and Skullex like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.