Remove prints

This commit is contained in:
hppeng 2022-07-05 23:51:16 -07:00
parent 8d077b3b4b
commit e4d7a42a50
3 changed files with 2 additions and 5 deletions

View file

@ -564,7 +564,7 @@ const atree_stats = new (class extends ComputeNode {
const { type, name, abil = "", value } = effect;
// TODO: prop
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); }
}
}
@ -573,7 +573,7 @@ const atree_stats = new (class extends ComputeNode {
const { base_spell, cost = 0} = effect;
if (cost) {
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); }
}
continue;

View file

@ -861,8 +861,6 @@ class AggregateStatsNode extends ComputeNode {
compute_func(input_map) {
const output_stats = new Map();
for (const [k, v] of input_map.entries()) {
console.log(k);
console.log(v);
for (const [k2, v2] of v.entries()) {
if (output_stats.has(k2)) {
// TODO: ugly AF

View file

@ -1573,7 +1573,6 @@ function getSpellCost(stats, spell) {
function getBaseSpellCost(stats, spell) {
// old intelligence:
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);
return Math.floor(cost * (1 + stats.get("spPct"+spell.base_spell) / 100));
}