Skip to content

Commit

Permalink
Fixes 2647 (shiptest-ss13#2648)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request

Arcane machine tried to smelt up to 10 sheets of material but the alloy
smelting proc didn't get a smelting number passed so it just spawned 1
sheet and called it a day.

## Why It's Good For The Game

fixes shiptest-ss13#2647

## Changelog

:cl:
fix: ore smelter no longer obliterates materials when smelting alloys
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

Signed-off-by: Theos <[email protected]>
  • Loading branch information
SomeguyManperson authored and MysticalFaceLesS committed Jan 27, 2024
1 parent 4f18829 commit c5f0412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/mining/machine_processing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
var/datum/component/material_container/materials = GetComponent(/datum/component/material_container)
materials.use_materials(alloy.materials, amount)

generate_mineral(alloy.build_path)
generate_mineral(alloy.build_path, amount)

/obj/machinery/mineral/processing_unit/proc/can_smelt(datum/design/D)
if(D.make_reagents.len)
Expand All @@ -271,8 +271,8 @@

return build_amount

/obj/machinery/mineral/processing_unit/proc/generate_mineral(P)
var/O = new P(src)
/obj/machinery/mineral/processing_unit/proc/generate_mineral(P, amount)
var/O = new P(src, amount)
unload_mineral(O)

/obj/machinery/mineral/processing_unit/on_deconstruction()
Expand Down

0 comments on commit c5f0412

Please sign in to comment.