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:
TemporalOroboros
2020-06-21 20:03:19 -03:00
committed by GitHub
co-authored by Rohesie
parent 356e369109
commit e78d82592f
74 changed files with 290 additions and 257 deletions
+1 -1
View File
@@ -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 ..()
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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