Skip to content

Commit

Permalink
[Port] Fixes prs from TG (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuacksQ authored May 24, 2024
1 parent 7534db8 commit a28fbe3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(!CONFIG_GET(flag/use_age_restriction_for_jobs))
return 0

if(!isnum(player_age))
return 0 //This is only a number if the db connection is established, otherwise it is text: "Requires database", meaning these restrictions cannot be enforced
if(!isnum(player_age) || player_age < 0)
return 0

if(!isnum(days_needed))
return 0
Expand Down
10 changes: 10 additions & 0 deletions code/modules/recycling/disposal/bin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,16 @@
to_dump.pixel_x = to_dump.base_pixel_x + rand(-5, 5)
to_dump.pixel_y = to_dump.base_pixel_y + rand(-5, 5)

/obj/machinery/disposal/force_pushed(atom/movable/pusher, force = MOVE_FORCE_DEFAULT, direction)
. = ..()
visible_message(span_warning("[src] is ripped free from the floor!"))
deconstruct()

/obj/machinery/disposal/move_crushed(atom/movable/pusher, force = MOVE_FORCE_DEFAULT, direction)
. = ..()
visible_message(span_warning("[src] is ripped free from the floor!"))
deconstruct()

// Disposal bin
// Holds items for disposal into pipe system
// Draws air from turf, gradually charges internal reservoir
Expand Down
18 changes: 18 additions & 0 deletions code/modules/recycling/disposal/outlet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@
to_chat(user, span_notice("You silently disable the sanity checking on \the [src]'s ejection force."))
obj_flags |= EMAGGED

/obj/structure/disposaloutlet/force_pushed(atom/movable/pusher, force = MOVE_FORCE_DEFAULT, direction)
. = ..()
if(!isnull(stored))
stored.forceMove(loc)
transfer_fingerprints_to(stored)
stored = null
visible_message(span_warning("[src] is ripped free from the floor!"))
qdel(src)

/obj/structure/disposaloutlet/move_crushed(atom/movable/pusher, force = MOVE_FORCE_DEFAULT, direction)
. = ..()
if(!isnull(stored))
stored.forceMove(loc)
transfer_fingerprints_to(stored)
stored = null
visible_message(span_warning("[src] is ripped free from the floor!"))
qdel(src)

#undef EJECT_SPEED_SLOW
#undef EJECT_SPEED_MED
#undef EJECT_SPEED_FAST
Expand Down

0 comments on commit a28fbe3

Please sign in to comment.