Skip to content

Commit

Permalink
[MIRROR] Final optimizations for reagent holder (#804)
Browse files Browse the repository at this point in the history
* [MIRROR] Final optimizations for reagent holder [MDB IGNORE] (#25216)

* Final optimizations for reagent holder

* Modular

* Delete holder.dm

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: SyncIt21 <[email protected]>
Co-authored-by: Giz <[email protected]>
  • Loading branch information
4 people authored Nov 24, 2023
1 parent 6495cfe commit 0027024
Show file tree
Hide file tree
Showing 10 changed files with 2,030 additions and 2,048 deletions.
2 changes: 0 additions & 2 deletions code/datums/components/crafting/crafting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@
if(RG.volume > amt)
RG.volume -= amt
data = RG.data
RC.reagents.conditional_update(RC)
RC.update_appearance(UPDATE_ICON)
RG = locate(RG.type) in Deletion
RG.volume = amt
Expand All @@ -285,7 +284,6 @@
surroundings -= RC
amt -= RG.volume
RC.reagents.reagent_list -= RG
RC.reagents.conditional_update(RC)
RC.update_appearance(UPDATE_ICON)
RGNT = locate(RG.type) in Deletion
RGNT.volume += RG.volume
Expand Down
1 change: 0 additions & 1 deletion code/game/atom/_atom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@
if(!reagents)
reagents = new()
reagents.reagent_list.Add(part)
reagents.conditional_update()
else if(ismovable(part))
var/atom/movable/object = part
if(isliving(object.loc))
Expand Down
Loading

0 comments on commit 0027024

Please sign in to comment.