mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
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:
co-authored by
Matt Atlas
Geeves
Werner
parent
1898ad3417
commit
e0aa218843
+34
-20
@@ -841,7 +841,7 @@ ABSTRACT_TYPE(/obj/machinery/power/apc)
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
|
||||
if(isipc(H) && H.a_intent == I_GRAB)
|
||||
if(isipc(H) && H.a_intent == I_GRAB && Adjacent(user))
|
||||
if(emagged || stat & BROKEN)
|
||||
spark(src, 5, GLOB.alldirs)
|
||||
to_chat(H, SPAN_DANGER("The APC power currents surge eratically, damaging your chassis!"))
|
||||
@@ -858,27 +858,10 @@ ABSTRACT_TYPE(/obj/machinery/power/apc)
|
||||
if(issilicon(hacker))
|
||||
to_chat(hacker, SPAN_NOTICE("Corrupt files transferred to [H]. They are now under your control until they are repaired."))
|
||||
else if(cell && cell.charge > 0)
|
||||
var/obj/item/organ/internal/cell/C = H.internal_organs_by_name[BP_CELL]
|
||||
var/obj/item/cell/HC
|
||||
if(C)
|
||||
HC = C.cell
|
||||
if(HC && HC.percent() < 95)
|
||||
var/used = cell.use(500)
|
||||
HC.give(used)
|
||||
to_chat(user, SPAN_NOTICE("You slot your fingers into the APC interface and siphon off some of the stored charge for your own use."))
|
||||
if (cell.charge < 0)
|
||||
cell.charge = 0
|
||||
if (prob(0.5))
|
||||
spark(src, 5, GLOB.alldirs)
|
||||
to_chat(H, SPAN_DANGER("The APC power currents surge eratically, damaging your chassis!"))
|
||||
H.adjustFireLoss(10, 0)
|
||||
|
||||
charging = CHARGING_ON
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("You are already fully charged."))
|
||||
synthetic_siphon_power(H)
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("There is no charge to draw from that APC."))
|
||||
return
|
||||
return
|
||||
|
||||
else if(H.species.can_shred(H))
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
@@ -1019,6 +1002,37 @@ ABSTRACT_TYPE(/obj/machinery/power/apc)
|
||||
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/power/apc/proc/synthetic_siphon_power(mob/living/carbon/human/synthetic)
|
||||
var/obj/item/organ/internal/machine/power_core/C = synthetic.internal_organs_by_name[BP_CELL]
|
||||
var/obj/item/cell/HC
|
||||
if(C)
|
||||
HC = C.cell
|
||||
var/obj/item/organ/internal/machine/reactor/reactor = synthetic.internal_organs_by_name[BP_REACTOR]
|
||||
if(!istype(reactor))
|
||||
to_chat(synthetic, SPAN_WARNING("You are missing the electronic prongs to charge from the APC!"))
|
||||
return
|
||||
if(!(reactor.power_supply_type & POWER_SUPPLY_ELECTRIC))
|
||||
to_chat(synthetic, SPAN_NOTICE("You start siphoning power from the APC..."))
|
||||
if(!do_after(synthetic, 2 SECONDS, src))
|
||||
return
|
||||
if(HC && HC.percent() < 95)
|
||||
var/used = cell.use(500)
|
||||
HC.give(used)
|
||||
to_chat(synthetic, SPAN_NOTICE("You slot your fingers into the APC interface and siphon off some of the stored charge for your own use."))
|
||||
if (cell.charge < 0)
|
||||
cell.charge = 0
|
||||
if(!(reactor.power_supply_type & POWER_SUPPLY_ELECTRIC))
|
||||
if(prob(0.5))
|
||||
spark(src, 5, GLOB.alldirs)
|
||||
to_chat(synthetic, SPAN_DANGER("The APC power currents surge eratically, damaging your chassis!"))
|
||||
synthetic.adjustFireLoss(10, 0)
|
||||
if(HC.percent() < 95)
|
||||
synthetic_siphon_power(synthetic)
|
||||
|
||||
charging = CHARGING_ON
|
||||
else
|
||||
to_chat(synthetic, SPAN_NOTICE("You are already fully charged."))
|
||||
|
||||
/obj/machinery/power/apc/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
||||
. = ..()
|
||||
if(.)
|
||||
|
||||
Reference in New Issue
Block a user