Skip to content

Commit

Permalink
#47
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 22, 2024
1 parent c6b1d66 commit adf76de
Show file tree
Hide file tree
Showing 5 changed files with 536 additions and 14 deletions.
13 changes: 11 additions & 2 deletions src/app/helpers/stem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,18 @@ export const defaultSTEM: () => ISTEM = () => {
spellName: '',
maxSkillForGain: 0,
mpCost: 0,
skillMultiplierChanges: [],
castTime: 0,
cooldown: 0,
potencyMultiplier: 1,
bonusRollsMin: 0,
bonusRollsMax: 0,
willSaveThreshold: 0,
willSavePercent: 0,
skillMultiplierChanges: [[0, 1]],
spellMeta: {
spellRef: '',
bonusAgro: 0,
creatureSummoned: [],
fizzledBy: [],
},
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
model,
output,
} from '@angular/core';
import { ElectronService } from '../../../services/electron.service';
import { ModService } from '../../../services/mod.service';

@Component({
Expand All @@ -16,10 +15,9 @@ import { ModService } from '../../../services/mod.service';
styleUrl: './input-effect.component.scss',
})
export class InputEffectComponent {
private electronService = inject(ElectronService);
private modService = inject(ModService);

public effect = model<string | undefined>();
public effect = model<{ value: string } | undefined>();
public label = input<string>('Effect');
public defaultValue = input<string>();
public change = output<string>();
Expand Down Expand Up @@ -58,7 +56,7 @@ export class InputEffectComponent {
const defaultItem = this.defaultValue();
if (defaultItem) {
const foundItem = this.values().find((i) => i.value === defaultItem);
this.effect.set(foundItem as unknown as string);
this.effect.set(foundItem as unknown as { value: string });
}
},
{ allowSignalWrites: true }
Expand Down
Loading

0 comments on commit adf76de

Please sign in to comment.