Skip to content

Commit

Permalink
Merge pull request #1039 from Goof-Commits/sudsandsoap
Browse files Browse the repository at this point in the history
Hot Water and Suds
  • Loading branch information
Lutowski authored Dec 20, 2024
2 parents 8e055c1 + 2bbb705 commit 57ce533
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion _maps/map_files/dun_manor/azure_forest.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -6132,7 +6132,7 @@
/obj/item/reagent_containers/glass/bucket/wooden{
pixel_y = 15
},
/obj/item/bath/soap,
/obj/item/soap/herbal,
/turf/open/floor/rogue/greenstone,
/area/rogue/under/cave/dungeon1/gethsmane)
"Vx" = (
Expand Down
4 changes: 2 additions & 2 deletions _maps/map_files/rockhill/rockhill.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -12567,8 +12567,8 @@
/area/rogue/indoors/town/shop)
"myB" = (
/obj/structure/closet/crate/chest/crafted,
/obj/item/bath/soap,
/obj/item/bath/soap,
/obj/item/soap/herbal,
/obj/item/soap/herbal,
/turf/open/floor/rogue/ruinedwood{
icon_state = "weird1"
},
Expand Down
14 changes: 7 additions & 7 deletions code/modules/jobs/job_types/roguetown/peasants/bathmaid.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
..()
shoes = /obj/item/clothing/shoes/roguetown/sandals
neck = /obj/item/storage/belt/rogue/pouch/coins/poor
r_hand = /obj/item/bath/soap
r_hand = /obj/item/soap/herbal
belt = /obj/item/storage/belt/rogue/leather/cloth
beltl = /obj/item/roguekey/nightmaiden
if(H.pronouns == SHE_HER || H.pronouns == THEY_THEM_F)
Expand Down Expand Up @@ -58,7 +58,7 @@

// Washing Implements

/obj/item/bath/soap
/obj/item/soap/herbal
name = "herbal soap"
desc = "A soap made from various herbs"
icon = 'icons/obj/items_and_weapons.dmi'
Expand All @@ -70,14 +70,14 @@
throwforce = 0
throw_speed = 1
throw_range = 7
var/cleanspeed = 35 //slower than mop
var/uses = 10
cleanspeed = 35 //slower than mop
uses = 10

/obj/item/bath/soap/ComponentInitialize()
/obj/item/soap/herbal/ComponentInitialize()
. = ..()
AddComponent(/datum/component/slippery, 80)

/obj/item/bath/soap/examine(mob/user)
/obj/item/soap/examine(mob/user)
. = ..()
var/max_uses = initial(uses)
var/msg = "It looks like it was freshly made."
Expand All @@ -96,7 +96,7 @@
msg = "It's seen some light use, but it's still pretty fresh."
. += span_notice("[msg]")

/obj/item/bath/soap/attack(mob/target, mob/user)
/obj/item/soap/attack(mob/target, mob/user)
var/turf/bathspot = get_turf(target)
if(!istype(bathspot, /turf/open/water/bath))
to_chat(user, span_warning("They must be in the bath water!"))
Expand Down
7 changes: 3 additions & 4 deletions code/modules/mob/living/carbon/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,9 @@

/mob/living/carbon/human/handle_inwater()
. = ..()
if(!(mobility_flags & MOBILITY_STAND))
if(istype(loc, /turf/open/water/bath))
if(!wear_armor && !wear_shirt && !wear_pants)
add_stress(/datum/stressevent/bathwater)
if(istype(loc, /turf/open/water/bath))
if(!wear_armor && !wear_shirt && !wear_pants)
add_stress(/datum/stressevent/bathwater)

/mob/living/carbon/proc/get_complex_pain()
var/amt = 0
Expand Down

0 comments on commit 57ce533

Please sign in to comment.