More mining changes
This commit is contained in:
@@ -171,6 +171,33 @@
|
||||
R.module.basic_modules += S
|
||||
R.module.add_module(S, FALSE, TRUE)
|
||||
|
||||
/obj/item/borg/upgrade/advcutter
|
||||
name = "mining cyborg advanced plasma cutter"
|
||||
desc = "An upgrade for the mining cyborgs plasma cutter, bringing it to advanced operation."
|
||||
icon_state = "cyborg_upgrade3"
|
||||
require_module = 1
|
||||
module_type = list(/obj/item/robot_module/miner)
|
||||
|
||||
/obj/item/borg/upgrade/advcutter/action(mob/living/silicon/robot/R, user = usr)
|
||||
. = ..()
|
||||
if(.)
|
||||
for(var/obj/item/gun/energy/plasmacutter/cyborg/C in R.module)
|
||||
C.name = "advanced cyborg plasma cutter"
|
||||
C.desc = "An improved version of the cyborg plasma cutter. Baring functionality identical to the standard hand held version."
|
||||
C.icon_state = "adv_plasmacutter"
|
||||
for(var/obj/item/ammo_casing/energy/plasma/weak/L in C.ammo_type)
|
||||
L.projectile_type = /obj/item/projectile/plasma/adv
|
||||
|
||||
/obj/item/borg/upgrade/advcutter/deactivate(mob/living/silicon/robot/R, user = usr)
|
||||
. = ..()
|
||||
if (.)
|
||||
for(var/obj/item/gun/energy/plasmacutter/cyborg/C in R.module)
|
||||
C.name = initial(name)
|
||||
C.desc = initial(desc)
|
||||
C.icon_state = initial(icon_state)
|
||||
for(var/obj/item/ammo_casing/energy/plasma/weak/L in C.ammo_type)
|
||||
L.projectile_type = initial(L.projectile_type)
|
||||
|
||||
/obj/item/borg/upgrade/tboh
|
||||
name = "janitor cyborg trash bag of holding"
|
||||
desc = "A trash bag of holding replacement for the janiborg's standard trash bag."
|
||||
|
||||
Reference in New Issue
Block a user