Skip to content
Snippets Groups Projects
Commit 1b5ecbce authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fix' into 'pregmod-master'

fix limb attachment

Closes #1575

See merge request pregmodfan/fc-pregmod!6408
parents a95788f4 7ff6dfdf
No related branches found
No related tags found
No related merge requests found
...@@ -266,7 +266,7 @@ This room is lined with shelves and cabinets; it could be easily mistaken for a ...@@ -266,7 +266,7 @@ This room is lined with shelves and cabinets; it could be easily mistaken for a
<div>''Buy and fit''</div> <div>''Buy and fit''</div>
<div> <div>
<<if $researchLab.level > 0>> <<if $researchLab.level > 0>>
<<= App.UI.disabledLink(`''Construct in lab''`, ["Depending on lab speed, it might be faster than fitting an existing prosthetic but should almost always be faster than first building and than fitting it to $him."])>> <<= App.UI.disabledLink(`''Construct in lab''`, ["Depending on lab speed, it might be faster than fitting an existing prosthetic but should almost always be faster than first building and then fitting it to $him."])>>
<<else>> <<else>>
<<= App.UI.disabledLink(`''Construct in lab''`, ["With a lab you could both increase speed and decrease cost."])>> <<= App.UI.disabledLink(`''Construct in lab''`, ["With a lab you could both increase speed and decrease cost."])>>
<</if>> <</if>>
......
...@@ -76,7 +76,7 @@ App.Desc.limbChange = function() { ...@@ -76,7 +76,7 @@ App.Desc.limbChange = function() {
if (implant) { if (implant) {
return "<span id='amputate'>" + return "<span id='amputate'>" +
`<div>Since you already have a prosthetic interface prepared for this slave, you can install it during the operation. The procedure will put additional strain on ${his} health but less so than if you were to perform the procedures separately.</div>` + `<div>Since you already have a prosthetic interface prepared for this slave, you can install it during the operation. The procedure will put additional strain on ${his} health but less so than if you were to perform the procedures separately.</div>` +
`${r}<div>${App.UI.link("Do not install", noInstall())}</div></span>`; `${r}<div>${App.UI.link("Do not install", noInstall)}</div></span>`;
} }
if (slave.PLimb > 0) { if (slave.PLimb > 0) {
...@@ -106,7 +106,7 @@ App.Desc.limbChange = function() { ...@@ -106,7 +106,7 @@ App.Desc.limbChange = function() {
} }
/** /**
* Displays a selector for prosthetic limbs of $activeSlave * Displays a selector for prosthetic limbs of getSlave($AS)
* @param {App.Entity.SlaveState} slave * @param {App.Entity.SlaveState} slave
* @param {{}} oldLimbs * @param {{}} oldLimbs
* @param {string} [returnTo] * @param {string} [returnTo]
...@@ -187,10 +187,10 @@ App.Desc.limbChange = function() { ...@@ -187,10 +187,10 @@ App.Desc.limbChange = function() {
s = `<<set $prostheticsConfig = "limbs", $oldLimbs = ${JSON.stringify(oldLimbs)}>>` + s = `<<set $prostheticsConfig = "limbs", $oldLimbs = ${JSON.stringify(oldLimbs)}>>` +
'<<goto "Prosthetics Configuration">>'; '<<goto "Prosthetics Configuration">>';
} else { } else {
s = `<<replace "#selector">><<= App.Desc.limbChange().reaction($activeSlave, ${JSON.stringify(oldLimbs)}, "${returnTo}")>><</replace>>`; s = `<<replace "#selector">><<= App.Desc.limbChange().reaction(getSlave($AS), ${JSON.stringify(oldLimbs)}, "${returnTo}")>><</replace>>`;
} }
return `<<link "Apply">><<run App.Desc.limbChange().applySelector($activeSlave, _newState)>>${s}<</link>>`; return `<<link "Apply">><<run App.Desc.limbChange().applySelector(getSlave($AS), _newState)>>${s}<</link>>`;
} }
} }
......
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