mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user