From 05dc5f1cdcbf3ca1ab73cf3ea61c76e14aa6544a Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Sun, 20 Jan 2019 00:33:27 -0500 Subject: [PATCH] re-add support for what assistant is buying --- src/uncategorized/costsBudget.tw | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index 0c73efb93d1..421f0f271a9 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -1124,6 +1124,62 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <</if>> </td> </tr> + + <tr> + <td>Fuckdolls: [[Assistant's|Personal assistant options][$nextButton = "Back to Budget", $nextLink = "Costs Budget"]] flipping</td> + <td> + <<if Math.trunc($lastWeeksCashIncome.fuckdollsTransfer) > 0>> + @@.yellowgreen;+<<print cashFormat(Math.trunc($lastWeeksCashIncome.fuckdollsTransfer))>>@@ + <<else>> + <<print cashFormat(Math.trunc($lastWeeksCashIncome.fuckdollsTransfer))>> + <</if>> + </td> + <td> + <<if Math.trunc($lastWeeksCashExpenses.fuckdollsTransfer) < 0>> + @@.red;-<<print cashFormat(Math.abs(Math.trunc($lastWeeksCashExpenses.fuckdollsTransfer)))>>@@ + <<else>> + <<print cashFormat(Math.trunc($lastWeeksCashExpenses.fuckdollsTransfer))>> + <</if>> + </td> + <td> + <<set $lastWeeksCashProfits.fuckdollsTransfer = ($lastWeeksCashIncome.fuckdollsTransfer + $lastWeeksCashExpenses.fuckdollsTransfer)>> + <<if $lastWeeksCashProfits.fuckdollsTransfer > 0>> + @@.yellowgreen;+<<print cashFormat(Math.trunc($lastWeeksCashProfits.fuckdollsTransfer))>>@@ + <<elseif Math.trunc($lastWeeksCashProfits.fuckdollsTransfer) == 0>> + <<print cashFormat(Math.trunc($lastWeeksCashProfits.fuckdollsTransfer))>> + <<else>> + @@.red;-<<print cashFormat(Math.abs(Math.trunc($lastWeeksCashProfits.fuckdollsTransfer)))>>@@ + <</if>> + </td> + </tr> + + <tr> + <td>Bioreactors: [[Assistant's|Personal assistant options][$nextButton = "Back to Budget", $nextLink = "Costs Budget"]] flipping</td> + <td> + <<if Math.trunc($lastWeeksCashIncome.menialBioreactorsTransfer) > 0>> + @@.yellowgreen;+<<print cashFormat(Math.trunc($lastWeeksCashIncome.menialBioreactorsTransfer))>>@@ + <<else>> + <<print cashFormat(Math.trunc($lastWeeksCashIncome.menialBioreactorsTransfer))>> + <</if>> + </td> + <td> + <<if Math.trunc($lastWeeksCashExpenses.menialBioreactorsTransfer) < 0>> + @@.red;-<<print cashFormat(Math.abs(Math.trunc($lastWeeksCashExpenses.menialBioreactorsTransfer)))>>@@ + <<else>> + <<print cashFormat(Math.trunc($lastWeeksCashExpenses.menialBioreactorsTransfer))>> + <</if>> + </td> + <td> + <<set $lastWeeksCashProfits.menialBioreactorsTransfer = ($lastWeeksCashIncome.menialBioreactorsTransfer + $lastWeeksCashExpenses.menialBioreactorsTransfer)>> + <<if $lastWeeksCashProfits.menialBioreactorsTransfer > 0>> + @@.yellowgreen;+<<print cashFormat(Math.trunc($lastWeeksCashProfits.menialBioreactorsTransfer))>>@@ + <<elseif Math.trunc($lastWeeksCashProfits.menialBioreactorsTransfer) == 0>> + <<print cashFormat(Math.trunc($lastWeeksCashProfits.menialBioreactorsTransfer))>> + <<else>> + @@.red;-<<print cashFormat(Math.abs(Math.trunc($lastWeeksCashProfits.menialBioreactorsTransfer)))>>@@ + <</if>> + </td> + </tr> <</if>> <<if $lastWeeksCashIncome.fuckdollsTransfer || $lastWeeksCashExpenses.fuckdollsTransfer>> -- GitLab