mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
[MIRROR] Disables wrenching on money bot and scanner gate shells when they are locked (#8048)
* Disables wrenching on money bot and scanner gate shells when they are locked (#61274) * Tweaks to wrenching * Addresses comments Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com> * Disables wrenching on money bot and scanner gate shells when they are locked Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
co-authored by
Watermelon914
Watermelon914
parent
b149784aaa
commit
1d86f54aad
@@ -100,10 +100,26 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit)
|
||||
else
|
||||
. += span_notice("There is no power cell installed.")
|
||||
|
||||
/**
|
||||
* Sets the cell of the integrated circuit.
|
||||
*
|
||||
* Arguments:
|
||||
* * cell_to_set - The new cell of the circuit. Can be null.
|
||||
**/
|
||||
/obj/item/integrated_circuit/proc/set_cell(obj/item/stock_parts/cell_to_set)
|
||||
SEND_SIGNAL(src, COMSIG_CIRCUIT_SET_CELL, cell_to_set)
|
||||
cell = cell_to_set
|
||||
|
||||
/**
|
||||
* Sets the locked status of the integrated circuit.
|
||||
*
|
||||
* Arguments:
|
||||
* * new_value - A boolean that determines if the circuit is locked or not.
|
||||
**/
|
||||
/obj/item/integrated_circuit/proc/set_locked(new_value)
|
||||
SEND_SIGNAL(src, COMSIG_CIRCUIT_SET_LOCKED, new_value)
|
||||
locked = new_value
|
||||
|
||||
/obj/item/integrated_circuit/attackby(obj/item/I, mob/living/user, params)
|
||||
. = ..()
|
||||
if(istype(I, /obj/item/circuit_component))
|
||||
@@ -170,6 +186,12 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit)
|
||||
set_on(FALSE)
|
||||
SEND_SIGNAL(src, COMSIG_CIRCUIT_SHELL_REMOVED)
|
||||
|
||||
/**
|
||||
* Sets the on status of the integrated circuit.
|
||||
*
|
||||
* Arguments:
|
||||
* * new_value - A boolean that determines if the circuit is on or not.
|
||||
**/
|
||||
/obj/item/integrated_circuit/proc/set_on(new_value)
|
||||
SEND_SIGNAL(src, COMSIG_CIRCUIT_SET_ON, new_value)
|
||||
on = new_value
|
||||
|
||||
Reference in New Issue
Block a user