You've already forked obsidian-visualiser
Spell selection in creator + rebalancing
This commit is contained in:
@@ -161,6 +161,7 @@ function compileCharacter(character: Character & { username?: string }): Compile
|
||||
precision: 0,
|
||||
arts: 0,
|
||||
},
|
||||
spells: character.progress.spells ?? [],
|
||||
speed: false,
|
||||
defense: {
|
||||
static: 6,
|
||||
@@ -215,6 +216,7 @@ function applyTrainingOption(stat: MainStat, option: TrainingOption, character:
|
||||
if(option.resistance) option.resistance.forEach(e => character.resistance[e[0]][e[1] === "attack" ? 0 : 1]++);
|
||||
if(option.spellslot) character.spellslots += option.spellslot in character.modifier ? character.modifier[option.spellslot as MainStat] : option.spellslot as number;
|
||||
if(option.arts) character.artslots += option.arts in character.modifier ? character.modifier[option.arts as MainStat] : option.arts as number;
|
||||
if(option.spell) character.spells.push(option.spell);
|
||||
|
||||
option.description.forEach(line => !line.disposable && (last || !line.replaced) && character.features[line.category ?? "misc"].push(line.text));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user