diff --git a/devTools/FC.d.ts b/devTools/FC.d.ts index b8d69ff070b58164adabd86b682b962fc2eee5fc..b56f04aed817753a6f6e4734936339973e877f80 100644 --- a/devTools/FC.d.ts +++ b/devTools/FC.d.ts @@ -40,6 +40,30 @@ declare namespace App { } } } + + class JobDesc { + position: string; + assignment: string; + publicSexUse: boolean = false; + fuckdollAccepted: boolean = false; + broodmotherAccepted?: boolean; + /** workers can take part time jobs in addition to their main (full-time) one */ + partTime?:boolean = false; + } + + class ManagerJobDesc extends JobDesc { + shouldWalk: boolean = true; + shouldHold: boolean = true; + shouldSee: boolean = true; + shouldHear: boolean = true; + shouldTalk: boolean = true; + shouldThink: boolean = true; + requiredDevotion:number = 50; + /** Applicable careers */ + careers:string[] = []; + /** Applicable skill name */ + skill:string = null; + } } namespace Debug {} diff --git a/src/004-base/facility.js b/src/004-base/facility.js index ae0b4fe9fd25d7d92322f630b747ec17c121c775..2bed02162c3bdd78869deeefed40d57b7abfa919 100644 --- a/src/004-base/facility.js +++ b/src/004-base/facility.js @@ -1,45 +1,10 @@ - -App.Data.JobDesc = class { - constructor() { - this.position = ""; - this.assignment = ""; - this.publicSexUse = false; - this.fuckdollAccepted = false; - /** @type {boolean|undefined} */ - this.broodmotherAccepted = false; - /** workers can take part time jobs in addition to their main (full-time) one */ - this.partTime = false; - } -}; - -App.Data.ManagerJobDesc = class extends App.Data.JobDesc { - constructor() { - super(); - this.shouldWalk = true; - this.shouldHold = true; - this.shouldSee = true; - this.shouldHear = true; - this.shouldTalk = true; - this.shouldThink = true; - this.requiredDevotion = 50; - /** - * Applicable careers - * @type {string[]} */ - this.careers = []; - /** - * Applicable skill name - * @type {string} */ - this.skill = null; - } -}; - App.Data.FacilityDesc = class { constructor() { /** Base name for state variables */ this.baseName = ""; /** Generic name for UI (Brothel, Club, etc.) * If null, baseName is used instead - */ + */ this.genericName = ""; /** @type {Object.<string, App.Data.JobDesc>} */ this.jobs = {};