Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
38487b00
Commit
38487b00
authored
5 years ago
by
Arkerthan
Browse files
Options
Downloads
Patches
Plain Diff
added table to prosthetics config
parent
18b84ada
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interaction/prostheticConfig.tw
+36
-21
36 additions, 21 deletions
src/interaction/prostheticConfig.tw
with
36 additions
and
21 deletions
src/interaction/prostheticConfig.tw
+
36
−
21
View file @
38487b00
...
...
@@ -259,38 +259,49 @@ This room is lined with shelves and cabinets, it could be easily mistaken for a
| [[Bovine|Prosthetics Config][$activeSlave.tailShape = "ushi", cashX(forceNeg($modCost), "slaveMod", $activeSlave)]]
<</if>>
<<if $activeSlave.readyProsthetics.length > 0>>
<br><br>
These prosthetics are in storage or already equipped by $him:<br>
<<for _p range $activeSlave.readyProsthetics>>
<<= capFirstChar(setup.prosthetics[_p.id].name)>> <br>
<</for>>
<</if>>
<br><br>
Fit prosthetics to $him:
<style>
td.prosthetics, th.prosthetics {
padding: 0px 10px;
}
</style>
<table class="prosthetics" border="1">
<tr>
<th></th>
<th class="prosthetics">Buy and fit</th>
<th class="prosthetics">
<<= App.UI.disabledLink(`Construct in lab`, ["Takes longer than fitting an existing prosthetic but faster than first building and than fitting it to $him."])>>
</th>
</tr>
<<for _p range setup.prostheticIDs>>
<<if _p != "erectile">> /* exclude erectile implant */
<<if $adjustProsthetics.findIndex(function(p) {return p.id == _p && p.slaveID == $activeSlave.ID}) != -1 || $researchLab.tasks.findIndex(function(p) {return p.type == "craftFit" && p.id == _p && p.slaveID == $activeSlave.ID}) != -1>><br>
//<<= capFirstChar(addA(setup.prosthetics[_p].name))>> is already being fitted to $him.//
<<elseif setup.prosthetics[_p].level > $prostheticsUpgrade>><br>
//You need better contracts to buy <<= addA(setup.prosthetics[_p].name)>>.//
<<elseif $activeSlave.readyProsthetics.findIndex(function(p) {return p.id == _p}) == -1>>
<br>
<tr>
<td class="prosthetics"><<= capFirstChar(setup.prosthetics[_p].name)>></td>
<<if $adjustProsthetics.findIndex(function(p) {return p.id == _p && p.slaveID == $activeSlave.ID}) != -1 || $researchLab.tasks.findIndex(function(p) {return p.type == "craftFit" && p.id == _p && p.slaveID == $activeSlave.ID}) != -1>>
<td class="prosthetics" colspan="2">//Already being fitted to $him.//</td>
<<elseif setup.prosthetics[_p].level > $prostheticsUpgrade>>
<td class="prosthetics" colspan="2">//Better contracts needed to buy this.//</td>
<<elseif $activeSlave.readyProsthetics.findIndex(function(p) {return p.id == _p}) != -1>>
<td class="prosthetics" colspan="2">//Already finished.//</td>
<<else>>
<<capture _p>>
<td class="prosthetics">
<<if $prosthetics[_p].amount > 0>>
<<link "F
it <<= addA(setup.prosthetics[_p].name)>> from storage to <<= $him>>
" "Prosthetics Config">>
<<link "F
rom storage
" "Prosthetics Config">>
<<set $adjustProsthetics.push({id: _p, workLeft: setup.prosthetics[_p].adjust, slaveID: $activeSlave.ID}), $prosthetics[_p].amount -= 1>>
<</link>>
<<else>>
<<link "
Buy and fit <<= addA
(setup.prosthetics[_p].
name)>> to <<= $him
>>" "Prosthetics Config">>
<<link "
<<= cashFormat
(setup.prosthetics[_p].
costs)
>>" "Prosthetics Config">>
<<set $adjustProsthetics.push({id: _p, workLeft: setup.prosthetics[_p].adjust, slaveID: $activeSlave.ID}), cashX(forceNeg(setup.prosthetics[_p].costs), "slaveMod", $activeSlave)>>
<</link>>
//Costs <<= cashFormat(setup.prosthetics[_p].costs)>>.//
<</if>>
<<if $researchLab.level > 0 & $prosthetics[_p].research > 0>>
<br>
<<link "Construct <<= addA(setup.prosthetics[_p].name)>> for <<= $him>>" "Prosthetics Config">>
</td>
<td class="prosthetics">
<<if $researchLab.level > 0 && $prosthetics[_p].research > 0>>
<<link "Construct" "Prosthetics Config">>
<<set $researchLab.tasks.push({
type: "craftFit",
id: _p,
...
...
@@ -298,12 +309,16 @@ Fit prosthetics to $him:
slaveID: $activeSlave.ID})>>
/* 1.5: longer than adjust, but faster than adjust+craft. */
<</link>>
//Will take longer than fitting an existing prosthetic but faster than first building it and than fitting it to $him.//
<<elseif $researchLab < 1>>
//no lab//
<</if>>
</td>
<</capture>>
<</if>>
</tr>
<</if>>
<</for>>
</table>
/* base screen END */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment