Files
AlManiak 00fb0f0fb2 Added most consuming procs for the collar
Added research and design for collar
2025-02-01 00:44:39 +01:00

283 lines
12 KiB
Plaintext

/////////////////////////////////////////
///GS13 designs / nutri designs
/////////////////////////////////////////
//nutritech weapons
/datum/design/fatoray_weak
name = "Basic Fatoray"
id = "fatoray_weak"
build_type = PROTOLATHE
materials = list(/datum/material/iron = 8000, /datum/material/glass = 6000, /datum/material/calorite = 10000)
construction_time = 75
build_path = /obj/item/gun/energy/fatoray/weak
category = list("Weapons")
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL | DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_SECURITY
/datum/design/fatoray_cannon_weak
name = "Basic Cannonshot Fatoray"
id = "fatoray_cannon_weak"
build_type = PROTOLATHE
materials = list(/datum/material/iron = 10000, /datum/material/glass = 8000, /datum/material/calorite = 20000)
construction_time = 200
build_path = /obj/item/gun/energy/fatoray/cannon_weak
category = list("Weapons")
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL | DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_SECURITY
/datum/design/alter_ray_metabolism
name = "AL-T-Ray: Metabolism"
id = "alter_ray_metabolism"
build_type = PROTOLATHE
materials = list(/datum/material/iron = 10000, /datum/material/glass = 8000, /datum/material/calorite = 26000)
construction_time = 200
build_path = /obj/item/gun/energy/laser/alter_ray/gainrate
category = list("Weapons")
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL | DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_SECURITY
/datum/design/alter_ray_reverser
name = "AL-T-Ray: Reverser"
id = "alter_ray_reverser"
build_type = PROTOLATHE
materials = list(/datum/material/iron = 10000, /datum/material/glass = 8000, /datum/material/calorite = 26000)
construction_time = 200
build_path = /obj/item/gun/energy/laser/alter_ray/noloss
category = list("Weapons")
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL | DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_SECURITY
//nutritech tools
/datum/design/calorite_collar
name = "Calorite Collar"
desc = "A collar that amplifies caloric intake of the wearer."
id = "calorite_collar"
build_type = PROTOLATHE
materials = list(/datum/material/iron = 1000, /datum/material/calorite = 4000)
construction_time = 75
build_path = /obj/item/clothing/neck/petcollar/calorite
category = list("Equipment", "Misc", "Medical Designs")
departmental_flags = DEPARTMENTAL_FLAG_ALL
/datum/design/bluespace_collar_receiver
name = "Bluespace collar receiver"
desc = "A collar containing a miniaturized bluespace whitehole. Other bluespace transmitter collars can connect to this, causing the wearer to receive food from other transmitter collars directly into the stomach."
id = "bluespace_collar_receiver"
build_type = PROTOLATHE
materials = list(/datum/material/iron = 1000, /datum/material/calorite = 2500, /datum/material/bluespace = 250)
construction_time = 75
build_path = /obj/item/clothing/neck/petcollar/locked/bluespace_collar_receiver
category = list("Equipment", "Misc", "Medical Designs")
departmental_flags = DEPARTMENTAL_FLAG_ALL
/datum/design/bluespace_collar_transmitter
name = "Bluespace collar transmitter"
desc = "A collar containing a miniaturized bluespace blackhole. Can be connected to a bluespace collar receiver to transmit food to a linked receiver collar. "
id = "bluespace_collar_transmitter"
build_type = PROTOLATHE
materials = list(/datum/material/iron = 1000, /datum/material/calorite = 1000, /datum/material/bluespace = 500)
construction_time = 75
build_path = /obj/item/clothing/neck/petcollar/locked/bluespace_collar_transmitter
category = list("Equipment", "Misc", "Medical Designs")
departmental_flags = DEPARTMENTAL_FLAG_ALL
/datum/design/cyberimp_nutriment_turbo
name = "Nutriment Pump Implant TURBO"
desc = "This implant was meant to prevent people from going hungry, but due to a flaw in its designs, it permanently produces a small amount of nutriment overtime."
id = "ci-nutrimentturbo"
build_type = PROTOLATHE | MECHFAB
construction_time = 100
materials = list(/datum/material/iron = 800, /datum/material/glass = 800, /datum/material/gold = 750, /datum/material/uranium = 1000)
build_path = /obj/item/organ/cyberimp/chest/nutriment/turbo
category = list("Misc", "Medical Designs")
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL | DEPARTMENTAL_FLAG_SCIENCE
/datum/design/cyberimp_fat_mobility
name = "Mobility Nanite Core"
desc = "This implant contains nanites that reinforce leg muscles, allowing for unimpeded movement at extreme weights."
id = "ci-fatmobility"
build_type = PROTOLATHE | MECHFAB
construction_time = 100
materials = list(/datum/material/iron = 800, /datum/material/glass = 800, /datum/material/gold = 750, /datum/material/uranium = 1000)
build_path = /obj/item/organ/cyberimp/chest/mobility
category = list("Misc", "Medical Designs")
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL | DEPARTMENTAL_FLAG_SCIENCE
/datum/design/bluespace_belt
name = "Bluespace Belt"
desc = "A belt made using bluespace technology. The power of space and time, used to hide the fact you are fat."
id = "bluespace_belt"
build_type = PROTOLATHE
construction_time = 100
materials = list(/datum/material/silver = 4000, /datum/material/gold = 4000, /datum/material/bluespace = 2000, )
build_path = /obj/item/bluespace_belt
category = list("Misc", "Medical Designs")
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL | DEPARTMENTAL_FLAG_SCIENCE
/datum/design/cookie_synthesizer
name = "Cookie Synthesizer"
desc = "A self-charging miraculous device that's able to produce cookies."
id = "cookie_synthesizer"
build_type = PROTOLATHE
construction_time = 100
materials = list(/datum/material/silver = 4000, /datum/material/uranium = 1000, /datum/material/bluespace = 1000, /datum/material/calorite = 2000)
build_path = /obj/item/cookiesynth
category = list("Misc", "Medical Designs")
departmental_flags = DEPARTMENTAL_FLAG_SCIENCE | DEPARTMENTAL_FLAG_SERVICE
//these are made in mech fabricator
/datum/design/borg_cookie_synthesizer
name = "Cyborg Upgrade (Cookie Synthesizer)"
id = "borg_upgrade_cookiesynthesizer"
build_type = MECHFAB
build_path = /obj/item/borg/upgrade/cookiesynth
materials = list(/datum/material/iron=10000, /datum/material/gold=1500, /datum/material/uranium=250, /datum/material/plasma=1500)
construction_time = 100
category = list("Cyborg Upgrade Modules")
/datum/design/borg_fatoray
name = "Cyborg Upgrade (Fatoray)"
id = "borg_upgrade_fatoray"
build_type = MECHFAB
build_path = /obj/item/borg/upgrade/fatoray
materials = list(/datum/material/iron = 8000, /datum/material/glass = 6000, /datum/material/calorite = 10000)
construction_time = 100
category = list("Cyborg Upgrade Modules")
/datum/design/borg_feedtube
name = "Cyborg Upgrade (Feeding Tube)"
id = "borg_upgrade_feedingtube"
build_type = MECHFAB
build_path = /obj/item/borg/upgrade/feedtube
materials = list(/datum/material/iron = 8000, /datum/material/glass = 6000, /datum/material/calorite = 10000)
construction_time = 100
category = list("Cyborg Upgrade Modules")
/datum/design/borg_foodgrip
name = "Cyborg Upgrade (Food Gripper)"
id = "borg_upgrade_foodgrip"
build_type = MECHFAB
build_path = /obj/item/borg/upgrade/feeding_arm
materials = list(/datum/material/iron = 8000, /datum/material/glass = 6000)
construction_time = 100
category = list("Cyborg Upgrade Modules")
//todo: make a seperate file for extra borg modules
/obj/item/borg/upgrade/cookiesynth
name = "cyborg cookie synthesizer"
desc = "An extra module that allows cyborgs to dispense cookies."
icon_state = "cyborg_upgrade3"
/obj/item/borg/upgrade/cookiesynth/action(mob/living/silicon/robot/R, user = usr)
. = ..()
if(.)
var/obj/item/cookiesynth/S = new(R.module)
R.module.basic_modules += S
R.module.add_module(S, FALSE, TRUE)
/obj/item/borg/upgrade/cookiesynth/deactivate(mob/living/silicon/robot/R, user = usr)
. = ..()
if (.)
var/obj/item/cookiesynth/S = locate() in R.module
R.module.remove_module(S, TRUE)
/obj/item/gun/energy/fatoray/weak/cyborg
name = "cyborg fatoray"
desc = "An integrated fatoray for cyborg use."
icon = 'GainStation13/icons/obj/fatoray.dmi'
icon_state = "fatoray_weak"
can_charge = FALSE
selfcharge = EGUN_SELFCHARGE_BORG
cell_type = /obj/item/stock_parts/cell/secborg
charge_delay = 5
/obj/item/borg/upgrade/fatoray
name = "cyborg fatoray module"
desc = "An extra module that allows cyborgs to use fatoray weapons."
icon_state = "cyborg_upgrade3"
/obj/item/borg/upgrade/fatoray/action(mob/living/silicon/robot/R, user = usr)
. = ..()
if(.)
var/obj/item/gun/energy/fatoray/weak/cyborg/S = new(R.module)
R.module.basic_modules += S
R.module.add_module(S, FALSE, TRUE)
/obj/item/borg/upgrade/fatoray/deactivate(mob/living/silicon/robot/R, user = usr)
. = ..()
if (.)
var/obj/item/gun/energy/fatoray/weak/cyborg/S = locate() in R.module
R.module.remove_module(S, TRUE)
//cyborg regen feeding tube
/obj/item/reagent_containers/borghypo/feeding_tube
name = "cyborg feeding tube"
desc = "A feeding tube module for a cyborg."
icon = 'GainStation13/icons/obj/feeding_tube.dmi'
icon_state = "borg_tube"
possible_transfer_amounts = list(5,10,20)
charge_cost = 20
recharge_time = 3
accepts_reagent_upgrades = FALSE
reagent_ids = list(/datum/reagent/consumable/cream, /datum/reagent/consumable/milk, /datum/reagent/consumable/nutriment)
var/starttime = 0
var/chemtoadd = 5
/obj/item/reagent_containers/borghypo/feeding_tube/attack(mob/living/carbon/M, mob/user)
var/datum/reagents/R = reagent_list[mode]
if(!R.total_volume)
to_chat(user, "<span class='notice'>The injector is empty.</span>")
return
if(!istype(M))
return
if(R.total_volume && M.can_inject(user, 1, user.zone_selected,bypass_protection))
if(M == user.pulling && ishuman(user.pulling))
starttime = world.time
while(starttime + 300 > world.time && in_range(user, M))
if(do_mob(user, M, 10, 0, 1))
M.reagents.add_reagent(/datum/reagent/consumable/nutriment, chemtoadd)
M.visible_message("<span class='danger'>[user] pumps some liquid in [M]!</span>","<span class='userdanger'>[user] pumps some liquid in you!</span>")
else
to_chat(M, "<span class='warning'>You feel the cyborg's feeding tube pour liquid down your throat!</span>")
to_chat(user, "<span class='warning'>You feed [M] with the integrated feeding tube.</span>")
visible_message("<span class='warning'>The cyborg's feeding tube pours liquid down [M]'s throat!</span>")
var/fraction = min(amount_per_transfer_from_this/R.total_volume, 1)
R.reaction(M, INJECT, fraction)
if(M.reagents)
var/trans = R.trans_to(M, amount_per_transfer_from_this)
to_chat(user, "<span class='notice'>[trans] unit\s injected. [R.total_volume] unit\s remaining.</span>")
/obj/item/reagent_containers/borghypo/feeding_tube/regenerate_reagents()
if(iscyborg(src.loc))
var/mob/living/silicon/robot/R = src.loc
if(R && R.cell)
for(var/i in modes) //Lots of reagents in this one, so it's best to regenrate them all at once to keep it from being tedious.
var/valueofi = modes[i]
var/datum/reagents/RG = reagent_list[valueofi]
if(RG.total_volume < RG.maximum_volume)
R.cell.use(charge_cost)
RG.add_reagent(reagent_ids[valueofi], 5)
/obj/item/borg/upgrade/feedtube
name = "cyborg feeding tube module"
desc = "An extra module that allows cyborgs to use an integrated feeding tube along with a synthesizer."
icon_state = "cyborg_upgrade3"
/obj/item/borg/upgrade/feedtube/action(mob/living/silicon/robot/R, user = usr)
. = ..()
if(.)
var/obj/item/reagent_containers/borghypo/feeding_tube/S = new(R.module)
R.module.basic_modules += S
R.module.add_module(S, FALSE, TRUE)
/obj/item/borg/upgrade/feedtube/deactivate(mob/living/silicon/robot/R, user = usr)
. = ..()
if (.)
var/obj/item/reagent_containers/borghypo/feeding_tube/S = locate() in R.module
R.module.remove_module(S, TRUE)