Trying to fix the dna t
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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,
|
||||
})} />
|
||||
|
||||
Reference in New Issue
Block a user