mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 11:30:35 +01:00
e0aa218843
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>
40 lines
1.6 KiB
Plaintext
40 lines
1.6 KiB
Plaintext
// The synthetic organ's plating. Represents its natural armour, which will degrade as it's damaged.
|
|
|
|
/datum/synthetic_internal/plating
|
|
name = "internal steel plating"
|
|
desc = "The steel plating that keeps internal components safe and sound from the exterior."
|
|
/// The maximum health of the organ's plating. Represents... you know, the plating.
|
|
var/max_health = 50
|
|
/// The health of the organ's plating. Represents... you know, the plating.
|
|
var/health = 50
|
|
|
|
/datum/synthetic_internal/plating/take_damage(amount)
|
|
var/old_health = health
|
|
health = max(health - amount, 0)
|
|
return max(amount - old_health, 0)
|
|
|
|
/datum/synthetic_internal/plating/heal_damage(amount)
|
|
health = min(health + amount, max_health)
|
|
|
|
/datum/synthetic_internal/plating/get_status()
|
|
return (health / max_health) * 100
|
|
|
|
/datum/synthetic_internal/plating/replace_health(new_max_health)
|
|
max_health = new_max_health
|
|
health = new_max_health
|
|
|
|
/obj/item/synth_plating
|
|
name = "synthetic steel plating"
|
|
desc = "These steel plates are replacements for the steel plating lining a synthetic's internal components. They are welded to the chassis in order to safeguard the component in question."
|
|
icon = 'icons/obj/ipc_utilities.dmi'
|
|
icon_state = "ipc_repair_plates"
|
|
matter = list(MATERIAL_STEEL = 40000)
|
|
surgerysound = 'sound/weapons/saw/drillhit1.ogg'
|
|
item_flags = ITEM_FLAG_SURGERY
|
|
|
|
/obj/item/synth_plating/mechanics_hints()
|
|
. = ..()
|
|
. += list("These plates are used to replace broken internal plating around a synthetic's organ. \
|
|
While normally you can repair it with normal steel plates, in the case that it is broken, \
|
|
you'll need to substitute the plating entirely with this item.")
|