Skip to content

Commit

Permalink
okay actually the time
Browse files Browse the repository at this point in the history
  • Loading branch information
kiVts committed Jun 26, 2024
1 parent c68e29a commit 0582897
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
27 changes: 14 additions & 13 deletions code/modules/reagents/chemistry_machinery/chem_simulator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -560,21 +560,22 @@
if(mode == MODE_RELATE && isnull(reference))
status_bar = "NO REFERENCE DATA DETECTED"
return FALSE
if(reference && target)
if(!reference.completed)
status_bar = "INCOMPLETE DATA DETECTED IN REFERENCE"
return FALSE
if(reference_property)
if(target.data.get_property(reference_property.name))
status_bar = "REFERENCE PROPERTY ALREADY IN TARGET"
if(mode == MODE_RELATE)
if(reference && target)
if(!reference.completed)
status_bar = "INCOMPLETE DATA DETECTED IN REFERENCE"
return FALSE
if(target_property)
if(target_property.level != reference_property.level)
status_bar = "REFERENCE AND TARGET PROPERTY MUST BE OF EQUAL LEVELS"
return FALSE
if(reference_property.category & PROPERTY_TYPE_UNADJUSTABLE)
status_bar = "REFERENCE PROPERTY CAN NOT BE SIMULATED"
if(reference_property)
if(target.data.get_property(reference_property.name))
status_bar = "REFERENCE PROPERTY ALREADY IN TARGET"
return FALSE
if(target_property)
if(target_property.level != reference_property.level)
status_bar = "REFERENCE AND TARGET PROPERTY MUST BE OF EQUAL LEVELS"
return FALSE
if(reference_property.category & PROPERTY_TYPE_UNADJUSTABLE)
status_bar = "REFERENCE PROPERTY CAN NOT BE SIMULATED"
return FALSE
if(mode == MODE_CREATE)
if(!LAZYLEN(creation_template))
status_bar = "TEMPLATE IS EMPTY"
Expand Down
10 changes: 5 additions & 5 deletions tgui/packages/tgui/interfaces/ChemSimulator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ export const InfoPanel = () => {
<h4>RESEARCH CREDITS: {credits}</h4>
</ProgressBar>
</Flex.Item>
<Flex.Item fontSize={'16px'} bold mt={1}>
<Flex.Item fontSize={'13px'} bold mt={1}>
STATUS: {status}
</Flex.Item>
<Flex.Item fontSize={'14px'} mt={0.5}>
<Flex.Item fontSize={'13px'} mt={0.5}>
ESTIMATED SIMULATIONG COST: {estimated_cost}
</Flex.Item>
<Flex.Item fontSize={'14px'} mt={0.5}>
<Flex.Item fontSize={'13px'} mt={0.5}>
TARGET NAME: {chemical_name}
</Flex.Item>
<Flex.Item fontSize={'14px'} mt={0.5}>
<Flex.Item fontSize={'13px'} mt={0.5}>
REFERENCE NAME: {reference_name}
</Flex.Item>
<Flex.Item fontSize={'14px'} mt={0.5}>
<Flex.Item fontSize={'13px'} mt={0.5}>
OVERDOSE LEVEL AFTER SIMULATION: {od_level}
</Flex.Item>
</Flex>
Expand Down

0 comments on commit 0582897

Please sign in to comment.