From 47425798225b9b97a2dd6fa708b64c40e1274c69 Mon Sep 17 00:00:00 2001 From: Dip Date: Tue, 6 Oct 2020 05:07:38 -0300 Subject: [PATCH 1/2] fully upgraded RTG preset add --- code/modules/power/rtg.dm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/code/modules/power/rtg.dm b/code/modules/power/rtg.dm index 9dca8f31..7e7d4eb9 100644 --- a/code/modules/power/rtg.dm +++ b/code/modules/power/rtg.dm @@ -48,6 +48,33 @@ power_gen = 1250 // 2500 on T1, 10000 on T4. circuit = /obj/item/circuitboard/machine/rtg/advanced +/obj/machinery/power/rtg/advanced/fullupgrade //fully ugpraded stock parts + desc = "An advanced RTG capable of moderating isotope decay, increasing power output but reducing lifetime. It uses plasma-fueled radiation collectors to increase output even further. This model is fully upgraded with the latest tech available in this quadrant." + +/obj/machinery/power/rtg/advanced/fullupgrade/Initialize() + . = ..() + //This looks terrifying. And apparently instancing vars and modifying the .amount variable causes runtime errors. Guess we're sticking to copy pasta, thanks, byond. + component_parts = list() + component_parts += new /obj/item/circuitboard/machine/rtg/advanced(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stock_parts/capacitor/quadratic(null) + component_parts += new /obj/item/stock_parts/micro_laser/quadultra(null) + RefreshParts() + // Void Core, power source for Abductor ships and bases. // Provides a lot of power, but tends to explode when mistreated. From 78a8cb6e771bea2d70550ce958df024cfa1a077c Mon Sep 17 00:00:00 2001 From: Dip Date: Tue, 6 Oct 2020 05:12:38 -0300 Subject: [PATCH 2/2] indentation aaaaa --- code/modules/power/rtg.dm | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/code/modules/power/rtg.dm b/code/modules/power/rtg.dm index 7e7d4eb9..766866a7 100644 --- a/code/modules/power/rtg.dm +++ b/code/modules/power/rtg.dm @@ -53,24 +53,24 @@ /obj/machinery/power/rtg/advanced/fullupgrade/Initialize() . = ..() - //This looks terrifying. And apparently instancing vars and modifying the .amount variable causes runtime errors. Guess we're sticking to copy pasta, thanks, byond. + //This looks terrifying. And apparently instancing vars and modifying the amount variable causes runtime errors. Guess we're sticking to copy pasta, thanks, byond. component_parts = list() component_parts += new /obj/item/circuitboard/machine/rtg/advanced(null) component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/uranium(null) - component_parts += new /obj/item/stack/sheet/mineral/plasma(null) - component_parts += new /obj/item/stack/sheet/mineral/plasma(null) - component_parts += new /obj/item/stack/sheet/mineral/plasma(null) - component_parts += new /obj/item/stack/sheet/mineral/plasma(null) - component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/uranium(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) + component_parts += new /obj/item/stack/sheet/mineral/plasma(null) component_parts += new /obj/item/stock_parts/capacitor/quadratic(null) component_parts += new /obj/item/stock_parts/micro_laser/quadultra(null) RefreshParts()