summaryrefslogtreecommitdiff
path: root/src/routers/vault/types
diff options
context:
space:
mode:
Diffstat (limited to 'src/routers/vault/types')
-rw-r--r--src/routers/vault/types/Char.js2
-rw-r--r--src/routers/vault/types/EvolAccount.js5
-rw-r--r--src/routers/vault/types/GameAccount.js6
-rw-r--r--src/routers/vault/types/LegacyAccount.js5
-rw-r--r--src/routers/vault/types/LegacyChar.js2
5 files changed, 19 insertions, 1 deletions
diff --git a/src/routers/vault/types/Char.js b/src/routers/vault/types/Char.js
index a90b950..98a0f46 100644
--- a/src/routers/vault/types/Char.js
+++ b/src/routers/vault/types/Char.js
@@ -12,6 +12,8 @@ module.exports = class Char {
baseLevel = 1;
/** gender of the char */
gender = "N";
+ /** when the char was created */
+ creationTime = 0;
constructor (acc, id, name) {
this.account = acc;
diff --git a/src/routers/vault/types/EvolAccount.js b/src/routers/vault/types/EvolAccount.js
index 6db03bf..b91924a 100644
--- a/src/routers/vault/types/EvolAccount.js
+++ b/src/routers/vault/types/EvolAccount.js
@@ -1,4 +1,5 @@
const GameAccount = require("./GameAccount.js");
+const EvolChar = require("./EvolChar.js");
/**
* represents an Evol game account
@@ -8,6 +9,10 @@ module.exports = class EvolAccount extends GameAccount {
legacyId = null;
/** reference to the LegacyAccount */
legacyAccount = null;
+ /** evol game characters
+ * @type {EvolChar[]}
+ */
+ chars = [];
/**
* serialize for sending over the network
diff --git a/src/routers/vault/types/GameAccount.js b/src/routers/vault/types/GameAccount.js
index fa94808..87f5336 100644
--- a/src/routers/vault/types/GameAccount.js
+++ b/src/routers/vault/types/GameAccount.js
@@ -1,3 +1,5 @@
+const Char = require("./Char.js");
+
/**
* represents a generic game account
*/
@@ -8,7 +10,9 @@ module.exports = class GameAccount {
userid = "";
/** the email address associated with the account */
email = null;
- /** Char[] */
+ /** game characters
+ * @type {Char[]}
+ */
chars = [];
/** the last time the account logged in */
lastLogin = null;
diff --git a/src/routers/vault/types/LegacyAccount.js b/src/routers/vault/types/LegacyAccount.js
index 747e6df..0e1bc62 100644
--- a/src/routers/vault/types/LegacyAccount.js
+++ b/src/routers/vault/types/LegacyAccount.js
@@ -1,4 +1,5 @@
const GameAccount = require("./GameAccount.js");
+const LegacyChar = require("./LegacyChar.js");
/**
* represents a Legacy game account
@@ -8,6 +9,10 @@ module.exports = class LegacyAccount extends GameAccount {
revoltId = null;
/** reference to the EvolAccount of the target evol account */
revoltAccount = null;
+ /** Legacy game characters
+ * @type {LegacyChar[]}
+ */
+ chars = [];
/**
* serialize for sending over the network
diff --git a/src/routers/vault/types/LegacyChar.js b/src/routers/vault/types/LegacyChar.js
index b893c3f..9fb2ed3 100644
--- a/src/routers/vault/types/LegacyChar.js
+++ b/src/routers/vault/types/LegacyChar.js
@@ -8,6 +8,8 @@ module.exports = class LegacyChar extends Char {
revoltId = null;
/** reference to the EvolChar */
revoltChar = null;
+ /** boss points */
+ bossPoints = 0;
/**
* serialize for sending over the network