From 48ef321c896376fe2e795202d15a3fbd02565a97 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Wed, 2 Mar 2022 20:20:18 -0600 Subject: [PATCH] Changed some default values in projInfo --- src/data/projInfo.json | 4 ++-- src/main.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/data/projInfo.json b/src/data/projInfo.json index 62b417c..69ff3eb 100644 --- a/src/data/projInfo.json +++ b/src/data/projInfo.json @@ -1,7 +1,7 @@ { "title": "Profectus", - "id": "profectus", - "author": "thepaperpilot", + "id": "", + "author": "", "discordName": "The Paper Pilot Community", "discordLink": "https://discord.gg/WzejVAx", diff --git a/src/main.ts b/src/main.ts index 78b328b..1cfc70e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,6 +8,10 @@ import { Transient } from "./game/state"; import Decimal, { DecimalSource } from "./lib/break_eternity"; import { load } from "./util/save"; +if (projInfo.id === "") { + throw "Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json"; +} + declare global { interface Window { vue: VueApp;