mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 19:14:15 +01:00
MODsuit module update: clamp nerf, replacement of holster and pepper spray modules, some tweaks to suit starting modules (#66170)
* part 1 * Merge branch 'master' of https://github.com/tgstation/tgstation into magnet-holster * modsuit module update: replacement of holster and pepper spray, nerf to clamp * fixes * this for some reason renders shit badly * h * test * handles deleting as an arg, hopefully fixing the runtimes * dusk to dawn * fucking idiot * you too * slight speedup * stiupid * less capsaicin * Apply suggestions from code review use the typecache Co-authored-by: Kylerace <kylerlumpkin1@gmail.com> * Update code/modules/mod/modules/_module.dm Co-authored-by: Kylerace <kylerlumpkin1@gmail.com> * w Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
This commit is contained in:
@@ -23,9 +23,13 @@
|
||||
. = COMPONENT_OVERRIDE_POWER_USAGE
|
||||
|
||||
/obj/item/mod/module/circuit/on_install()
|
||||
if(!shell?.attached_circuit)
|
||||
return
|
||||
RegisterSignal(shell?.attached_circuit, COMSIG_CIRCUIT_PRE_POWER_USAGE, .proc/override_power_usage)
|
||||
|
||||
/obj/item/mod/module/circuit/on_uninstall()
|
||||
/obj/item/mod/module/circuit/on_uninstall(deleting = FALSE)
|
||||
if(!shell?.attached_circuit)
|
||||
return
|
||||
UnregisterSignal(shell?.attached_circuit, COMSIG_CIRCUIT_PRE_POWER_USAGE)
|
||||
|
||||
/obj/item/mod/module/circuit/on_use()
|
||||
|
||||
Reference in New Issue
Block a user