mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Refactors reagent exposure code (#51396)
* Refactors reagent exposure code Removes istype clutter. Renames a few procs * == TRUE Adjusts COMPONENT_NO_EXPOSE_REAGENTS bitflag offset. TODO: Remove comment Co-authored-by: Rohesie <rohesie@gmail.com> * == TRUE Adjusts COMONENT_NO_EXPOSE REAGENTS bitflag offset. Removes comment Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
co-authored by
Rohesie
parent
356e369109
commit
e78d82592f
@@ -88,7 +88,7 @@
|
||||
user.visible_message("<span class='notice'>[user] begins to empty the contents of [src].</span>", "<span class='notice'>You begin to empty the contents of [src]...</span>")
|
||||
if(I.use_tool(src, user, 30))
|
||||
to_chat(usr, "<span class='notice'>You empty the contents of [src]'s bucket onto the floor.</span>")
|
||||
reagents.reaction(src.loc)
|
||||
reagents.expose(src.loc)
|
||||
src.reagents.clear_reagents()
|
||||
else
|
||||
return ..()
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
/obj/machinery/shower/proc/wash_atom(atom/A)
|
||||
A.washed(src)
|
||||
reagents.reaction(A, TOUCH, reaction_volume)
|
||||
reagents.expose(A, TOUCH, reaction_volume)
|
||||
|
||||
if(isliving(A))
|
||||
check_heat(A)
|
||||
|
||||
@@ -359,7 +359,7 @@
|
||||
O.acid_level = 0
|
||||
create_reagents(5)
|
||||
reagents.add_reagent(dispensedreagent, 5)
|
||||
reagents.reaction(O, TOUCH)
|
||||
reagents.expose(O, TOUCH)
|
||||
user.visible_message("<span class='notice'>[user] washes [O] using [src].</span>", \
|
||||
"<span class='notice'>You wash [O] using [src].</span>")
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user