From c9218fce7ff89268f6fb123995cb1ebb19b6d454 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 2 Sep 2024 09:37:31 +0100 Subject: [PATCH] Updated Karma value on new and migrated profiles to be 0.2 instead of 0 --- .../assets/database/templates/profiles.json | 36 +++++++++---------- project/src/controllers/GameController.ts | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/project/assets/database/templates/profiles.json b/project/assets/database/templates/profiles.json index 5362d83f..d751a2ec 100644 --- a/project/assets/database/templates/profiles.json +++ b/project/assets/database/templates/profiles.json @@ -2647,7 +2647,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -5520,7 +5520,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -8762,7 +8762,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -12103,7 +12103,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -15803,7 +15803,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -19700,7 +19700,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -23422,7 +23422,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -27301,7 +27301,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -31792,7 +31792,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -36495,7 +36495,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -37473,7 +37473,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -38445,7 +38445,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -41573,7 +41573,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -44692,7 +44692,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -48098,7 +48098,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -51500,7 +51500,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -52465,7 +52465,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" @@ -53437,7 +53437,7 @@ "resetInterval": 86400 }, "WishList": [], - "karmaValue": 0.0, + "karmaValue": 0.2, "_id": "__REPLACEME__", "aid": "__REPLACEME__", "savage": "__REPLACEME__" diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index a93f93a7..43328048 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -247,7 +247,7 @@ export class GameController { protected migrate39xProfile(fullProfile: ISptProfile) { // Karma if (typeof fullProfile.characters.pmc.karmaValue === "undefined") { - fullProfile.characters.pmc.karmaValue = 0; + fullProfile.characters.pmc.karmaValue = 0.2; } // Equipment area