mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
Revert "Merge branch 'BACON!' of https://github.com/Chakirski/Paradise into BACON!"
This reverts commit5d0cf2b3f8, reversing changes made tob7897435c3.
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
var/electronics_damage = 0
|
||||
var/energy_consumption = 0
|
||||
var/max_damage = 30
|
||||
var/component_disabled = 0
|
||||
var/mob/living/silicon/robot/owner
|
||||
|
||||
// The actual device object that has to be installed for this.
|
||||
@@ -122,13 +121,7 @@
|
||||
|
||||
/mob/living/silicon/robot/proc/is_component_functioning(module_name)
|
||||
var/datum/robot_component/C = components[module_name]
|
||||
return C && C.installed == 1 && C.toggled && C.is_powered() && !C.component_disabled
|
||||
|
||||
/mob/living/silicon/robot/proc/disable_component(module_name, duration)
|
||||
var/datum/robot_component/D = get_component(module_name)
|
||||
D.component_disabled++
|
||||
spawn(duration)
|
||||
D.component_disabled--
|
||||
return C && C.installed == 1 && C.toggled && C.is_powered()
|
||||
|
||||
// Returns component by it's string name
|
||||
/mob/living/silicon/robot/proc/get_component(var/component_name)
|
||||
|
||||
Reference in New Issue
Block a user