Skip to content

Commit

Permalink
support sprite-changing effects
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 12, 2024
1 parent d37ff5c commit a297551
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/helpers/stem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const defaultSTEM: () => ISTEM = () => {
canOverlapUniqueIfEquipped: false,
charges: 0,
statChanges: {},
spriteChange: -1,
},
},
effectMeta: {},
Expand Down
4 changes: 4 additions & 0 deletions src/app/tabs/stems/stems-editor/stems-editor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,10 @@
</div>
</div>
</div>

<div class="form-row">
<app-input-sprite [(sprite)]="editingData.effect.effect.extra.spriteChange" type="creatures"></app-input-sprite>
</div>
</div>

<div class="form-column">
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface IStatusEffectInfo {
canOverlapUniqueIfEquipped?: boolean;
charges?: number;
statChanges: Partial<Record<StatType, number>>;
spriteChange?: number;
spriteChange: number;
}

export interface IEffectTooltip {
Expand Down

0 comments on commit a297551

Please sign in to comment.