mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
Compare commits
No commits in common. "89fb70b923bbad9b46dbf1ce80b57c2b9dbffe61" and "e1bdeaf195817863a2ae93c5fdbeb51588da6a03" have entirely different histories.
89fb70b923
...
e1bdeaf195
@ -6,19 +6,16 @@ export enum EventType {
|
||||
GENERIC
|
||||
}
|
||||
|
||||
interface EventBanner {
|
||||
bannerFilename?: string;
|
||||
xPosition?: number;
|
||||
yPosition?: number;
|
||||
scale?: number;
|
||||
}
|
||||
|
||||
interface TimedEvent extends EventBanner {
|
||||
interface TimedEvent {
|
||||
name: string;
|
||||
eventType: EventType;
|
||||
shinyMultiplier?: number;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
bannerFilename?: string;
|
||||
xPosition?: number;
|
||||
yPosition?: number;
|
||||
scale?: number;
|
||||
}
|
||||
|
||||
const timedEvents: TimedEvent[] = [
|
||||
@ -160,8 +157,8 @@ export class TimedEventDisplay extends Phaser.GameObjects.Container {
|
||||
}
|
||||
|
||||
updateCountdown() {
|
||||
if (this.event && this.event.eventType !== EventType.GENERIC) {
|
||||
this.eventTimerText.setText(this.timeToGo(this.event.endDate));
|
||||
if (this.event!.eventType !== EventType.GENERIC) {
|
||||
this.eventTimerText.setText(this.timeToGo(this.event!.endDate));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user