Skip to content
Snippets Groups Projects
Commit c54ff4f4 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-master' into 'pregmod-master'

Fixes

Closes #2193 and #2192

See merge request pregmodfan/fc-pregmod!7589
parents c2522f74 d4cb775d
Branches
Tags
1 merge request!7589Fixes
...@@ -32,6 +32,21 @@ App.Entity.Facilities.PitFighterJob = class extends App.Entity.Facilities.Facili ...@@ -32,6 +32,21 @@ App.Entity.Facilities.PitFighterJob = class extends App.Entity.Facilities.Facili
} }
return r; 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 { App.Entity.Facilities.Pit = class extends App.Entity.Facilities.SingleJobFacility {
......
...@@ -178,9 +178,9 @@ App.Data.Markets = { ...@@ -178,9 +178,9 @@ App.Data.Markets = {
get requirements() { return (V.seeDicks !== 0); } get requirements() { return (V.seeDicks !== 0); }
}, },
{ {
title: "The Gymnasium - Academy", title: "The Gymnasium-Academy",
marketType: "TGA", marketType: "TGA",
passage: "The Gymnasium - Academy", passage: "The Gymnasium-Academy",
note: "Well trained slaves with dicks.", note: "Well trained slaves with dicks.",
get requirements() { return (V.seeDicks !== 0); } get requirements() { return (V.seeDicks !== 0); }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment