Skip to content

Commit

Permalink
fix: reverse transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 4, 2023
1 parent ab26bfe commit ff4bd4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class Entry {
obj: EntrySprite,
) {
if (type == "transparency")
obj.alpha += amount / 100
obj.alpha -= amount / 100
else throw new Error(`add_effect_amount - ${type} is not implemented yet.`)
}
change_effect_amount(
Expand All @@ -268,7 +268,7 @@ export class Entry {
obj: EntrySprite,
) {
if (type == "transparency")
obj.alpha = amount / 100
obj.alpha = 1 - amount / 100
else throw new Error(`add_effect_amount - ${type} is not implemented yet.`)
}
change_scale_size(d: number, obj: EntrySprite) {
Expand Down

0 comments on commit ff4bd4e

Please sign in to comment.