UNPKG

camelot-unchained

Version:
55 lines (47 loc) 2.49 kB
/** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http//mozilla.org/MPL/2.0/. */ "use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Stats = function () { function Stats() { var stats = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, Stats); this.strength = stats.strength || 0; this.agility = stats.agility || 0; this.endurance = stats.endurance || 0; this.will = stats.will || 0; this.resonance = stats.resonance || 0; this.dexterity = stats.dexterity || 0; this.vitality = stats.vitality || 0; this.attunement = stats.attunement || 0; this.faith = stats.faith || 0; this.eyesight = stats.eyesight || 0; this.hearing = stats.hearing || 0; this.clarity = stats.clarity || 0; this.mass = stats.mass || 0; this.presence = stats.presence || 0; this.affinity = stats.affinity || 0; this.maxMoveSpeed = stats.maxMoveSpeed || 0; this.vision = stats.vision || 0; this.detection = stats.detection || 0; this.carryCapacity = stats.carryCapacity || 0; this.maxPanic = stats.maxPanic || 0; this.panicDelay = stats.panicDelay || 0; this.healthRegeneration = stats.healthRegeneration || 0; this.staminaRegeneration = stats.staminaRegeneration || 0; } _createClass(Stats, null, [{ key: "create", value: function create() { var a = new Stats(); return a; } }]); return Stats; }(); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Stats;