Fix timezone variant with legendary gacha

This commit is contained in:
Flashfyre committed 2024-03-15 19:40:13 -04:00
1 parent 1bae39d80e
commit eab1ba7ab9
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ import { Species } from "./enums/species";
import { tmSpecies } from "./tms";
import { Type } from "./type";
import { initTrainerTypeDialogue } from "./dialogue";
import { PersistentModifier, TerastallizeModifier } from "../modifier/modifier";
import { PersistentModifier } from "../modifier/modifier";
export enum TrainerPoolTier {
COMMON,
+1 -1
View File
@@ -359,7 +359,7 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
}
updateNameText(pokemon: Pokemon): void {
let displayName = pokemon.name;
let displayName = pokemon.name.replace(/[♂♀]/g, '');
let nameTextWidth: number;
let nameSizeTest = addTextObject(this.scene, 0, 0, displayName, TextStyle.BATTLE_INFO);
+3 -3
View File
@@ -87,10 +87,10 @@ export function randSeedWeightedItem<T>(items: T[]): T {
}
export function getSunday(date: Date): Date {
const day = date.getDay(),
diff = date.getDate() - day;
const day = date.getDay();
const diff = date.getDate() - day;
const newDate = new Date(date.setDate(diff));
return new Date(newDate.getFullYear(), newDate.getMonth(), newDate.getDate());
return new Date(Date.UTC(newDate.getUTCFullYear(), newDate.getUTCMonth(), newDate.getUTCDate()));
}
export function getFrameMs(frameCount: integer): integer {