mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-18 02:07:44 +00:00
Money shouldn't cover full screen even if its funny
This commit is contained in:
parent
17edaeb708
commit
1276006de3
@ -1379,16 +1379,14 @@ export default class BattleScene extends SceneBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
animateMoneyChanged(positiveChange: boolean): void {
|
animateMoneyChanged(positiveChange: boolean): void {
|
||||||
let deltaScale = this.moneyText.scale * 0.14;
|
if (this.tweens.getTweensOf(this.moneyText).length > 0) {
|
||||||
if (positiveChange) {
|
return;
|
||||||
this.moneyText.setShadowColor("#008000");
|
|
||||||
} else {
|
|
||||||
this.moneyText.setShadowColor("#FF0000");
|
|
||||||
deltaScale = -deltaScale;
|
|
||||||
}
|
}
|
||||||
|
const deltaScale = this.moneyText.scale * 0.14 * (positiveChange ? 1 : -1);
|
||||||
|
this.moneyText.setShadowColor(positiveChange ? "#008000" : "#FF0000");
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: this.moneyText,
|
targets: this.moneyText,
|
||||||
duration: Utils.fixedInt(250),
|
duration: 250,
|
||||||
scale: this.moneyText.scale + deltaScale,
|
scale: this.moneyText.scale + deltaScale,
|
||||||
loop: 0,
|
loop: 0,
|
||||||
yoyo: true,
|
yoyo: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user