PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding

Mana cost rounding errors.

Aperta
#9,015 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug: calculation
Lingua principale
Lua
Stelle
5.4k
Fork
2.4k
Merge medio
1g 12h
PR unite (30g)
26

Descrizione

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?
  1. 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
  2. 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?
  1. 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.
  2. 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
  1. 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
  2. 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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia caricando il codice della build PoB collegato e riproducendo entrambi i casi nella scheda Calculation, concentrandoti sul calcolo del costo in mana e sul relativo comportamento di arrotondamento. Il lavoro è completato quando Path of Building riporta 63 per la prima configurazione e 168 per la seconda, in linea con i valori nel gioco.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
lua
Ambito
game-dev
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.