|
|
|
@ -106,13 +106,14 @@ export class HubGoals extends BasicSerializableObject {
|
|
|
|
|
|
|
|
|
|
// Allow quickly switching goals in dev mode
|
|
|
|
|
if (G_IS_DEV) {
|
|
|
|
|
if (G_IS_DEV) {
|
|
|
|
|
window.addEventListener("keydown", ev => {
|
|
|
|
|
if (ev.key === "b") {
|
|
|
|
|
window.addEventListener("keydown", ev => {
|
|
|
|
|
if (ev.key === "b") {
|
|
|
|
|
// root is not guaranteed to exist within ~0.5s after loading in
|
|
|
|
|
if (this.root && this.root.app && this.root.app.gameAnalytics) {
|
|
|
|
|
this.onGoalCompleted();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|