Soap & clean proc refactor (#17744)

* Automatic changelog compile [ci skip]

* soap

* Washy wash

* Big wash

* washy

* Update soap.dm

* washiest

* .

* .

* Washes the linter

* scrubs the linter

* washes indentation

* .

* updaet

---------

Co-authored-by: vorestation-ci[bot] <199609141+vorestation-ci[bot]@users.noreply.github.com>
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Guti
2025-05-31 10:31:15 -07:00
committed by GitHub
co-authored by vorestation-ci[bot] <199609141+vorestation-ci[bot]@users.noreply.github.com> ShadowLarkens Cameron Lennox
parent 5961096074
commit 9eb876de72
35 changed files with 448 additions and 311 deletions
-111
View File
@@ -27,117 +27,6 @@
drop_sound = 'sound/items/drop/device.ogg'
pickup_sound = 'sound/items/pickup/device.ogg'
/obj/item/soap
name = "soap"
desc = "A cheap bar of soap. Smells of lye."
gender = PLURAL
icon = 'icons/obj/soap.dmi'
icon_state = "soap"
flags = NOCONDUCT
w_class = ITEMSIZE_SMALL
slot_flags = SLOT_HOLSTER
throwforce = 0
throw_speed = 4
throw_range = 20
var/randomize = TRUE
var/square_chance = 10
/obj/item/soap/Initialize(mapload)
if(randomize && prob(square_chance))
icon_state = "[icon_state]-alt"
. = ..()
/obj/item/soap/nanotrasen
desc = "A NanoTrasen-brand bar of soap. Smells of phoron, a years-old marketing gimmick."
icon_state = "soapnt"
/obj/item/soap/deluxe
icon_state = "soapdeluxe"
/obj/item/soap/deluxe/Initialize(mapload)
. = ..()
desc = "A deluxe Waffle Co. brand bar of soap. Smells of [pick("lavender", "vanilla", "strawberry", "chocolate" ,"space")]."
/obj/item/soap/syndie
desc = "An untrustworthy bar of soap. Smells of fear."
icon_state = "soapsyndie"
/obj/item/soap/space_soap
desc = "Smells like hot metal and walnuts."
icon_state = "space_soap"
/obj/item/soap/water_soap
desc = "Smells like chlorine."
icon_state = "water_soap"
/obj/item/soap/fire_soap
desc = "Smells like a campfire."
icon_state = "fire_soap"
/obj/item/soap/rainbow_soap
desc = "Smells sickly sweet."
icon_state = "rainbow_soap"
/obj/item/soap/diamond_soap
desc = "Smells like saffron and vanilla."
icon_state = "diamond_soap"
/obj/item/soap/uranium_soap
desc = "Smells not great... Not terrible."
icon_state = "uranium_soap"
/obj/item/soap/silver_soap
desc = "Smells like birch and amaranth."
icon_state = "silver_soap"
/obj/item/soap/brown_soap
desc = "Smells like cinnamon and cognac."
icon_state = "brown_soap"
/obj/item/soap/white_soap
desc = "Smells like nutmeg and oats."
icon_state = "white_soap"
/obj/item/soap/grey_soap
desc = "Smells like bergamot and lilies."
icon_state = "grey_soap"
/obj/item/soap/pink_soap
desc = "Smells like bubblegum."
icon_state = "pink_soap"
/obj/item/soap/purple_soap
desc = "Smells like lavender."
icon_state = "purple_soap"
/obj/item/soap/blue_soap
desc = "Smells like cardamom."
icon_state = "blue_soap"
/obj/item/soap/cyan_soap
desc = "Smells like bluebells and peaches."
icon_state = "cyan_soap"
/obj/item/soap/green_soap
desc = "Smells like a freshly mowed lawn."
icon_state = "green_soap"
/obj/item/soap/yellow_soap
desc = "Smells like citron and ginger."
icon_state = "yellow_soap"
/obj/item/soap/orange_soap
desc = "Smells like oranges and dark chocolate."
icon_state = "orange_soap"
/obj/item/soap/red_soap
desc = "Smells like cherries."
icon_state = "red_soap"
/obj/item/soap/golden_soap
desc = "Smells like honey."
icon_state = "golden_soap"
/obj/item/bikehorn
name = "bike horn"
desc = "A horn off of a bicycle."