Skip to content
Snippets Groups Projects
Commit 025fe0c0 authored by svornost's avatar svornost
Browse files

Hook "unblind" back up to the correct organ implant surgeries.

parent 0b73a1b9
No related branches found
No related tags found
No related merge requests found
...@@ -202,7 +202,7 @@ App.Medicine.OrganFarm.init = function() { ...@@ -202,7 +202,7 @@ App.Medicine.OrganFarm.init = function() {
type: "leftEye", name: "Left Eye", cost: 5000, time: 10, type: "leftEye", name: "Left Eye", cost: 5000, time: 10,
actions: [ actions: [
new App.Medicine.OrganFarm.OrganImplantAction({ new App.Medicine.OrganFarm.OrganImplantAction({
name: "Implant", healthImpact: 10, surgeryType: "newEyes", name: "Implant", healthImpact: 10, surgeryType: "unblind",
canImplant: s => (getLeftEyeVision(s) === 0 && getLeftEyeType(s) !== 2), canImplant: s => (getLeftEyeVision(s) === 0 && getLeftEyeType(s) !== 2),
implantError: () => "Slave has a working left eye.", implantError: () => "Slave has a working left eye.",
implant: s => { implant: s => {
...@@ -224,7 +224,7 @@ App.Medicine.OrganFarm.init = function() { ...@@ -224,7 +224,7 @@ App.Medicine.OrganFarm.init = function() {
type: "rightEye", name: "Right Eye", cost: 5000, time: 10, type: "rightEye", name: "Right Eye", cost: 5000, time: 10,
actions: [ actions: [
new App.Medicine.OrganFarm.OrganImplantAction({ new App.Medicine.OrganFarm.OrganImplantAction({
name: "Implant", healthImpact: 10, surgeryType: "newEyes", name: "Implant", healthImpact: 10, surgeryType: "unblind",
canImplant: s => (getRightEyeVision(s) === 0 && getRightEyeType(s) !== 2), canImplant: s => (getRightEyeVision(s) === 0 && getRightEyeType(s) !== 2),
implantError: () => "Slave has a working right eye.", implantError: () => "Slave has a working right eye.",
implant: s => { implant: s => {
......
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