summaryrefslogtreecommitdiff
path: root/src/routers/vault/types/EvolChar.js
blob: b6cf5a5c38a30bb2d462e89d6e819eeb63c5608c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const Char = require("./Char.js");

/**
 * represents an Evol game char
 */
module.exports = class EvolChar extends Char {
    /** char id of the source legacy char (ported) */
    legacyId = null;
    /** reference to the LegacyChar */
    legacyChar = null;
    /** evol gender (different than tmwa) */
    gender = "U";

    /**
     * serialize for sending over the network
     * @param {*} key
     */
    toJSON (key) {
        return Object.assign({
            legacyId: this.legacyId,
        }, super.toJSON());
    }
}