Skip to content
Snippets Groups Projects
Commit 181cabf6 authored by Arkerthan's avatar Arkerthan
Browse files

add instant option for buying prosthetics

parent 90f360bd
No related branches found
No related tags found
No related merge requests found
...@@ -230,11 +230,16 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a ...@@ -230,11 +230,16 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a
<style> <style>
.container { .container {
display: grid; display: grid;
grid-template-columns: 300px 200px 200px; grid-template-columns: 300px 150px 150px 150px;
} }
.full { .full {
grid-column-start: 2; grid-column-start: 2;
grid-column-end: 4; grid-column-end: 5;
}
.research {
grid-column-start: 3;
grid-column-end: 5;
text-align: center;
} }
</style> </style>
...@@ -244,6 +249,15 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a ...@@ -244,6 +249,15 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a
<div> <div>
<<if $researchLab.level > 0>> <<if $researchLab.level > 0>>
<<= App.UI.disabledLink(`''Construct in lab''`, ["Depending on lab speed might be faster than fitting an existing prosthetic but almost always faster than first building and than fitting it to $him."])>> <<= App.UI.disabledLink(`''Construct in lab''`, ["Depending on lab speed might be faster than fitting an existing prosthetic but almost always faster than first building and than fitting it to $him."])>>
<<else>>
<<= App.UI.disabledLink(`''Construct in lab''`, ["With a lab you could both increase speed and decrease cost."])>>
<</if>>
</div>
<div style="text-align:right">
<<if $researchLab.speed >= 300>> /* max speed */
<<= App.UI.disabledLink(`''Fast assembly''`, ["Your lab is so fast that fitting prosthetics to your slave can done instantly though you will sacrifice some efficiency."])>>
<<elseif $researchLab.level > 0>>
<<= App.UI.disabledLink(`''Fast assembly''`, ["Your lab is not fast enough to fit prosthetics instantly."])>>
<</if>> <</if>>
</div> </div>
...@@ -269,7 +283,8 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a ...@@ -269,7 +283,8 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a
<</link>> <</link>>
<</if>> <</if>>
</div> </div>
<div> <<if $prosthetics[_p].research > 0>>
<div style="text-align:center">
<<if $researchLab.level > 0 && $prosthetics[_p].research > 0>> <<if $researchLab.level > 0 && $prosthetics[_p].research > 0>>
<<link "Construct" "Prosthetics Configuration">> <<link "Construct" "Prosthetics Configuration">>
<<set $researchLab.tasks.push({ <<set $researchLab.tasks.push({
...@@ -281,6 +296,24 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a ...@@ -281,6 +296,24 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a
<</link>> <</link>>
<</if>> <</if>>
</div> </div>
<div style="text-align:right">
<<if $researchLab.speed >= 300 && $prosthetics[_p].research > 0>> /* max speed */
<<if $prosthetics[_p].amount > 0>>
<<link "From storage: <<= cashFormat(setup.prosthetics[_p].adjust * 50)>>" "Prosthetics Configuration">>
<<set cashX(forceNeg(setup.prosthetics[_p].costs * 1.5), "slaveMod", $activeSlave), addProsthetic($activeSlave, _p)>>
<</link>>
<<else>>
<<link "<<= cashFormat(setup.prosthetics[_p].costs + setup.prosthetics[_p].adjust * 100)>>" "Prosthetics Configuration">>
<<set cashX(forceNeg(setup.prosthetics[_p].costs + setup.prosthetics[_p].adjust * 100), "slaveMod", $activeSlave), addProsthetic($activeSlave, _p)>>
<</link>>
<</if>>
<</if>>
</div>
<<elseif $researchLab.level > 0>>
<div class="research">
//Not researched.//
</div>
<</if>>
<</capture>> <</capture>>
<</if>> <</if>>
<</if>> <</if>>
......
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