Fuel and water tanks fixes #967, #868 (#992)

This commit is contained in:
Alex Evgrashin
2020-05-25 01:29:09 +03:00
committed by GitHub
parent 6457d8c075
commit fdda48ca56
5 changed files with 81 additions and 71 deletions

View File

@@ -0,0 +1,20 @@
- type: entity
parent: StorageTank
id: WeldingFuelTank
name: Fueltank
description: A storage tank containing welding fuel.
components:
- type: Sprite
texture: Buildings/weldtank.png
- type: Icon
texture: Buildings/weldtank.png
- type: Explosive
devastationRange: 1
heavyImpactRange: 2
lightImpactRange: 4
flashRange: 5
- type: Solution
contents:
reagents:
- ReagentId: chem.WeldingFuel
Quantity: 1500

View File

@@ -0,0 +1,29 @@
- type: entity
id: StorageTank
name: Storage Tank
description: "A liquids storage tank"
abstract: true
components:
- type: Clickable
- type: InteractionOutline
- type: Collidable
shapes:
- !type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.5"
mask: 30
layer: 31
IsScrapingFloor: true
- type: Physics
mass: 15
Anchored: false
- type: Damageable
- type: Destructible
thresholdvalue: 10
- type: Solution
maxVol: 1500
caps: 2
- type: Pourable
transferAmount: 100.0
placement:
snap:
- Wall

View File

@@ -1,5 +1,5 @@
- type: entity
parent: ReagentItem
- type: entity
parent: StorageTank
id: WaterTank
name: Water Tank
suffix: Empty
@@ -7,34 +7,9 @@
components:
- type: Sprite
texture: Buildings/watertank.png
- type: Icon
texture: Buildings/watertank.png
- type: Clickable
- type: InteractionOutline
- type: Collidable
layer: 31
shape:
bounds: "-0.5,-0.25,0.5,0.25"
IsScrapingFloor: true
- type: Physics
mass: 15
Anchored: false
- type: Damageable
- type: Destructible
thresholdvalue: 10
- type: Solution
maxVol: 1500
caps: 3
placement:
snap:
- Wall
- type: entity
parent: WaterTank
id: WaterTankFull

View File

@@ -1,34 +0,0 @@
- type: entity
id: WeldingFuelTank
name: Fueltank
description: A storage tank containing welding fuel.
components:
- type: Sprite
texture: Buildings/weldtank.png
- type: Icon
texture: Buildings/weldtank.png
- type: Clickable
- type: InteractionOutline
- type: Collidable
shapes:
- !type:PhysShapeAabb
bounds: "-0.5,-0.25,0.5,0.25"
layer: 15
IsScrapingFloor: true
- type: Physics
mass: 15
Anchored: false
- type: Damageable
- type: Destructible
thresholdvalue: 10
- type: Explosive
devastationRange: 1
heavyImpactRange: 2
lightImpactRange: 4
flashRange: 5
placement:
snap:
- Wall