@gecogvidanto/plugin-barter
Version:
Barter system plugin for ĞecoĞvidanto
54 lines • 1.71 kB
JavaScript
;
/*
* This file is part of @gecogvidanto/plugin-barter.
* Copyright (C) 2020 Stéphane Veyret
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const plugin_1 = require("@gecogvidanto/plugin");
const BARTER_HELP_SHEET = {
low: 0 /* Empty */,
medium: 0 /* Empty */,
high: 0 /* Empty */,
waiting: 0 /* Empty */,
};
/**
* A barter economic system.
*/
class BarterSystem extends plugin_1.EconomicSystem {
constructor() {
super('barter', 'barter$name');
}
getNonPlayerCharacterName() {
return Promise.reject(new Error('No non player character in barter system'));
}
getMoneyHelpSheet() {
return Promise.resolve(BARTER_HELP_SHEET);
}
getOptions() {
return Promise.resolve([]);
}
getForm(builder) {
return Promise.resolve(builder);
}
execForm(data) {
return Promise.resolve(data);
}
terminateRound() {
return Promise.resolve();
}
}
exports.default = BarterSystem;
//# sourceMappingURL=BarterSystem.js.map