mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Borg Stun Fix (#11964)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
046052fd30
commit
7bd2735541
@@ -280,6 +280,7 @@
|
||||
target.module.emag.Remove(rem_item)
|
||||
target.module.modules.Remove(rem_item)
|
||||
target.module.contents.Remove(rem_item)
|
||||
target.hud_used?.update_robot_modules_display()
|
||||
qdel(rem_item)
|
||||
return TRUE
|
||||
if("swap_module")
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
/mob/living/silicon/robot/proc/uneq_all()
|
||||
module_active = null
|
||||
|
||||
var/removed_any_module = FALSE
|
||||
if(module_state_1)
|
||||
if(istype(module_state_1,/obj/item/borg/sight))
|
||||
sight_mode &= ~module_state_1:sight_mode
|
||||
@@ -102,6 +103,8 @@
|
||||
module_state_1:loc = module
|
||||
module_state_1 = null
|
||||
inv1.icon_state = "inv1"
|
||||
removed_any_module = TRUE
|
||||
|
||||
if(module_state_2)
|
||||
if(istype(module_state_2,/obj/item/borg/sight))
|
||||
sight_mode &= ~module_state_2:sight_mode
|
||||
@@ -114,6 +117,8 @@
|
||||
module_state_2:loc = module
|
||||
module_state_2 = null
|
||||
inv2.icon_state = "inv2"
|
||||
removed_any_module = TRUE
|
||||
|
||||
if(module_state_3)
|
||||
if(istype(module_state_3,/obj/item/borg/sight))
|
||||
sight_mode &= ~module_state_3:sight_mode
|
||||
@@ -126,9 +131,16 @@
|
||||
module_state_3:loc = module
|
||||
module_state_3 = null
|
||||
inv3.icon_state = "inv3"
|
||||
removed_any_module = TRUE
|
||||
|
||||
after_equip()
|
||||
update_icon()
|
||||
|
||||
// Refresh inventory if needed
|
||||
if(hud_used && removed_any_module && shown_robot_modules)
|
||||
hud_used.update_robot_modules_display(TRUE)
|
||||
hud_used.toggle_show_robot_modules()
|
||||
|
||||
// Just used for pretty display in TGUI
|
||||
/mob/living/silicon/robot/proc/get_slot_from_module(obj/item/I)
|
||||
if(module_state_1 == I)
|
||||
|
||||
Reference in New Issue
Block a user