Skip to content
Snippets Groups Projects
Commit cf088658 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

autofix

parent b3e847b4
No related branches found
No related tags found
1 merge request!7472Fixes for nursery, tweaks.
...@@ -10,8 +10,10 @@ App.Medicine.OrganFarm.Organ = class { ...@@ -10,8 +10,10 @@ App.Medicine.OrganFarm.Organ = class {
* @param {App.Medicine.OrganFarm.OrganImplantAction[]} actions * @param {App.Medicine.OrganFarm.OrganImplantAction[]} actions
* @param {boolean} [displayMultipleActions=false] allow multiple implant links to be displayed * @param {boolean} [displayMultipleActions=false] allow multiple implant links to be displayed
*/ */
constructor({type, name, tooltip = "", cost, time, canGrow = () => true, dependencies = [], constructor({
displayMultipleActions = false, actions = []} = {}) { type, name, tooltip = "", cost, time, canGrow = () => true, dependencies = [],
displayMultipleActions = false, actions = []
} = {}) {
this.type = type; this.type = type;
this.name = name; this.name = name;
this.tooltip = tooltip; this.tooltip = tooltip;
...@@ -40,7 +42,9 @@ App.Medicine.OrganFarm.OrganImplantAction = class { ...@@ -40,7 +42,9 @@ App.Medicine.OrganFarm.OrganImplantAction = class {
* @param {function(App.Entity.SlaveState):string} implantError - message to show if this action cannot be used * @param {function(App.Entity.SlaveState):string} implantError - message to show if this action cannot be used
* @param {function(App.Entity.SlaveState)} implant * @param {function(App.Entity.SlaveState)} implant
*/ */
constructor({name, tooltip = "", healthImpact, surgeryType, autoImplant = true, canImplant, implantError, implant} = {}) { constructor({
name, tooltip = "", healthImpact, surgeryType, autoImplant = true, canImplant, implantError, implant
} = {}) {
this.name = name; this.name = name;
this.tooltip = tooltip; this.tooltip = tooltip;
this.healthImpact = healthImpact; this.healthImpact = healthImpact;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment