From: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> Date: Tue, 17 Dec 2024 23:58:53 +0000 (-0800) Subject: Adds Advanced SMES, an SMES with higher capacity for mapping (#33757) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e7330ece9c9ba9b573da772880f494e3355aebf4;p=space-station-14.git Adds Advanced SMES, an SMES with higher capacity for mapping (#33757) * Adds Advanced SMES machine and board to autolathe roundstart * Make Advanced SMES T2 Advanced Powercells research, reduce cost, remove from random spawner, add sprites by augustsun * fix attribution formatting * Update smes.yml to address review Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> * add new sprites and change naming scheme, testing something * address review, tested it a bit more, works ingame --------- Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> --- diff --git a/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml b/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml index fd0ff475df..fde151f20e 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml @@ -640,6 +640,25 @@ amount: 4 defaultPrototype: PowerCellSmall +- type: entity + id: SMESAdvancedMachineCircuitboard + parent: BaseMachineCircuitboard + name: advanced SMES machine board + description: A machine printed circuit board for an Advanced SMES. + components: + - type: Sprite + sprite: Objects/Misc/module.rsi + state: power_mod + - type: MachineBoard + prototype: SMESAdvancedEmpty + stackRequirements: + Capacitor: 2 + CableHV: 20 + componentRequirements: + PowerCell: + amount: 4 + defaultPrototype: PowerCellMedium + - type: entity id: CellRechargerCircuitboard parent: BaseMachineCircuitboard diff --git a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml index d511f5b1af..55f754df3d 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml @@ -520,6 +520,7 @@ - MassMediaCircuitboard - ReagentGrinderIndustrialMachineCircuitboard - JukeboxCircuitBoard + - SMESAdvancedMachineCircuitboard - type: EmagLatheRecipes emagDynamicRecipes: - ShuttleGunDusterCircuitboard diff --git a/Resources/Prototypes/Entities/Structures/Power/smes.yml b/Resources/Prototypes/Entities/Structures/Power/smes.yml index a9f647ec9e..db98b0d0f7 100644 --- a/Resources/Prototypes/Entities/Structures/Power/smes.yml +++ b/Resources/Prototypes/Entities/Structures/Power/smes.yml @@ -111,3 +111,48 @@ components: - type: Battery startingCharge: 0 + +- type: entity + parent: BaseSMES + id: SMESAdvanced + suffix: Advanced, 16MJ + name: advanced SMES + description: An even-higher-capacity superconducting magnetic energy storage (SMES) unit. + components: + - type: Sprite + sprite: Structures/Power/smes.rsi + snapCardinals: true + layers: + - state: advancedsmes + - map: [ "enum.SmesVisualLayers.Charge" ] + state: "smes-og1" # -og0 does not exist + shader: unshaded + visible: false + - map: [ "enum.SmesVisualLayers.Input" ] + state: "smes-oc0" + shader: unshaded + - map: [ "enum.SmesVisualLayers.Output" ] + state: "smes-op1" + shader: unshaded + - map: ["enum.WiresVisualLayers.MaintenancePanel"] + state: advancedsmes-open + - type: Machine + board: SMESAdvancedMachineCircuitboard + - type: Battery + maxCharge: 16000000 + startingCharge: 16000000 + - type: PowerMonitoringDevice + group: SMES + sourceNode: input + loadNode: output + collectionName: smes + sprite: Structures/Power/smes.rsi + state: advancedsmes-static + +- type: entity + parent: SMESAdvanced + id: SMESAdvancedEmpty + suffix: Empty + components: + - type: Battery + startingCharge: 0 diff --git a/Resources/Prototypes/Recipes/Lathes/electronics.yml b/Resources/Prototypes/Recipes/Lathes/electronics.yml index 99ff9f25ee..af74e7f3c7 100644 --- a/Resources/Prototypes/Recipes/Lathes/electronics.yml +++ b/Resources/Prototypes/Recipes/Lathes/electronics.yml @@ -399,6 +399,11 @@ id: SMESMachineCircuitboard result: SMESMachineCircuitboard +- type: latheRecipe + parent: BaseGoldCircuitboardRecipe + id: SMESAdvancedMachineCircuitboard + result: SMESAdvancedMachineCircuitboard + - type: latheRecipe parent: BaseCircuitboardRecipe id: PortableGeneratorPacmanMachineCircuitboard diff --git a/Resources/Prototypes/Research/industrial.yml b/Resources/Prototypes/Research/industrial.yml index 817e50834b..e05212bf68 100644 --- a/Resources/Prototypes/Research/industrial.yml +++ b/Resources/Prototypes/Research/industrial.yml @@ -41,6 +41,7 @@ recipeUnlocks: - PowerCellHigh - TurboItemRechargerCircuitboard + - SMESAdvancedMachineCircuitboard - type: technology id: MechanicalCompression diff --git a/Resources/Textures/Structures/Power/smes.rsi/advancedsmes-open.png b/Resources/Textures/Structures/Power/smes.rsi/advancedsmes-open.png new file mode 100644 index 0000000000..c45b424600 Binary files /dev/null and b/Resources/Textures/Structures/Power/smes.rsi/advancedsmes-open.png differ diff --git a/Resources/Textures/Structures/Power/smes.rsi/advancedsmes-static.png b/Resources/Textures/Structures/Power/smes.rsi/advancedsmes-static.png new file mode 100644 index 0000000000..7611f14c2c Binary files /dev/null and b/Resources/Textures/Structures/Power/smes.rsi/advancedsmes-static.png differ diff --git a/Resources/Textures/Structures/Power/smes.rsi/advancedsmes.png b/Resources/Textures/Structures/Power/smes.rsi/advancedsmes.png new file mode 100644 index 0000000000..a900d8338f Binary files /dev/null and b/Resources/Textures/Structures/Power/smes.rsi/advancedsmes.png differ diff --git a/Resources/Textures/Structures/Power/smes.rsi/meta.json b/Resources/Textures/Structures/Power/smes.rsi/meta.json index 2ca8d1fb22..04646fddb9 100644 --- a/Resources/Textures/Structures/Power/smes.rsi/meta.json +++ b/Resources/Textures/Structures/Power/smes.rsi/meta.json @@ -1,16 +1,25 @@ { "version": 1, "license": "CC-BY-SA-3.0", - "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/9c7d509354ee030300f63c701da63c17928c3b3b and modified by Swept", + "copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/9c7d509354ee030300f63c701da63c17928c3b3b and modified by Swept, advanced-smes, advanced-smes-static, advanced-smes-open modified from smes, smes-open, and static by august-sun (GitHub)", "size": { "x": 32, "y": 32 }, "states": [ + { + "name": "advancedsmes" + }, + { + "name": "advancedsmes-static" + }, + { + "name": "advancedsmes-open" + }, { "name": "smes" }, - { + { "name": "static" }, {