Skip to content
Snippets Groups Projects
Commit 6fb851f5 authored by svornost's avatar svornost
Browse files

Use unblind only for totally blind slaves; a slave with sight in one eye will...

Use unblind only for totally blind slaves; a slave with sight in one eye will still use newEye.  Prevents double dev/trust gain.
parent 62179a3b
No related branches found
No related tags found
No related merge requests found
...@@ -201,10 +201,18 @@ App.Medicine.OrganFarm.init = function() { ...@@ -201,10 +201,18 @@ App.Medicine.OrganFarm.init = function() {
new App.Medicine.OrganFarm.Organ({ new App.Medicine.OrganFarm.Organ({
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({
name: "Implant", healthImpact: 10, surgeryType: "newEyes",
canImplant: s => (getLeftEyeVision(s) === 0 && getBestVision(s) !== 0 && getLeftEyeType(s) !== 2),
implantError: s => getLeftEyeVision(s) !== 0 ? "Slave has a working left eye." : "",
implant: s => {
eyeSurgery(s, "left", "normal");
}
}),
new App.Medicine.OrganFarm.OrganImplantAction({ new App.Medicine.OrganFarm.OrganImplantAction({
name: "Implant", healthImpact: 10, surgeryType: "unblind", name: "Implant", healthImpact: 10, surgeryType: "unblind",
canImplant: s => (getLeftEyeVision(s) === 0 && getLeftEyeType(s) !== 2), canImplant: s => (getBestVision(s) === 0 && getLeftEyeType(s) !== 2),
implantError: () => "Slave has a working left eye.", implantError: () => "",
implant: s => { implant: s => {
eyeSurgery(s, "left", "normal"); eyeSurgery(s, "left", "normal");
} }
...@@ -223,10 +231,18 @@ App.Medicine.OrganFarm.init = function() { ...@@ -223,10 +231,18 @@ App.Medicine.OrganFarm.init = function() {
new App.Medicine.OrganFarm.Organ({ new App.Medicine.OrganFarm.Organ({
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({
name: "Implant", healthImpact: 10, surgeryType: "newEyes",
canImplant: s => (getRightEyeVision(s) === 0 && getBestVision(s) !== 0 && getRightEyeType(s) !== 2),
implantError: s => getRightEyeVision(s) !== 0 ? "Slave has a working right eye." : "",
implant: s => {
eyeSurgery(s, "right", "normal");
}
}),
new App.Medicine.OrganFarm.OrganImplantAction({ new App.Medicine.OrganFarm.OrganImplantAction({
name: "Implant", healthImpact: 10, surgeryType: "unblind", name: "Implant", healthImpact: 10, surgeryType: "unblind",
canImplant: s => (getRightEyeVision(s) === 0 && getRightEyeType(s) !== 2), canImplant: s => (getBestVision(s) === 0 && getRightEyeType(s) !== 2),
implantError: () => "Slave has a working right eye.", implantError: () => "",
implant: s => { implant: s => {
eyeSurgery(s, "right", "normal"); eyeSurgery(s, "right", "normal");
} }
......
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