Makes COMSIG_MOB_SWAP_HANDS pass the current and previous held items as args (#95055)

## About The Pull Request

Tin, that's all. In a lot of cases you will want to have these,
especially if you are using elements with this signal.

## Why It's Good For The Game

Better code

## Changelog

Not player-facing
This commit is contained in:
Bloop
2026-01-31 13:47:36 -08:00
committed by GitHub
parent a44463ab87
commit 9526ed6e78
5 changed files with 8 additions and 9 deletions
+1 -2
View File
@@ -209,8 +209,7 @@
stop_autofiring()
return COMPONENT_CLIENT_MOUSEUP_INTERCEPT
/datum/component/automatic_fire/proc/stop_autofiring(datum/source, atom/object, turf/location, control, params)
/datum/component/automatic_fire/proc/stop_autofiring(mob/living/source, obj/item/swapped_to, obj/item/swapped_from)
SIGNAL_HANDLER
if(autofire_stat != AUTOFIRE_STAT_FIRING)
return
@@ -91,7 +91,7 @@
else
end_windup()
/datum/component/throwbonus_on_windup/proc/on_hands_swap(mob/living/source)
/datum/component/throwbonus_on_windup/proc/on_hands_swap(mob/living/source, obj/item/swapped_to, obj/item/swapped_from)
SIGNAL_HANDLER
if(source.get_active_held_item() != parent)