Prevents Cyborgs From Grabbing Their Own Modules (#32298)

* prevents robots from grabbing their own modules

* Update robot_modules.dm
This commit is contained in:
CRUNCH
2026-08-01 06:12:51 +00:00
committed by GitHub
parent 79a8de536e
commit 218bc83cfa
2 changed files with 8 additions and 1 deletions
@@ -2,7 +2,7 @@
name = "robot module"
icon = 'icons/obj/module.dmi'
icon_state = "std_mod"
w_class = 100
w_class = WEIGHT_CLASS_GIGANTIC
flags = CONDUCT
var/module_armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, RAD = 0, FIRE = 0, ACID = 0)
@@ -950,6 +950,9 @@
/// Checks whether this item is a module of the robot it is located in.
/obj/item/proc/is_robot_module()
if(istype(loc, /obj/item/robot_module))
return TRUE
if(!isrobot(loc))
return FALSE