mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
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>
71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
// Synthetic internals represent things that are not physically modelled as an organ, but are rather part of the organ.
|
|
// That means wiring, plating, and electronics. Damaging organs has adverse effects on these components.
|
|
// The goal is to emulate damaging effects similar to arterial bleeding, infections, etc. on organics.
|
|
|
|
// The specific effects of each synthetic internal can vary organ by organ. They all have different health measurements as well.
|
|
// These measurements can change depending on the organ they are attached to.
|
|
|
|
/datum/synthetic_internal
|
|
/// The name of the internal component. Shows up in analysis tools.
|
|
var/name = "default synthetic internal"
|
|
/// The description. Shows up in analysis tools.
|
|
var/desc = "A default synthetic internal component."
|
|
/// The organ this synthetic internal belongs to.
|
|
var/obj/item/organ/internal/machine/organ
|
|
|
|
/datum/synthetic_internal/New(obj/item/organ/internal/machine/attached_organ)
|
|
. = ..()
|
|
if(istype(attached_organ))
|
|
organ = attached_organ
|
|
else
|
|
LOG_DEBUG("Synthetic internal [type] generated on invalid organ [attached_organ]. Aborting.")
|
|
qdel(src)
|
|
|
|
/datum/synthetic_internal/Destroy(force)
|
|
organ = null
|
|
return ..()
|
|
|
|
/**
|
|
* The proc that handles taking damage. As some components take damage differently,
|
|
* this is overridden by them.
|
|
*/
|
|
/datum/synthetic_internal/proc/take_damage(amount)
|
|
return
|
|
|
|
/**
|
|
* The proc that handles restoring damage. As some components restore damage differently,
|
|
* this is overridden by them.
|
|
*/
|
|
/datum/synthetic_internal/proc/heal_damage(amount)
|
|
return
|
|
|
|
/**
|
|
* This proc returns the status of this synthetic internal as a percentage.
|
|
* It will return 100 if the component is 100% healthy, a value between 0 and 100 if not, and 0 if broken.
|
|
* This logic can be overridden for custom behaviour.
|
|
*/
|
|
/datum/synthetic_internal/proc/get_status()
|
|
return
|
|
|
|
/**
|
|
* This proc returns the status of this internal component, but imprecisely.
|
|
* Basically what could be obvious at an eye-glance.
|
|
*/
|
|
/datum/synthetic_internal/proc/analyse_integrity_imprecise()
|
|
return
|
|
|
|
/**
|
|
* This proc returns the status of this internal component, but precisely.
|
|
* Basically the results of an in-depth analysis with an appropriate tool.
|
|
*/
|
|
/datum/synthetic_internal/proc/analyze_integrity_precise()
|
|
return
|
|
|
|
/**
|
|
* Replaces the health by setting a new max health and setting the health to the new max_health value.
|
|
* Needs to be overridden on every subtype.
|
|
*/
|
|
/datum/synthetic_internal/proc/replace_health(new_max_health)
|
|
SHOULD_CALL_PARENT(FALSE)
|
|
CRASH("Not implemented!")
|