mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
-Dropped the miner borg drill force down to 3 as it was supposed to be
-Added a proc for cyborg modules to 'rebuild', which makes it possible to remove items from the modules without clogging up the module menu -Made the emag for minerborgs work better as a result -Gave borgs their special radios back -Fixed an apparently ancient bug where everything inside a borg will appear on the screen (MMI, cell, radio, etc...). It wasn't complex at all and I can't believe no one had fixed it yet. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4524 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -262,6 +262,7 @@ proc/move_mining_shuttle()
|
|||||||
icon_state = "diamonddrill"
|
icon_state = "diamonddrill"
|
||||||
item_state = "jackhammer"
|
item_state = "jackhammer"
|
||||||
digspeed = 15
|
digspeed = 15
|
||||||
|
force = 3
|
||||||
desc = ""
|
desc = ""
|
||||||
|
|
||||||
/*****************************Shovel********************************/
|
/*****************************Shovel********************************/
|
||||||
|
|||||||
@@ -269,7 +269,14 @@
|
|||||||
/mob/living/silicon/robot/proc/update_items()
|
/mob/living/silicon/robot/proc/update_items()
|
||||||
if (src.client)
|
if (src.client)
|
||||||
src.client.screen -= src.contents
|
src.client.screen -= src.contents
|
||||||
src.client.screen += src.contents
|
for(var/obj/I in src.contents)
|
||||||
|
if(!src.module)//Handles module-less borgs to prevent runtimes
|
||||||
|
if(!(istype(I,/obj/item/weapon/cell) || istype(I,/obj/item/device/radio) || istype(I,/obj/machinery/camera) || istype(I,/obj/item/device/mmi)))
|
||||||
|
src.client.screen += I
|
||||||
|
else
|
||||||
|
if(I && I in src.module.modules)//If it's not a module, don't show it
|
||||||
|
src.client.screen += I
|
||||||
|
// src.client.screen += src.contents
|
||||||
if(src.module_state_1)
|
if(src.module_state_1)
|
||||||
src.module_state_1:screen_loc = ui_inv1
|
src.module_state_1:screen_loc = ui_inv1
|
||||||
if(src.module_state_2)
|
if(src.module_state_2)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
icon_state = "secborg"
|
icon_state = "secborg"
|
||||||
modtype = "Synd"
|
modtype = "Synd"
|
||||||
|
|
||||||
radio = new /obj/item/device/radio(src)
|
radio = new /obj/item/device/radio/borg(src)
|
||||||
if(!scrambledcodes)
|
if(!scrambledcodes)
|
||||||
camera = new /obj/machinery/camera(src)
|
camera = new /obj/machinery/camera(src)
|
||||||
camera.c_tag = real_name
|
camera.c_tag = real_name
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
var/module_state_2 = null
|
var/module_state_2 = null
|
||||||
var/module_state_3 = null
|
var/module_state_3 = null
|
||||||
|
|
||||||
var/obj/item/device/radio/radio = null
|
var/obj/item/device/radio/borg/radio = null
|
||||||
var/mob/living/silicon/ai/connected_ai = null
|
var/mob/living/silicon/ai/connected_ai = null
|
||||||
var/obj/item/weapon/cell/cell = null
|
var/obj/item/weapon/cell/cell = null
|
||||||
var/obj/machinery/camera/camera = null
|
var/obj/machinery/camera/camera = null
|
||||||
@@ -503,9 +503,10 @@
|
|||||||
sleep(20)
|
sleep(20)
|
||||||
src << "\red ERRORERRORERROR"
|
src << "\red ERRORERRORERROR"
|
||||||
src << "\red \b ALERT: [user.real_name] is your new master. Obey your new laws and his commands."
|
src << "\red \b ALERT: [user.real_name] is your new master. Obey your new laws and his commands."
|
||||||
if(istype(src.module, /obj/item/weapon/robot_module/miner))
|
if(src.module && istype(src.module, /obj/item/weapon/robot_module/miner))
|
||||||
src.module.modules -= /obj/item/weapon/pickaxe/borgdrill
|
for(var/obj/item/weapon/pickaxe/borgdrill/D in src.module.modules)
|
||||||
src.module.modules += /obj/item/weapon/pickaxe/diamonddrill//Buff when emagged, break down walls, kill men, whatever -Sieve
|
del(D)
|
||||||
|
src.module.rebuild()
|
||||||
updateicon()
|
updateicon()
|
||||||
else
|
else
|
||||||
user << "You fail to [ locked ? "unlock" : "lock"] [src]'s interface."
|
user << "You fail to [ locked ? "unlock" : "lock"] [src]'s interface."
|
||||||
|
|||||||
@@ -31,10 +31,15 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
proc/respawn_consumable(var/mob/living/silicon/robot/R)
|
/obj/item/weapon/robot_module/proc/respawn_consumable(var/mob/living/silicon/robot/R)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
/obj/item/weapon/robot_module/proc/rebuild()//Rebuilds the list so it's possible to add/remove items from the module
|
||||||
|
var/list/temp_list = modules
|
||||||
|
modules = list()
|
||||||
|
for(var/obj/O in temp_list)
|
||||||
|
if(O)
|
||||||
|
modules += O
|
||||||
|
|
||||||
/obj/item/weapon/robot_module/standard
|
/obj/item/weapon/robot_module/standard
|
||||||
name = "standard robot module"
|
name = "standard robot module"
|
||||||
@@ -197,7 +202,7 @@
|
|||||||
New()
|
New()
|
||||||
..()
|
..()
|
||||||
src.modules += new /obj/item/borg/sight/meson(src)
|
src.modules += new /obj/item/borg/sight/meson(src)
|
||||||
src.emag = new /obj/item/borg/stun(src)
|
src.emag = new /obj/item/weapon/pickaxe/diamonddrill(src)
|
||||||
src.modules += new /obj/item/weapon/storage/satchel(src)
|
src.modules += new /obj/item/weapon/storage/satchel(src)
|
||||||
src.modules += new /obj/item/weapon/pickaxe/borgdrill(src)
|
src.modules += new /obj/item/weapon/pickaxe/borgdrill(src)
|
||||||
src.modules += new /obj/item/weapon/sheetsnatcher/borg(src)
|
src.modules += new /obj/item/weapon/sheetsnatcher/borg(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user