Skip to content

Commit

Permalink
Removal of attackerchampion from database and saves
Browse files Browse the repository at this point in the history
  • Loading branch information
React-1 committed Jan 18, 2025
1 parent 57bedc0 commit 72632a1
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions server/src/controllers/base/save/baseSave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ export const baseSave: KoaController = async (ctx) => {
const value = saveData[key];

switch (key) {
case SaveKeys.ATTACKERCHAMPION:
if (value) userSave.attackerchampion = value;
break;

case SaveKeys.MONSTERUPDATE:
await monsterUpdateHandler(value, userSave);
break;
Expand Down
2 changes: 0 additions & 2 deletions server/src/data/tribes/abunaki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,6 @@ export const abunaki = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down Expand Up @@ -2448,7 +2447,6 @@ export const abunaki = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down
2 changes: 0 additions & 2 deletions server/src/data/tribes/dreadnaught.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,6 @@ export const dreadnaught = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down Expand Up @@ -2717,7 +2716,6 @@ export const dreadnaught = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down
2 changes: 0 additions & 2 deletions server/src/data/tribes/kozu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4639,7 +4639,6 @@ export const kozu = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down Expand Up @@ -10812,7 +10811,6 @@ export const kozu = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down
3 changes: 0 additions & 3 deletions server/src/data/tribes/legionnaire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,6 @@ export const legionnaire = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down Expand Up @@ -2751,7 +2750,6 @@ export const legionnaire = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down Expand Up @@ -4492,7 +4490,6 @@ export const legionnaire = {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
siege: null,
attackersiege: null,
Expand Down
1 change: 0 additions & 1 deletion server/src/dev/devSandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3947,7 +3947,6 @@ export const devSandbox = (user?: User) => {
gifts: [],
sentinvites: [],
sentgifts: [],
attackerchampion: "null",
fbpromos: [],
};
};
1 change: 0 additions & 1 deletion server/src/enums/SaveKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export enum SaveKeys {
ACADEMY = "academy",
CHAMPION = "champion",
QUESTS = "quests",
ATTACKERCHAMPION = "attackerchampion",
MONSTERUPDATE = "monsterupdate",
ATTACKLOOT = "attackloot",
}
5 changes: 0 additions & 5 deletions server/src/models/save.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ export class Save {
@Property({ type: "json", nullable: true, default: "null" })
champion?: string;

@FrontendKey
@Property({ type: "json", nullable: true, default: "null" })
attackerchampion: string;

@FrontendKey
@Property({ default: 0 })
empiredestroyed!: number;
Expand Down Expand Up @@ -507,7 +503,6 @@ export class Save {
"gifts",
"sentinvites",
"sentgifts",
"attackerchampion",
"fbpromos",
"purchase",
"powerups",
Expand Down

0 comments on commit 72632a1

Please sign in to comment.