What kind of a PR is Soap? (#9306)

This commit is contained in:
Doxxmedearly
2020-07-09 21:11:34 -03:00
committed by GitHub
parent f41765b256
commit a058e947b2
4 changed files with 18 additions and 5 deletions
+4 -2
View File
@@ -19,16 +19,17 @@
var/key_data
var/clean_msg
var/last_clean
var/capacity = 10
drop_sound = 'sound/misc/slip.ogg'
/obj/item/soap/New()
..()
create_reagents(10)
create_reagents(capacity)
wet()
/obj/item/soap/proc/wet()
playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
reagents.add_reagent(/datum/reagent/spacecleaner, 10)
reagents.add_reagent(/datum/reagent/spacecleaner, capacity)
/obj/item/soap/attackby(var/obj/item/I, var/mob/user)
if(istype(I, /obj/item/key))
@@ -112,6 +113,7 @@
desc = "An untrustworthy bar of soap. Smells of fear."
icon_state = "soapsyndie"
item_state = "soapsyndie"
capacity = 20
/obj/item/soap/space_soap
name = "Soap"