Shell May Cry: A comprehensive rework of synthetics. (#20721)

https://www.youtube.com/watch?v=9mPvZ96pHJI

A pull request commissioned by the Synthetic Lore Team to
comprehensively rework synthetics (read: IPCs) and how they work in
Aurora. The objective is to make IPCs as unique as possible from humans,
upgrading the robotic feel and atmosphere, while also preserving a good
sense of balance in-game.

Key features:

- A comprehensive expansion of synthetic organs, all of which now
fulfill a purpose: hydraulics, cooling units, power systems, actuators,
diagnostics units.
- Customizable organs with benefits and drawbacks, such as with cooling
units and power systems.
- Unique ways to repair the organs and more involved steps.
- Unique damage mechanics - every organ has wiring and electronics which
affect its functioning, and they are defended by plating which provides
natural armour.
- Improved and immersive diagnostics.
- Unique features, benefits, and drawbacks for every IPC frame.
- A rework of the positronic brain, which can be either destroyed or
shut down, alongside effects caused by low integrity.
- A rework of how EMPs affect IPC organs.
- Non-binary damage states for each organ.

To-do:

- [x] Finish the unique features for each frame.
- [x] Look into if mechanical synthskin is possible.
- [x] Power system.
- [x] Posibrain mechanics.
- [ ] Passive cooling expansion.
- [x] EMP mechanics.
- [x] Repair mechanics.
- [x] Mob weight mechanics.
- [ ] Gurney for heavy mobs.
- [x] New augments.
- [ ] IPC tag scanning and flashing.

---------

Signed-off-by: Werner <1331699+Arrow768@users.noreply.github.com>
Co-authored-by: Matt Atlas <liermattia@gmail.com>
Co-authored-by: Geeves <22774890+Geevies@users.noreply.github.com>
Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>
This commit is contained in:
Matt Atlas
2025-12-21 17:26:23 +01:00
committed by GitHub
parent 1898ad3417
commit e0aa218843
201 changed files with 5962 additions and 896 deletions
@@ -78,6 +78,18 @@
return
found = TRUE
flashlight = H
else if(istype(H, /obj/item/computer_hardware/universal_port))
if(universal_port)
to_chat(user, SPAN_WARNING("\The [src]'s port slot is already occupied by \the [universal_port]."))
return
found = TRUE
universal_port = H
else if(istype(H, /obj/item/computer_hardware/access_cable_dongle))
if(access_cable_dongle)
to_chat(user, SPAN_WARNING("\The [src]'s port slot is already occupied by \the [access_cable_dongle]."))
return
found = TRUE
access_cable_dongle = H
if(found)
to_chat(user, SPAN_NOTICE("You install \the [H] into \the [src]."))
H.parent_computer = src
@@ -128,6 +140,12 @@
personal_ai.pai.parent_computer = null
update_icon()
personal_ai = null
else if(universal_port == H)
universal_port = null
found = TRUE
else if(access_cable_dongle == H)
access_cable_dongle = null
found = TRUE
if(found)
if(user)
@@ -165,6 +183,10 @@
return tesla_link
if(flashlight && initial(flashlight.name) == name)
return flashlight
if(universal_port && initial(universal_port.name) == name)
return universal_port
if(access_cable_dongle && initial(access_cable_dongle.name) == name)
return access_cable_dongle
return null
// Returns list of all components
@@ -192,4 +214,8 @@
all_components.Add(tesla_link)
if(flashlight)
all_components.Add(flashlight)
if(universal_port)
all_components.Add(universal_port)
if(access_cable_dongle)
all_components.Add(access_cable_dongle)
return all_components
@@ -189,6 +189,14 @@
if(response == "Yes")
turn_on(user)
/obj/item/modular_computer/attack_ranged(mob/user, params)
. = ..()
if(ishuman(user) && isipc(user))
var/mob/living/carbon/human/robot = user
var/obj/item/organ/internal/machine/wireless_access/wireless_access_point = robot.internal_organs_by_name[BP_WIRELESS_ACCESS]
if(wireless_access_point?.access_terminal(src))
attack_hand(user)
/obj/item/modular_computer/attack_hand(var/mob/user)
if(anchored)
return attack_self(user)
@@ -321,6 +329,20 @@
return TRUE
uninstall_component(user, H)
return TRUE
if(istype(attacking_item, /obj/item/access_cable))
var/obj/item/access_cable/access_cable = attacking_item
if(!universal_port)
to_chat(user, SPAN_WARNING("There isn't a port to slot \the [access_cable] into!"))
return
if(universal_port.access_cable)
to_chat(user, SPAN_WARNING("There's already a cable in the universal port!"))
return
if(do_after(user, 1 SECONDS))
visible_message(SPAN_NOTICE("[user] slots \the [access_cable] into \the [src]."))
universal_port.insert_cable(access_cable, user)
return ..()
/obj/item/modular_computer/mouse_drop_dragged(atom/over, mob/user, src_location, over_location, params)
@@ -47,6 +47,8 @@
data["PC_stationdate"] = "[time2text(world.realtime, "DDD, Month DD")], [GLOB.game_year]"
data["PC_showexitprogram"] = !!active_program
data["PC_haslight"] = !!flashlight
data["PC_hascable"] = !!access_cable_dongle
data["PC_cableout"] = access_cable_dongle?.access_cable?.loc == access_cable_dongle ? FALSE : TRUE
data["PC_lighton"] = flashlight?.enabled ? TRUE : FALSE
data["PC_programheaders"] = list()
if(idle_threads.len)
@@ -146,6 +148,13 @@
if(flashlight)
flashlight.toggle()
. = TRUE
if(action == "PC_takecable")
if(access_cable_dongle && access_cable_dongle.access_cable)
if(access_cable_dongle.access_cable.loc == access_cable_dongle)
access_cable_dongle.take_cable(usr)
else
access_cable_dongle.access_cable.retract()
. = TRUE
if(action == "PC_shutdown")
shutdown_computer()
return TRUE
@@ -190,6 +199,11 @@
update_icon()
/obj/item/modular_computer/ui_status(mob/user, datum/ui_state/state)
if(universal_port?.access_cable)
if(istype(universal_port.access_cable.source, /obj/item/organ/internal/machine/access_port))
var/obj/item/organ/internal/machine/access_port/port = universal_port.access_cable.source
if(user == port.owner)
return UI_INTERACTIVE
. = ..()
if(. < UI_INTERACTIVE)
if(user.machine)
@@ -125,6 +125,10 @@
var/obj/item/computer_hardware/tesla_link/tesla_link
/// Personal AI, can control the device via a verb when installed
var/obj/item/device/paicard/personal_ai
/// The universal port. Allows connection from IPCs through access cables.
var/obj/item/computer_hardware/universal_port/universal_port
/// The access cable dongle. Allows the computer to have its very own access cable.
var/obj/item/computer_hardware/access_cable_dongle/access_cable_dongle
var/obj/item/computer_hardware/flashlight/flashlight
var/listener/listener
@@ -15,6 +15,7 @@
hard_drive = new /obj/item/computer_hardware/hard_drive/super(src)
network_card = new /obj/item/computer_hardware/network_card/wired(src)
nano_printer = new /obj/item/computer_hardware/nano_printer(src)
universal_port = new /obj/item/computer_hardware/universal_port(src)
/obj/item/modular_computer/console/preset/install_default_programs()
..()
@@ -140,6 +141,7 @@
/obj/item/modular_computer/console/preset/supply/machinist/install_default_hardware()
..()
ai_slot = new /obj/item/computer_hardware/ai_slot(src)
access_cable_dongle = new /obj/item/computer_hardware/access_cable_dongle(src)
// ERT
/obj/item/modular_computer/console/preset/ert/install_default_hardware()
@@ -18,6 +18,7 @@
nano_printer.max_paper = 10
nano_printer.stored_paper = 5
tesla_link = new /obj/item/computer_hardware/tesla_link/charging_cable(src)
universal_port = new /obj/item/computer_hardware/universal_port(src)
// the laptop in the modular computer loadout
/obj/item/modular_computer/laptop/preset/loadout/install_default_hardware()
@@ -122,6 +123,15 @@
desc = "A portable computer belonging to the operation's manager."
_app_preset_type = /datum/modular_computer_app_presets/supply/om
/obj/item/modular_computer/laptop/preset/supply/robotics
name = "robotics laptop"
desc = "A portable computer with support for specialized robotics software."
_app_preset_type = /datum/modular_computer_app_presets/supply/machinist
/obj/item/modular_computer/laptop/preset/supply/robotics/install_default_hardware()
..()
access_cable_dongle = new /obj/item/computer_hardware/access_cable_dongle(src)
// Representative
/obj/item/modular_computer/laptop/preset/representative
name = "representative's laptop"
@@ -8,6 +8,7 @@
tesla_link = new/obj/item/computer_hardware/tesla_link(src)
hard_drive = new/obj/item/computer_hardware/hard_drive(src)
network_card = new/obj/item/computer_hardware/network_card(src)
universal_port = new /obj/item/computer_hardware/universal_port(src)
/obj/item/modular_computer/telescreen/preset/generic
_app_preset_type = /datum/modular_computer_app_presets/wall_generic