Skip to content

Commit 61d54e2

Browse files
authored
Disposals tweaks (#1058)
* funny buff * relaymove too
1 parent 9ea2fb5 commit 61d54e2

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

code/modules/recycling/disposal/bin.dm

-3
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@
301301

302302
// handle machine interaction
303303

304-
/obj/machinery/disposal/bin/ui_state(mob/user)
305-
return GLOB.notcontained_state
306-
307304
/obj/machinery/disposal/bin/ui_interact(mob/user, datum/tgui/ui)
308305
if(machine_stat & BROKEN)
309306
return

code/modules/recycling/disposal/holder.dm

+6-2
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,14 @@
142142
/obj/structure/disposalholder/relaymove(mob/living/user, direction)
143143
if(user.incapacitated())
144144
return
145-
for(var/mob/M in range(5, get_turf(src)))
146-
M.show_message("<FONT size=[max(0, 5 - get_dist(src, M))]>CLONG, clong!</FONT>", MSG_AUDIBLE)
145+
146+
var/message = pick("CLUNK!", "CLONK!", "CLANK!", "BANG!")
147+
audible_message(span_hear("[icon2html(src, hearers(src) | user)] [message]"))
147148
playsound(src.loc, 'sound/effects/clang.ogg', 50, FALSE, FALSE)
148149

150+
var/armor = user.run_armor_check(attack_flag = BLUNT, silent = TRUE)
151+
user.apply_damage(2, BRUTE, blocked = armor, spread_damage = TRUE)
152+
149153
// called to vent all gas in holder to a location
150154
/obj/structure/disposalholder/proc/vent_gas(turf/T)
151155
T.assume_air(gas)

code/modules/recycling/disposal/pipe.dm

+13-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,19 @@
8383
if(H2 && !H2.active)
8484
H.merge(H2)
8585

86-
for(var/mob/living/L in H)
87-
var/armor = L.run_armor_check(attack_flag = BLUNT, silent = TRUE)
88-
L.apply_damage(3, BRUTE, blocked = armor, spread_damage = TRUE)
86+
if(prob(5) && (locate(/mob/living) in H))
87+
var/list/mobs = list()
88+
89+
for(var/mob/living/L in H)
90+
mobs += L
91+
92+
var/message = pick("CLUNK!", "CLONK!", "CLANK!", "BANG!")
93+
audible_message(span_hear("[icon2html(src, hearers(src) | mobs)] [message]"))
94+
playsound(src, 'sound/effects/clang.ogg', 50, FALSE, FALSE)
95+
96+
for(var/mob/living/L as anything in mobs)
97+
var/armor = L.run_armor_check(attack_flag = BLUNT, silent = TRUE)
98+
L.apply_damage(5, BRUTE, blocked = armor, spread_damage = TRUE)
8999

90100
H.forceMove(P)
91101
return P

tgui/packages/tgui-panel/styles/goon/chat-dark.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ em {
502502
}
503503

504504
.hear {
505-
color: #7996ff;
505+
color: #b6b4a9;
506506
font-style: italic;
507507
}
508508

@@ -516,7 +516,7 @@ em {
516516
}
517517

518518
.unconscious {
519-
color: #cac5a5;
519+
color: #b6b4a9;
520520
font-weight: bold;
521521
}
522522

0 commit comments

Comments
 (0)