Merge pull request #3663 from Nalarac/Robot

Modifies Illegal Equipment Module
This commit is contained in:
Anewbe
2017-07-31 13:28:36 -05:00
committed by GitHub
6 changed files with 53 additions and 18 deletions

View File

@@ -243,7 +243,7 @@ var/obj/screen/robot_inventory
//Unfortunately adding the emag module to the list of modules has to be here. This is because a borg can //Unfortunately adding the emag module to the list of modules has to be here. This is because a borg can
//be emagged before they actually select a module. - or some situation can cause them to get a new module //be emagged before they actually select a module. - or some situation can cause them to get a new module
// - or some situation might cause them to get de-emagged or something. // - or some situation might cause them to get de-emagged or something.
if(r.emagged) if(r.emagged || r.emag_items)
if(!(r.module.emag in r.module.modules)) if(!(r.module.emag in r.module.modules))
r.module.modules.Add(r.module.emag) r.module.modules.Add(r.module.emag)
else else

View File

@@ -156,8 +156,8 @@
/obj/item/borg/upgrade/syndicate/ /obj/item/borg/upgrade/syndicate/
name = "illegal equipment module" name = "scrambled equipment module"
desc = "Unlocks the hidden, deadlier functions of a robot" desc = "Unlocks new and often deadly module specific items of a robot"
icon_state = "cyborg_upgrade3" icon_state = "cyborg_upgrade3"
item_state = "cyborg_upgrade" item_state = "cyborg_upgrade"
require_module = 1 require_module = 1
@@ -165,8 +165,8 @@
/obj/item/borg/upgrade/syndicate/action(var/mob/living/silicon/robot/R) /obj/item/borg/upgrade/syndicate/action(var/mob/living/silicon/robot/R)
if(..()) return 0 if(..()) return 0
if(R.emagged == 1) if(R.emag_items == 1)
return 0 return 0
R.emagged = 1 R.emag_items = 1
return 1 return 1

View File

@@ -134,12 +134,12 @@
drill_verb = "drilling" drill_verb = "drilling"
/obj/item/weapon/pickaxe/borgdrill /obj/item/weapon/pickaxe/borgdrill
name = "cyborg mining drill" name = "enhanced sonic jackhammer"
icon_state = "diamonddrill" icon_state = "jackhammer"
item_state = "jackhammer" item_state = "jackhammer"
digspeed = 15 digspeed = 15
desc = "" desc = "Cracks rocks with sonic blasts. This one seems like an improved design."
drill_verb = "drilling" drill_verb = "hammering"
/*****************************Shovel********************************/ /*****************************Shovel********************************/

View File

@@ -65,6 +65,7 @@
var/opened = 0 var/opened = 0
var/emagged = 0 var/emagged = 0
var/emag_items = 0
var/wiresexposed = 0 var/wiresexposed = 0
var/locked = 1 var/locked = 1
var/has_power = 1 var/has_power = 1
@@ -739,7 +740,7 @@
dat += text("[obj]: <B>Activated</B><BR>") dat += text("[obj]: <B>Activated</B><BR>")
else else
dat += text("[obj]: <A HREF=?src=\ref[src];act=\ref[obj]>Activate</A><BR>") dat += text("[obj]: <A HREF=?src=\ref[src];act=\ref[obj]>Activate</A><BR>")
if (emagged) if (emagged || emag_items)
if(activated(module.emag)) if(activated(module.emag))
dat += text("[module.emag]: <B>Activated</B><BR>") dat += text("[module.emag]: <B>Activated</B><BR>")
else else
@@ -1056,14 +1057,6 @@
src << "<b>Obey these laws:</b>" src << "<b>Obey these laws:</b>"
laws.show_laws(src) laws.show_laws(src)
src << "<span class='danger'>ALERT: [user.real_name] is your new master. Obey your new laws and his commands.</span>" src << "<span class='danger'>ALERT: [user.real_name] is your new master. Obey your new laws and his commands.</span>"
if(src.module)
var/rebuild = 0
for(var/obj/item/weapon/pickaxe/borgdrill/D in src.module.modules)
qdel(D)
rebuild = 1
if(rebuild)
src.module.modules += new /obj/item/weapon/pickaxe/diamonddrill(src.module)
src.module.rebuild()
updateicon() updateicon()
else else
user << "You fail to hack [src]'s interface." user << "You fail to hack [src]'s interface."

View File

@@ -684,6 +684,7 @@ var/global/list/robot_modules = list(
src.modules += new /obj/item/weapon/gripper/miner(src) src.modules += new /obj/item/weapon/gripper/miner(src)
src.modules += new /obj/item/weapon/mining_scanner(src) src.modules += new /obj/item/weapon/mining_scanner(src)
src.emag = new /obj/item/weapon/pickaxe/plasmacutter(src) src.emag = new /obj/item/weapon/pickaxe/plasmacutter(src)
src.emag = new /obj/item/weapon/pickaxe/diamonddrill(src)
/obj/item/weapon/robot_module/robot/research /obj/item/weapon/robot_module/robot/research
name = "research module" name = "research module"

View File

@@ -0,0 +1,41 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
#################################
# Your name.
author: Nalarac
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- tweak: "Modifies the illegal equipment module for borgs to scrambled equipment module that only activates the special items and doesn't actually emag the borg"
- bugfix: "Mining cyborg diamond drill is now obtainable in a more sensible manner"
- tweak: "Click dragging has been added to the cryogenics tubes, cloning pod, and all methods of cryostorage"
- tweak: "Some quality of life changes for research, crisis, surgeon, and service cyborgs"
- bugfix: "Jumper cables readded"
- tweak: "Construction cyborgs merged back with engineering cyborgs"