PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding
Mana cost rounding errors.
Ouverte
Personne n'a encore pris cette issue.
bug: calculation
- Langage dominant
- Lua
- Étoiles
- 5.4k
- Forks
- 2.4k
- Merge moyen
- 1 j 12 h
- PR mergées (30 j)
- 26
Description
Check version
- I'm running the latest version of Path of Building and I've verified this by checking the changelog
Check for duplicates
- I've checked for duplicate open and closed issues by using the search function of the issue tracker
Check for support
- I've checked that the calculation is supposed to be supported. If it isn't please open a feature request instead (Red text is a feature request).
What platform are you running Path of Building on?
Windows
What is the value from the calculation in-game?
- Craclking lance of Disintegration level 3 (15 base mana cost) with CWDT support (2.5 multi) + enhance (1.2 multi) + conc effect (1.4 multi). Total mana cost should be 63
- Craclking lance of Disintegration level 2 (14 base mana cost) with CWDT (2.5 multi) + enhance (1.2 multi) + archmage with 850 max unreserved mana. Total mana cost should be 168
What is the value from the calculation in Path of Building?
- Craclking lance of Disintegration level 3 (15 base mana cost) with CWDT support (2.5 multi) + enhance (1.2 multi) + conc effect (1.4 multi). Total mana cost should be 63, but its 62 in POB. In the calculation tab it shows that it multiplies by 4.19999.
- Craclking lance of Disintegration level 2 (14 base mana cost) with CWDT (2.5 multi) + enhance (1.2 multi) + archmage with 850 max unreserved mana. Total mana cost should be 168, but its 171 in the POB. In the calculation tab it shows that base mana cost is 57 (14 + 43). 43 comes from Archmange support with 850 unreserved mana. 850 * 0.05 = 42.5. So total base cost should be 56.
How to reproduce the issue
- Craclking lance of Disintegration level 3 (15 base mana cost) with CWDT support (2.5 multi) + enhance (1.2 multi) + conc effect (1.4 multi). Total mana cost should be 63
- Craclking lance of Disintegration level 2 (14 base mana cost) with CWDT (2.5 multi) + enhance (1.2 multi) + archmage with 850 max unreserved mana.
PoB for PoE1 build code
https://pobb.in/vUucOnSt7-P4
Screenshots
No response
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par charger le code de build PoB lié et reproduire les deux cas dans l’onglet Calculation, en vous concentrant sur le calcul du coût en mana et son comportement d’arrondi. C’est terminé lorsque Path of Building indique 63 pour la première configuration et 168 pour la seconde, conformément aux valeurs en jeu.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- lua
- Domaine
- game-dev
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100