diff --git a/src/004-base/facility.js b/src/004-base/facility.js index a827c02e81d45e05acfdf8cb598c264a675ac133..08b59e59f07a10b49aef7c6a46559af081014c95 100644 --- a/src/004-base/facility.js +++ b/src/004-base/facility.js @@ -245,7 +245,8 @@ App.Entity.Facilities.Facility = class { /** Facility display name * @returns {string} */ get name() { - return State.variables[this.desc.baseName + "Name"]; + const res = State.variables[this.desc.baseName + "Name"]; + return res !== undefined ? res : 'the ' + this.genericName; } /** Facility generic name ("Brothel", "Schoolroom", etc.)