]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Lathe-able LED light tubes and LED bulbs (#25616)
authorMACMAN2003 <macman2003c@gmail.com>
Mon, 26 Feb 2024 22:58:01 +0000 (14:58 -0800)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2024 22:58:01 +0000 (15:58 -0700)
let there be (led) light

Resources/Prototypes/Entities/Objects/Power/lights.yml
Resources/Prototypes/Entities/Structures/Lighting/base_lighting.yml
Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Resources/Prototypes/Recipes/Lathes/misc.yml

index 0c7e4cb8b24924df37eafbb0a5b0af040a21f755..a5cf712d099c3c05b36ef3968308c111b95bd925 100644 (file)
     lightRadius: 6
     lightSoftness: 1.1
 
+- type: entity
+  parent: BaseLightbulb
+  name: led light bulb
+  id: LedLightBulb
+  description: A power efficient light bulb.
+  components:
+  - type: LightBulb
+    bulb: Bulb
+    color: "#EEEEFF"
+    lightEnergy: 1
+    lightRadius: 8
+    lightSoftness: 1
+    BurningTemperature: 350 #LEDs are colder than incandescent bulbs
+    PowerUse: 6 #LEDs are more power efficient than incandescent bulbs
+
 - type: entity
   parent: LightBulb
   name: old incandescent light bulb
index a6340a8e91b40fd9b5bb827cff115403a3a61b15..b4b198eb774ea2c9dec6e02c65b8a33695a90c89 100644 (file)
     hasLampOnSpawn: LedLightTube
     damage:
       types:
-        Heat: 5
+        Heat: 2.5
   - type: PointLight
     radius: 15
     energy: 1
       - Off
       - Toggle
 
+- type: entity
+  id: PoweredLEDSmallLight
+  suffix: LED
+  parent: PoweredSmallLightEmpty
+  components:
+  - type: Sprite
+    state: base
+  - type: PointLight
+    enabled: true
+    radius: 8
+    energy: 1
+    softness: 1
+    color: "#EEEEFF"
+  - type: PoweredLight
+    hasLampOnSpawn: LedLightBulb
+    damage:
+      types:
+        Heat: 2.5
+
 - type: entity
   id: PoweredSmallLight
   suffix: ""
index 50601d8be898639d833ff84a09ed638ab41fbbc3..260ae5153bd40a3df99e7226642d65ea79b424e0 100644 (file)
       - Syringe
       - HandLabeler
       - LightTube
+      - LedLightTube
       - SodiumLightTube
       - ExteriorLightTube
       - LightBulb
+      - LedLightBulb
       - Bucket
       - DrinkMug
       - DrinkMugMetal
index 15b20d8b9043eaa3c25a62aa7e0d3603a27cdefc..8b4b5332835c6df5ca7b3322de22a355af4bea50 100644 (file)
@@ -7,6 +7,15 @@
     Steel: 50
     Glass: 50
 
+- type: latheRecipe
+  id: LedLightTube
+  result: LedLightTube
+  category: Lights
+  completetime: 2
+  materials:
+    Steel: 50
+    Glass: 50
+
 - type: latheRecipe
   id: SodiumLightTube
   result: SodiumLightTube
     Steel: 50
     Glass: 50
 
+- type: latheRecipe
+  id: LedLightBulb
+  result: LedLightBulb
+  category: Lights
+  completetime: 2
+  materials:
+    Steel: 50
+    Glass: 50
+
 - type: latheRecipe
   id: GlowstickRed
   result: GlowstickRed