No more infinite powders
This commit is contained in:
parent
d59cdfc611
commit
dd3d7f128d
2 changed files with 4 additions and 1 deletions
|
@ -570,6 +570,8 @@ const atree_stats = new (class extends ComputeNode {
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
case 'add_spell_prop':
|
case 'add_spell_prop':
|
||||||
|
// TODO unjankify....
|
||||||
|
// costs are converted to raw cost ID
|
||||||
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;
|
||||||
|
|
|
@ -181,7 +181,8 @@ class ItemInputNode extends InputNode {
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
if (powdering !== undefined) {
|
if (powdering !== undefined) {
|
||||||
item.statMap.set('powders', powdering);
|
const max_slots = item.statMap.get('slots');
|
||||||
|
item.statMap.set('powders', powdering.slice(0, max_slots));
|
||||||
}
|
}
|
||||||
let type_match;
|
let type_match;
|
||||||
if (this.category == 'weapon') {
|
if (this.category == 'weapon') {
|
||||||
|
|
Loading…
Reference in a new issue