Remove prints
This commit is contained in:
parent
8d077b3b4b
commit
e4d7a42a50
3 changed files with 2 additions and 5 deletions
|
@ -564,7 +564,7 @@ const atree_stats = new (class extends ComputeNode {
|
||||||
const { type, name, abil = "", value } = effect;
|
const { type, name, abil = "", value } = effect;
|
||||||
// TODO: prop
|
// TODO: prop
|
||||||
if (type === "stat") {
|
if (type === "stat") {
|
||||||
if (ret_effects.has(name)) { ret_effects.set(name, ret_effect.get(name) + value); }
|
if (ret_effects.has(name)) { ret_effects.set(name, ret_effects.get(name) + value); }
|
||||||
else { ret_effects.set(name, value); }
|
else { ret_effects.set(name, value); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -573,7 +573,7 @@ const atree_stats = new (class extends ComputeNode {
|
||||||
const { base_spell, cost = 0} = effect;
|
const { base_spell, cost = 0} = effect;
|
||||||
if (cost) {
|
if (cost) {
|
||||||
const key = "spRaw"+base_spell;
|
const key = "spRaw"+base_spell;
|
||||||
if (ret_effects.has(key)) { ret_effects.set(key, ret_effect.get(key) + cost); }
|
if (ret_effects.has(key)) { ret_effects.set(key, ret_effects.get(key) + cost); }
|
||||||
else { ret_effects.set(key, cost); }
|
else { ret_effects.set(key, cost); }
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -861,8 +861,6 @@ class AggregateStatsNode extends ComputeNode {
|
||||||
compute_func(input_map) {
|
compute_func(input_map) {
|
||||||
const output_stats = new Map();
|
const output_stats = new Map();
|
||||||
for (const [k, v] of input_map.entries()) {
|
for (const [k, v] of input_map.entries()) {
|
||||||
console.log(k);
|
|
||||||
console.log(v);
|
|
||||||
for (const [k2, v2] of v.entries()) {
|
for (const [k2, v2] of v.entries()) {
|
||||||
if (output_stats.has(k2)) {
|
if (output_stats.has(k2)) {
|
||||||
// TODO: ugly AF
|
// TODO: ugly AF
|
||||||
|
|
|
@ -1573,7 +1573,6 @@ function getSpellCost(stats, spell) {
|
||||||
function getBaseSpellCost(stats, spell) {
|
function getBaseSpellCost(stats, spell) {
|
||||||
// old intelligence:
|
// old intelligence:
|
||||||
let cost = Math.ceil(spell.cost * (1 - skillPointsToPercentage(stats.get('int')) * skillpoint_final_mult[2]));
|
let cost = Math.ceil(spell.cost * (1 - skillPointsToPercentage(stats.get('int')) * skillpoint_final_mult[2]));
|
||||||
console.log(stats);
|
|
||||||
cost += stats.get("spRaw"+spell.base_spell);
|
cost += stats.get("spRaw"+spell.base_spell);
|
||||||
return Math.floor(cost * (1 + stats.get("spPct"+spell.base_spell) / 100));
|
return Math.floor(cost * (1 + stats.get("spPct"+spell.base_spell) / 100));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue