Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SapphicOverload committed Dec 6, 2024
1 parent c114781 commit 8daee29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/datums/components/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ GLOBAL_LIST_EMPTY(cached_storage_typecaches)
to_chat(M, span_notice("You failed to pick up anything with [parent]."))
return
var/list/rejections = list()
while(do_after(M, 1 SECONDS, parent, TRUE, FALSE, CALLBACK(src, PROC_REF(handle_mass_pickup), things, I.loc, rejections)))
while(do_after(M, 1 SECONDS, parent, NONE, TRUE, CALLBACK(src, PROC_REF(handle_mass_pickup), things, I.loc, rejections)))
continue
to_chat(M, span_notice("You put everything you could [insert_preposition] [parent]."))

Expand Down Expand Up @@ -291,7 +291,7 @@ GLOBAL_LIST_EMPTY(cached_storage_typecaches)
to_chat(M, span_notice("You start dumping out [parent]."))
var/turf/T = get_turf(A)
var/list/things = contents()
while (do_after(M, 1 SECONDS, T, TRUE, FALSE, CALLBACK(src, PROC_REF(mass_remove_from_storage), T, things)))
while (do_after(M, 1 SECONDS, T, NONE, TRUE, CALLBACK(src, PROC_REF(mass_remove_from_storage), T, things)))
continue

/datum/component/storage/proc/mass_remove_from_storage(atom/target, list/things, trigger_on_found = TRUE)
Expand Down
8 changes: 6 additions & 2 deletions code/datums/progressbar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
var/progress_ended = FALSE


/datum/progressbar/New(mob/User, goal_number, atom/target, timed_action_flags = NONE)
/datum/progressbar/New(mob/User, goal_number, atom/target, timed_action_flags = NONE, datum/callback/extra_checks)
. = ..()
if (!istype(target))
stack_trace("Invalid target [target] passed in")
Expand All @@ -42,6 +42,7 @@
SET_PLANE_EXPLICIT(bar, ABOVE_HUD_PLANE, User) //yogs change, increased so it draws ontop of ventcrawling overlays
bar.appearance_flags = APPEARANCE_UI_IGNORE_ALPHA
user = User
src.extra_checks = extra_checks

LAZYADDASSOCLIST(user.progressbars, bar_loc, src)
var/list/bars = user.progressbars[bar_loc]
Expand All @@ -59,7 +60,7 @@
var/obj/mecha/mech = user.loc
if(ismecha(user.loc) && user == mech.occupant)
RegisterSignal(mech, COMSIG_MOVABLE_MOVED, PROC_REF(on_moved))
if(!(timed_action_flags & IGNORE_TARGET_LOC_CHANGE))
if(!(timed_action_flags & IGNORE_TARGET_LOC_CHANGE) && target != user)
RegisterSignal(target, COMSIG_MOVABLE_MOVED, PROC_REF(on_moved))
if(!(timed_action_flags & IGNORE_HELD_ITEM))
var/obj/item/held = user.get_active_held_item()
Expand All @@ -70,6 +71,9 @@
RegisterSignal(user, COMSIG_MOB_PICKUP_ITEM, PROC_REF(end_progress))
RegisterSignal(user, COMSIG_MOB_SWAPPING_HANDS, PROC_REF(end_progress))
if(!(timed_action_flags & IGNORE_INCAPACITATED))
if(HAS_TRAIT(user, TRAIT_INCAPACITATED))
end_progress()
return
RegisterSignal(user, SIGNAL_ADDTRAIT(TRAIT_INCAPACITATED), PROC_REF(end_progress))


Expand Down

0 comments on commit 8daee29

Please sign in to comment.