diff --git a/src/facilities/pit/pitFramework.js b/src/facilities/pit/pitFramework.js index df3b2e7fda084849d5bab94a29d0fc922dfb0e42..4d2b99f992cb79d0b912554d9e8bad9e4be00dd5 100644 --- a/src/facilities/pit/pitFramework.js +++ b/src/facilities/pit/pitFramework.js @@ -32,6 +32,21 @@ App.Entity.Facilities.PitFighterJob = class extends App.Entity.Facilities.Facili } return r; } + + /** + * @param {App.Entity.SlaveState} slave + * @returns {string[]} + */ + canEmploy(slave) { + if (this.isEmployed(slave)) { + return [`${slave.slaveName} is already assigned to fight in ${this.facility.name}.`]; + } + if (!this._facilityHasFreeSpace) { + return [`Capacity of ${this.facility.name} exceeded.`]; + } + + return this.checkRequirements(slave); + } }; App.Entity.Facilities.Pit = class extends App.Entity.Facilities.SingleJobFacility { diff --git a/src/markets/theMarket/marketData.js b/src/markets/theMarket/marketData.js index d98467b6ccd9dc339c766f9e871a2efdaacb43b6..ba45c7fda23030230b96beaca6ebc0b1a1f36ae2 100644 --- a/src/markets/theMarket/marketData.js +++ b/src/markets/theMarket/marketData.js @@ -178,9 +178,9 @@ App.Data.Markets = { get requirements() { return (V.seeDicks !== 0); } }, { - title: "The Gymnasium - Academy", + title: "The Gymnasium-Academy", marketType: "TGA", - passage: "The Gymnasium - Academy", + passage: "The Gymnasium-Academy", note: "Well trained slaves with dicks.", get requirements() { return (V.seeDicks !== 0); } },