Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] General maintainence for HPLC #2862

Merged
merged 2 commits into from
Mar 12, 2024
Merged

Conversation

NaakaKo
Copy link
Collaborator

@NaakaKo NaakaKo commented Mar 10, 2024

Original PR: https://api.github.com/repos/tgstation/tgstation/pulls/81613

About The Pull Request

Moves around code for portable chem mixer & chem heater. No functional changes, As for the HPLC

1. Qol

  • Adds examines & screentips for
    1. Screwdriver, crowbar & wrench acts
    2. Inserting & replacing input/output beakers
    3. Alt click ejecting input/output beakers
  • Balloon alerts replaces chat messages to reduce spam.
  • HPLC will now display the status of each reagent if it can be purified or not before starting the refining process thus saving you the headache of pressing the start button only to waste power & time & get no work done

2. Code Improvements

  • Moved screwdriver, wrench & crowbar acts out of attackby() into their respective tool act PROCS
  • Merged procs calculate_largest_mass() & calculate_smallest_mass() procs into a single proc calculate_mass() with a boolean var to decide if we want the smallest or largest mass reagent
  • Computes estimated time only when UI changes & not every ui update

3. Fixes

  • HPLC won't accept hologram or abstract items
  • HPLC now displays off icon state & pauses processing when the machine is either opened, powered off, unanchored or broken
  • HPLC will ignore reagents that are either already at max purity or are inverse thus lowering eta & work done to purify your remaining reagents

4. Refactor

  • Converted UI to typescript, moved vars such as in_range & color to the client side to reduce data sent.

Changelog

🆑
qol: adds examines & screentips for HPLC
qol: HPLC will now display the status of each reagent if it can be purified or not before starting the refining process.
fix: HPLC won't accept hologram items.
fix: HPLC uses the correct off icon state & pauses processing when opened, powered off, unanchored or broken
fix: HPLC will ignore reagents that are either already at max purity or are inverse thus lowering eta & work done to purify your remaining reagents
code: merged procs to reduce code size. auto Doc procs for HPLC
refactor: converted UI to typescript.
/:cl:

SyncIt21 and others added 2 commits March 10, 2024 17:21
## About The Pull Request

Moves around code for portable chem mixer & chem heater. No functional
changes, As for the HPLC

**1. Qol**
- Adds examines & screentips for
    1) Screwdriver, crowbar & wrench acts
    2) Inserting & replacing input/output beakers
    3) Alt click ejecting input/output beakers
- Balloon alerts replaces chat messages to reduce spam.
- HPLC will now display the status of each reagent if it can be purified
or not before starting the refining process thus saving you the headache
of pressing the start button only to waste power & time & get no work
done

**2. Code Improvements**
- Moved screwdriver, wrench & crowbar acts out of `attackby()` into
their respective tool act PROCS
- Merged procs `calculate_largest_mass()` & ` calculate_smallest_mass()`
procs into a single proc `calculate_mass()` with a boolean var to decide
if we want the smallest or largest mass reagent
  - Computes estimated time only when UI changes & not every ui update
 
**3. Fixes**
 - HPLC won't accept hologram or abstract items
- HPLC now displays off icon state & pauses processing when the machine
is either opened, powered off, unanchored or broken
- HPLC will ignore reagents that are either already at max purity or are
inverse thus lowering eta & work done to purify your remaining reagents

**4. Refactor**
- Converted UI to typescript, moved vars such as `in_range` & `color` to
the client side to reduce data sent.
@NaakaKo NaakaKo added the Upstream PR Merged Used by the mirror bot. label Mar 10, 2024
@CliffracerX CliffracerX merged commit f166ab5 into master Mar 12, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream PR Merged Used by the mirror bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants