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

Robot parts now have a material (so you can reclaim them) #17338

Merged
merged 11 commits into from Jan 24, 2024

Conversation

Valtsu0
Copy link
Contributor

@Valtsu0 Valtsu0 commented Dec 15, 2023

[Materials][Feature]

About the PR

robot parts will now set the material to the one used in fabricating it (default being steel). This means that the robot parts can be reclaimed to get the materials back.

Since the material used doesn't matter, and the sprite of a borg isn't changed, changing appearance for different materials is disabled for robot parts. (Radioactive parts will still glow, and erebite has the orange pulsing effect)

Due to a limitation in material code allowing only one material being set (wires have an hard-coded exception), threads and screen heads will only give the sturdy metal back. Conveniently, these are the parts that basically every borg wants so there isn't much of a reason to reclaim them.

Why's this needed?

Roboticists usually end up with a bunch of extra legs and heads from roundstart borgs/part crates, so who not throw them into the reclaimer

Changelog

(u)Valtsu0
(+)Robot parts can now be reclaimed.

@keywordlabeler keywordlabeler bot added A-Materials Deals with our materials system in some way C-Feature A new feature or enhancements to existing features labels Dec 15, 2023
@github-actions github-actions bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 15, 2023
@Vincent983
Copy link
Contributor

can heads with brains inside be reclaimed?

@Valtsu0
Copy link
Contributor Author

Valtsu0 commented Dec 17, 2023

can heads with brains inside be reclaimed?

Yes. Note that you can reclaim brains by just putting them into the reclaimer.

code/obj/item/mob_parts/robot_parts.dm Outdated Show resolved Hide resolved
@github-actions github-actions bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 22, 2023
@Valtsu0 Valtsu0 requested a review from ZeWaka December 22, 2023 17:27
@github-actions github-actions bot added the S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict label Jan 3, 2024
@github-actions github-actions bot added S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict and removed S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict labels Jan 4, 2024
code/obj/item/mob_parts/robot_parts.dm Outdated Show resolved Hide resolved
@@ -1352,159 +1352,176 @@ ABSTRACT_TYPE(/datum/manufacture)
/datum/manufacture/robo_frame
name = "Cyborg Frame"
item_paths = list("MET-2")
item_amounts = list(18)
item_amounts = list(ROBOT_FRAME_COST * 10)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these all * 10? Why not just have the defines be 10x larger?

Copy link
Contributor Author

@Valtsu0 Valtsu0 Jan 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manufacturing for some reason has the values as 10 times larger as the material value used in the item.
if i had the defines 10 times larger, i would have to do:
material_amt = ROBOT_FRAME_COST / 10

For example in order for sheet to cost 0.1 metal it has to have 1 in the recipe and in order to be reclaimed for the same amount it has to have a material amount of 0.1

@github-actions github-actions bot added S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict and removed S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict labels Jan 13, 2024
@github-actions github-actions bot removed the S-Merge-Conflict Applied and removed when a PR has or no longer has a merge conflict label Jan 22, 2024
@TobleroneSwordfish TobleroneSwordfish merged commit 4f88e90 into goonstation:master Jan 24, 2024
15 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Materials Deals with our materials system in some way C-Feature A new feature or enhancements to existing features size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants