mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #8595 from lbnesquik/Kot-Janihound-tweak
Add a belly size upgrade for hounds and fix an important typo.
This commit is contained in:
@@ -29,3 +29,39 @@
|
||||
|
||||
R.verbs += /mob/living/proc/set_size
|
||||
return 1
|
||||
|
||||
/obj/item/borg/upgrade/bellysizeupgrade
|
||||
name = "robotic Hound process capacity upgrade Module"
|
||||
desc = "Used to upgrade a hound belly capacity. This only affects total volume and such, you won't be able to support more than one patient. Usable once."
|
||||
icon_state = "cyborg_upgrade2"
|
||||
item_state = "cyborg_upgrade"
|
||||
require_module = 1
|
||||
|
||||
/obj/item/borg/upgrade/bellysizeupgrade/action(var/mob/living/silicon/robot/R)
|
||||
if(..()) return 0
|
||||
|
||||
if(!R.module || R.dogborg == FALSE)//can work
|
||||
to_chat(R, "Upgrade mounting error! No suitable hardpoint detected!")
|
||||
to_chat(usr, "There's no mounting point for the module! Try upgrading another model.")
|
||||
return 0
|
||||
|
||||
var/obj/item/device/dogborg/sleeper/T = locate() in R.module
|
||||
if(!T)
|
||||
T = locate() in R.module.contents
|
||||
if(!T)
|
||||
T = locate() in R.module.modules
|
||||
if(!T)
|
||||
to_chat(usr, "<span class='warning'>This robot has had its processor removed!</span>")
|
||||
return 0
|
||||
|
||||
if(T.upgraded_capacity)// == TRUE
|
||||
to_chat(R, "Maximum capacity achieved for this hardpoint!")
|
||||
to_chat(usr, "There's no room for another capacity upgrade!")
|
||||
return 0
|
||||
else
|
||||
var/X = T.max_item_count*2
|
||||
T.max_item_count = X //I couldn't do T = maxitem*2 for some reason.
|
||||
to_chat(R, "Internal capacity doubled.")
|
||||
to_chat(usr, "Internal capacity doubled.")
|
||||
T.upgraded_capacity = TRUE
|
||||
return 1
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
var/synced = FALSE
|
||||
var/startdrain = 500
|
||||
var/max_item_count = 1
|
||||
var/upgraded_capacity = FALSE
|
||||
var/gulpsound = 'sound/vore/gulp.ogg'
|
||||
var/datum/matter_synth/metal = null
|
||||
var/datum/matter_synth/glass = null
|
||||
|
||||
@@ -6,3 +6,10 @@
|
||||
req_tech = list(TECH_BLUESPACE = 3, TECH_MATERIAL = 3, TECH_POWER = 2)
|
||||
materials = list(DEFAULT_WALL_MATERIAL = 4000, "glass" = 4000)
|
||||
build_path = /obj/item/borg/upgrade/sizeshift
|
||||
|
||||
/datum/design/item/prosfab/robot_upgrade/bellysizeupgrade
|
||||
name = "Size Alteration Module"
|
||||
id = "borg_hound_capacity_module"
|
||||
req_tech = list(TECH_BLUESPACE = 3, TECH_MATERIAL = 3, TECH_POWER = 2)
|
||||
materials = list(DEFAULT_WALL_MATERIAL = 4000, "glass" = 4000)
|
||||
build_path = /obj/item/borg/upgrade/bellysizeupgrade
|
||||
Reference in New Issue
Block a user