Leather gloves and an LED tube light. (#187)

Added BurnTemperature to bulbs.
Added HeatResistance to clothing and species.
Added HeatResistanceComponent which resolves armor vs skin.
Made the hand burn on lamps only happen when heat resistance is too poor.
This commit is contained in:
PrPleGoo
2019-04-06 17:11:51 +02:00
committed by Pieter-Jan Briers
parent 9f1dd9f876
commit 77753debeb
23 changed files with 312 additions and 44 deletions

View File

@@ -14,10 +14,10 @@
description: Electrical gloves that keep you from frying
components:
- type: Sprite
sprite: Clothing/gloves_yellow.rsi
sprite: Clothing/glove_icons.rsi
state: yellow
- type: Icon
sprite: Clothing/gloves_yellow.rsi
sprite: Clothing/glove_icons.rsi
state: yellow
- type: Clothing
sprite: Clothing/gloves_yellow.rsi
@@ -30,10 +30,27 @@
description: Regular gloves that do not keep you from frying
components:
- type: Sprite
sprite: Clothing/gloves_black.rsi
sprite: Clothing/glove_icons.rsi
state: black
- type: Icon
sprite: Clothing/gloves_black.rsi
sprite: Clothing/glove_icons.rsi
state: black
- type: Clothing
sprite: Clothing/gloves_black.rsi
HeatResistance: 500
- type: entity
parent: GlovesBase
id: LeatherGloves
name: Botanist's leather gloves
description: These leather gloves protect against thorns, barbs, prickles, spikes and other harmful objects of floral origin. They're also quite warm.
components:
- type: Sprite
sprite: Clothing/glove_icons.rsi
state: leather
- type: Icon
sprite: Clothing/glove_icons.rsi
state: leather
- type: Clothing
sprite: Clothing/gloves_leather.rsi
HeatResistance: 1500

View File

@@ -45,7 +45,6 @@
priority: Low
- type: PoweredLight
load: 40
bulb: Tube
- type: entity
@@ -71,7 +70,6 @@
priority: Low
- type: PoweredLight
load: 40
bulb: Bulb
- type: entity
@@ -97,6 +95,23 @@
sprite: Objects/light_tube.rsi
state: normal
- type: entity
parent: BaseLightbulb
name: LED Light Tube
id: LedLightTube
components:
- type: LightBulb
bulb: Tube
color: "#EEEEFF"
BurningTemperature: 350
PowerUse: 9
- type: Sprite
sprite: Objects/light_tube.rsi
state: normal
- type: Icon
sprite: Objects/light_tube.rsi
state: normal
- type: entity
parent: BaseLightbulb
name: Light Bulb

View File

@@ -50,6 +50,8 @@
- type: Species
Template: Human
HeatResistance: 323
- type: HeatResistance
- type: Damageable
- type: Eye