Fix rounding for scaling IDs
should work for damMult too (.. for now...) because those are specified in units of % (integer div 100)
This commit is contained in:
parent
1763afc0cf
commit
5f464f9e7c
1 changed files with 1 additions and 1 deletions
|
@ -728,7 +728,7 @@ const atree_stats = new (class extends ComputeNode {
|
|||
if (effect.slider) {
|
||||
if ('output' in effect) { // sometimes nodes will modify slider without having effect.
|
||||
const slider_val = interactive_map.get(effect.slider_name).slider.value;
|
||||
let total = parseInt(slider_val) * effect.scaling[0];
|
||||
let total = Math.floor(round_near(parseInt(slider_val) * effect.scaling[0]));
|
||||
if ('max' in effect && total > effect.max) { total = effect.max; }
|
||||
if (Array.isArray(effect.output)) {
|
||||
for (const output of effect.output) {
|
||||
|
|
Loading…
Add table
Reference in a new issue