Newer
Older
this.setValue(current_rule.set.surgery.lips);
this.onchange = (value) => current_rule.set.surgery.lips = value;
class ButtSurgeryList extends NumericTargetEditor {
this.setValue(current_rule.set.surgery.butt);
this.onchange = (value) => current_rule.set.surgery.butt = value;
class BreastSurgeryList extends NumericTargetEditor {
["slim", 400],
["stacked", 1000],
["huge", 2000],
["barely functional", 9000],
this.setValue(current_rule.set.surgery.boobs);
this.onchange = (value) => current_rule.set.surgery.boobs = value;
class TighteningSurgeryList extends RadioSelector {
this.setValue(current_rule.set.surgery.holes);
this.onchange = (value) => current_rule.set.surgery.holes = value;
class TummyTuckSurgeryList extends RadioSelector {
constructor() {
const items = [
["tuck", 1],
];
this.setValue(current_rule.set.surgery.tummy);
this.onchange = (value) => current_rule.set.surgery.tummy = value;
class BodyHairSurgeryList extends RadioSelector {
this.setValue(current_rule.set.surgery.bodyhair);
this.onchange = (value) => current_rule.set.surgery.bodyhair = value;
this.setValue(current_rule.set.surgery.hair);
this.onchange = (value) => current_rule.set.surgery.hair = value;
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
class EarShapeSurgeryList extends RadioSelector {
constructor() {
const items = [
["normal ears", 1],
["small eflin ears", 2],
["long elfin ears", 3],
["bovine ears", 4],
];
super("Ear Shape", items, true);
this.setValue(current_rule.set.surgery.earShape);
this.onchange = (value) => current_rule.set.surgery.earShape = value;
}
}
class HornSurgeryList extends RadioSelector {
constructor() {
const items = [
["none", 1],
["curved succubus horns", 2],
["backswept horns", 3],
["cow horns", 4],
["one long oni horn", 5],
["two long oni horns", 6],
["small horns", 7],
];
super("Horn Implants", items, true);
this.setValue(current_rule.set.surgery.horn);
this.onchange = (value) => current_rule.set.surgery.horn = value;
}
}
class AutomaticAssignmentList extends ListSelector {
const items = [];
const penthouseDesc = App.Data.Facilities.penthouse;
for (const jn in penthouseDesc.jobs) {
/** @type {App.Data.JobDesc} */
const jd = penthouseDesc.jobs[jn];
items.push([jd.position, jd.assignment]);
}
const penthouse = App.Entity.facilities.penthouse;
/** @type {Object.<string, App.Entity.Facilities.Facility>} */
const facilities = App.Entity.facilities;
const facilitiesToSkip = [penthouse, facilities.pit, facilities.armory, facilities.arcologyAgent];
for (const fn in facilities) {
const f = facilities[fn];
if (facilitiesToSkip.includes(f)) { continue; }
items.push([f.name, f.job().desc.assignment]);
super("Automatically set assignment", items);
this.setValue(current_rule.set.setAssignment);
this.onchange = (value) => current_rule.set.setAssignment = value;
}
class PitAssignmentList extends ListSelector{
const items =[["remove from pit", 0], ["assign to pit", 1]];
this.setValue(current_rule.set.pitRules);
this.onchange = (value) => current_rule.set.pitRules = value;
}
}
constructor() {
const items = [
["install", "install"],
["remove", "remove"],
];
this.setValue(current_rule.set.surgery.bellyImplant);
this.onchange = (value) => current_rule.set.surgery.bellyImplant = value;
super("Custom label(s) (separate by '|')", [], true, true);
this.setValue(current_rule.set.label);
this.onchange = (value) => current_rule.set.label = value;
}
}
constructor() {
super("Remove custom label(s) (separate by '|')", [], true, true);
this.setValue(current_rule.set.removeLabel);
this.onchange = (value) => current_rule.set.removeLabel = value;
}
}
class SkinColorList extends ListSelector {
["pure white"],
["ivory"],
["white"],
["extremely pale"],
["very pale"],
["extremely fair"],
["very fair"],
["fair"],
["light"],
["light olive"],
["tan"],
["olive"],
["bronze"],
["dark olive"],
["light beige"],
["beige"],
["dark beige"],
["light brown"],
["brown"],
["dark brown"],
["black"],
["ebony"],
["pure black"],
["dyed red"],
["dyed green"],
["dyed blue"],
super("Dye or tan skin", items);
this.setValue(current_rule.set.skinColor);
this.onchange = (x) => current_rule.set.skinColor = x;
}
}