summaryrefslogtreecommitdiff
path: root/src/routers/vault/types/LegacyChar.js
blob: 9fb2ed327dffe3aa97414aa7a8fc19665ee4efa2 (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 a Legacy game char
 */
module.exports = class LegacyChar extends Char {
    /** char id of the target evol char (ported) */
    revoltId = null;
    /** reference to the EvolChar */
    revoltChar = null;
    /** boss points */
    bossPoints = 0;

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