Fixes another borg runtime + middle click cycling for borgs (#52476)

* zoom

* aight then
This commit is contained in:
MrMelbert
2020-07-27 23:15:43 -03:00
committed by GitHub
parent 5490b9ace6
commit 71cf2330ea
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -85,11 +85,6 @@
W.afterattack(A, src, 0, params)
return
//Middle click cycles through selected modules.
/mob/living/silicon/robot/MiddleClickOn(atom/A)
. = ..()
cycle_modules()
//Give cyborgs hotkey clicks without breaking existing uses of hotkey clicks
// for non-doors/apcs
/mob/living/silicon/robot/CtrlShiftClickOn(atom/A)
@@ -313,7 +313,7 @@
* * module_num - the slot number being selected
*/
/mob/living/silicon/robot/proc/select_module(module_num)
if(!held_items[module_num])
if(is_invalid_module_number(module_num) || !held_items[module_num]) //If the slot number is invalid, or there's nothing there, we have nothing to equip
return FALSE
switch(module_num)