Skip to content

Commit

Permalink
Disposals tweaks (#1058)
Browse files Browse the repository at this point in the history
* funny buff

* relaymove too
  • Loading branch information
Kapu1178 authored Aug 15, 2024
1 parent 9ea2fb5 commit 61d54e2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
3 changes: 0 additions & 3 deletions code/modules/recycling/disposal/bin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@

// handle machine interaction

/obj/machinery/disposal/bin/ui_state(mob/user)
return GLOB.notcontained_state

/obj/machinery/disposal/bin/ui_interact(mob/user, datum/tgui/ui)
if(machine_stat & BROKEN)
return
Expand Down
8 changes: 6 additions & 2 deletions code/modules/recycling/disposal/holder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,14 @@
/obj/structure/disposalholder/relaymove(mob/living/user, direction)
if(user.incapacitated())
return
for(var/mob/M in range(5, get_turf(src)))
M.show_message("<FONT size=[max(0, 5 - get_dist(src, M))]>CLONG, clong!</FONT>", MSG_AUDIBLE)

var/message = pick("CLUNK!", "CLONK!", "CLANK!", "BANG!")
audible_message(span_hear("[icon2html(src, hearers(src) | user)] [message]"))
playsound(src.loc, 'sound/effects/clang.ogg', 50, FALSE, FALSE)

var/armor = user.run_armor_check(attack_flag = BLUNT, silent = TRUE)
user.apply_damage(2, BRUTE, blocked = armor, spread_damage = TRUE)

// called to vent all gas in holder to a location
/obj/structure/disposalholder/proc/vent_gas(turf/T)
T.assume_air(gas)
Expand Down
16 changes: 13 additions & 3 deletions code/modules/recycling/disposal/pipe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,19 @@
if(H2 && !H2.active)
H.merge(H2)

for(var/mob/living/L in H)
var/armor = L.run_armor_check(attack_flag = BLUNT, silent = TRUE)
L.apply_damage(3, BRUTE, blocked = armor, spread_damage = TRUE)
if(prob(5) && (locate(/mob/living) in H))
var/list/mobs = list()

for(var/mob/living/L in H)
mobs += L

var/message = pick("CLUNK!", "CLONK!", "CLANK!", "BANG!")
audible_message(span_hear("[icon2html(src, hearers(src) | mobs)] [message]"))
playsound(src, 'sound/effects/clang.ogg', 50, FALSE, FALSE)

for(var/mob/living/L as anything in mobs)
var/armor = L.run_armor_check(attack_flag = BLUNT, silent = TRUE)
L.apply_damage(5, BRUTE, blocked = armor, spread_damage = TRUE)

H.forceMove(P)
return P
Expand Down
4 changes: 2 additions & 2 deletions tgui/packages/tgui-panel/styles/goon/chat-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ em {
}

.hear {
color: #7996ff;
color: #b6b4a9;
font-style: italic;
}

Expand All @@ -516,7 +516,7 @@ em {
}

.unconscious {
color: #cac5a5;
color: #b6b4a9;
font-weight: bold;
}

Expand Down

0 comments on commit 61d54e2

Please sign in to comment.