Skip to content

Commit

Permalink
Merge pull request #335 from foopwo/itslikeselfsurgerybutforrobots
Browse files Browse the repository at this point in the history
Removes ability for research cyborgs to self-upgrade.
  • Loading branch information
Very-Soft authored May 26, 2024
2 parents 94b9366 + c950e87 commit c178be9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/modules/mob/living/silicon/robot/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,17 @@
update_icon()
else
to_chat(user, "<span class='filter_notice'><font color='red'>Access denied.</font></span>")
if(user == src) //RS edit: No self-unlocking.
to_chat(user, "<span class='filter_notice'>You are not allowed to manipulate your own lock.</span>")

else if(istype(W, /obj/item/borg/upgrade/))
var/obj/item/borg/upgrade/U = W
if(!opened)
to_chat(usr, "<span class='filter_notice'>You must access the borgs internals!</span>")
else if(!src.module && U.require_module)
to_chat(usr, "<span class='filter_notice'>The borg must choose a module before it can be upgraded!</span>")
else if(user == src) //RS edit: No self-upgrading.
to_chat(user, "<span class='warning'>You lack the reach to be able to upgrade yourself.</span>")
else if(U.locked)
to_chat(usr, "<span class='filter_notice'>The upgrade is locked and cannot be used yet!</span>")
else
Expand Down Expand Up @@ -846,7 +850,10 @@
else if(istype(M, /mob/living/silicon/robot))
var/mob/living/silicon/robot/R = M
if(check_access(R.get_active_hand()) || istype(R.get_active_hand(), /obj/item/weapon/card/robot))
return 1
if(R == src) //RS edit: No self-unlocking.
return FALSE
else
return TRUE
return 0

/mob/living/silicon/robot/proc/check_access(obj/item/I)
Expand Down

0 comments on commit c178be9

Please sign in to comment.