Files
Bubberstation/code/modules/research
SkyratBot 1522a303fd [MIRROR] RPED can now install certain stack components and display more verbose part information [MDB IGNORE] (#17731)
* RPED can now install certain stack components and display more verbose part information (#71102)

**Note :** Rehashed & cleaned up version of PR
[#71064](https://github.com/tgstation/tgstation/pull/71064). That one
contained unrelated commits and was so bad to the point it had be
labeled with DNM. This is the clean version of it.

## About The Pull Request
Rapid part exchange device RPED & Bluespace version of it BRPED can now

A) pick up 4 types of materials
  - glass sheets[max 30]
  - plasteel[max 30]
  - cable coil[max 30]
- Bluespace[ore,refined,artificial,stack] total sum of all these should
not exceed 30
 and install them in an incomplete machine frame

B)display more verbose part information[number of parts for each type
including for stack components]

## Why It's Good For The Game

A)Some machines types such as

- [thermo
machines](https://tgstation13.org/wiki/Machines#Freezer.2FHeater)
- [electrolyzers](https://tgstation13.org/wiki/Machines#Electrolyzer)
- crystallizer=10 cable pieces , 10 glass sheets , 5 plasteel sheets

All require either cable ,glass or plasteel. Usually you have to carry
these components inside your backpack which occupy space there and later
take it out from there and install it manually by hand and then use RPED
or BRPED on the machine frame.

This feature now combines these 2 steps into 1 step thus making
installing machine frames much faster and you also saves space inside
your backpack as these are now carried inside the RPED itself

You need to insert the exact stack type capacity available inside the
RPED for it to work i.e. if you pick up 5 glass sheets then later you
need a stack of exactly 25 glass sheets to complete the stack. This is
easier from a coding perspective so we don't have to deal with
subtracting & updating appearances of the remaining stack on the ground
or the user hand.

B) When using the RPED or BRPED to display machine part information
these are the new formats

Using an RPED on an thermo machine
![Screenshot
(42)](https://user-images.githubusercontent.com/110812394/199978302-bf2e16a8-4f73-4467-be60-4a4fa2ef6468.png)

Using an RPED on the crystallizer
![Screenshot
(43)](https://user-images.githubusercontent.com/110812394/199978628-6fb0bf2b-978c-490d-a2e1-e5d1d72b460d.png)

##Change Log
🆑
add: checks while inserting stack materials into an RPED and their
amounts
code: sorting of RPED part components to sort stack materials by their
ratings
del: old way of displaying parts when clicking on an machine frame with
it
add:new way of displaying part info which displays number of parts
including for stack materials
/🆑

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* RPED can now install certain stack components and display more verbose part information

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
2022-11-24 22:11:37 +00:00
..
2022-11-15 06:59:06 +00:00
2022-11-15 06:59:06 +00:00