From 0dc32b6ac175918433c4ba54e238d405e74a5c84 Mon Sep 17 00:00:00 2001 From: mirrorcult Date: Sat, 9 Oct 2021 09:26:45 -0700 Subject: [PATCH] Modify light variables for optimization (#4753) --- .../Structures/Machines/Computers/base.yml | 3 +- .../Machines/Computers/computers.yml | 22 ++++++------- .../Structures/Machines/vending_machines.yml | 31 ++++++++++--------- .../Entities/Structures/Power/parts.yml | 4 ++- .../Entities/Structures/Power/smes.yml | 3 +- 5 files changed, 35 insertions(+), 28 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Machines/Computers/base.yml b/Resources/Prototypes/Entities/Structures/Machines/Computers/base.yml index b4ddfc76e2..8fbbd8446b 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/Computers/base.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/Computers/base.yml @@ -31,9 +31,10 @@ screen: generic - type: LitOnPowered - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 enabled: false mask: /Textures/Effects/LightMasks/cone.png autoRot: true offset: "0, 0.4" # shine from the top, not bottom of the computer + castShadows: false diff --git a/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml b/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml index 92c4345aa5..ae6289c0b7 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml @@ -21,7 +21,7 @@ - type: ApcPowerReceiver powerLoad: 200 - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#43ccb5" @@ -49,7 +49,7 @@ key: syndie_key screen: syndishuttle - type: PointLight - radius: 1.6 + radius: 1.5 energy: 1.6 color: "#c94242" @@ -65,7 +65,7 @@ key: power_key screen: power_monitor - type: PointLight - radius: 1.6 + radius: 1.5 energy: 1.6 color: "#c9c042" @@ -81,7 +81,7 @@ key: med_key screen: medcomp - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#1f8c28" @@ -111,7 +111,7 @@ - type: Computer board: ResearchComputerCircuitboard - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#b53ca1" @@ -136,7 +136,7 @@ - type: Computer board: IDComputerCircuitboard - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#3c5eb5" @@ -159,7 +159,7 @@ - type: Computer board: BodyScannerComputerCircuitboard - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#1f8c28" @@ -182,7 +182,7 @@ - type: Computer board: CommsComputerCircuitboard - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#3c5eb5" @@ -205,7 +205,7 @@ - type: Computer board: SolarControlComputerCircuitboard - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#e6e227" @@ -275,7 +275,7 @@ - type: Computer board: SupplyComputerCircuitboard - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#b89f25" @@ -295,6 +295,6 @@ - type: Computer board: SupplyRequestComputerCircuitboard - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#b89f25" diff --git a/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml b/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml index 220232b6e3..a070b150dd 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml @@ -46,6 +46,9 @@ BoardName: "Vending Machine" LayoutId: Vending - type: Anchorable + - type: PointLight + enabled: false + castShadows: false - type: LitOnPowered - type: entity @@ -263,7 +266,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.3 color: "#ad7c4b" @@ -297,7 +300,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#3c5eb5" @@ -331,7 +334,7 @@ - type: AccessReader access: [["Service"]] - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#4b93ad" @@ -363,7 +366,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#6148c7" @@ -396,7 +399,7 @@ - type: AccessReader access: [["Engineering"]] - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#b89e2a" @@ -431,7 +434,7 @@ - type: AccessReader access: [["Medical"]] - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#9dc5c9" @@ -466,7 +469,7 @@ - type: AccessReader access: [["Service"]] - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#326e3f" @@ -534,7 +537,7 @@ - type: AccessReader access: [["Service"]] - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#326e3f" @@ -566,7 +569,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#9dc5c9" @@ -600,7 +603,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#c73434" @@ -634,7 +637,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#389690" @@ -672,7 +675,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#c73434" @@ -707,7 +710,7 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#9dc5c9" @@ -769,6 +772,6 @@ broken: true - type: WiresVisualizer - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#d4ab33" diff --git a/Resources/Prototypes/Entities/Structures/Power/parts.yml b/Resources/Prototypes/Entities/Structures/Power/parts.yml index 08c50ee155..a63a448ea0 100644 --- a/Resources/Prototypes/Entities/Structures/Power/parts.yml +++ b/Resources/Prototypes/Entities/Structures/Power/parts.yml @@ -20,9 +20,10 @@ startingCharge: 1000 - type: ExaminableBattery - type: PointLight - radius: 2 + radius: 1.5 energy: 1.6 color: "#3db83b" + castShadows: false - type: NodeContainer examinable: true nodes: @@ -60,6 +61,7 @@ radius: 1.5 energy: 1.6 color: "#3db83b" + castShadows: false - type: Clickable - type: AccessReader access: [["Engineering"]] diff --git a/Resources/Prototypes/Entities/Structures/Power/smes.yml b/Resources/Prototypes/Entities/Structures/Power/smes.yml index e934862be0..8004a324a2 100644 --- a/Resources/Prototypes/Entities/Structures/Power/smes.yml +++ b/Resources/Prototypes/Entities/Structures/Power/smes.yml @@ -47,6 +47,7 @@ supplyRampTolerance: 5000 supplyRampRate: 1000 - type: PointLight - radius: 1.6 + radius: 1.5 energy: 1.6 color: "#c9c042" + castShadows: false