Trying to fix the dna t

This commit is contained in:
Artur
2020-07-03 00:55:18 +03:00
parent 6ee1eba56c
commit 365aadec54
6 changed files with 68 additions and 34 deletions
+1 -1
View File
@@ -804,7 +804,7 @@ const DnaConsoleSequencer = (props, context) => {
</Section>
) || (isMonkey && mutation?.Name !== 'Monkified') && (
<Section color="bad">
Genetic sequence corrupted. Subject diagnostic report: MONKEY.
Genetic sequence corrupted. Subject diagnostic report: MONKEY. Scramble DNA to humanize.
</Section>
) || (subjectStatus === SUBJECT_TRANSFORMING) && (
<Section color="bad">
+18 -12
View File
@@ -10,16 +10,19 @@ const VendingRow = (props, context) => {
productStock,
custom,
} = props;
const to_pay = (!product.premium
? Math.round(product.price * data.cost_mult)
: product.price
);
const pay_text = (!product.premium
? to_pay + ' cr' + data.cost_text
: to_pay + ' cr'
);
const free = (
!data.onstation
|| product.price === 0
|| (
!product.premium
&& data.department
&& data.user
&& data.department === data.user.department
)
);
return (
<Table.Row>
<Table.Cell collapsing>
@@ -69,13 +72,16 @@ const VendingRow = (props, context) => {
<Button
fluid
disabled={(
productStock === 0
|| !free && (
!data.user
|| product.price > data.user.cash
)
data.stock[product.namename] === 0
|| (
!free
&& (
!data.user
|| to_pay > data.user.cash
)
)
)}
content={free ? 'FREE' : product.price + ' cr'}
content={!free ? pay_text : 'FREE'}
onClick={() => act('vend', {
'ref': product.ref,
})} />