Glass shards can be refined by welder (#2576)

* Added refine component for glass shard

* Add refinable to rest of the shards

* Fixed windows shard count

* Now objects can vary refine time

* Windows will spawn correct shards after destruction

* Added all requested changes

* Client ignore as well

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Alex Evgrashin
2020-11-22 07:05:30 +03:00
committed by GitHub
parent eb97168e30
commit ccb7719935
4 changed files with 101 additions and 11 deletions

View File

@@ -33,7 +33,7 @@
spawnOnDestroy:
ShardGlass:
Min: 1
Max: 3
Max: 2
- type: SnapGrid
offset: Center
- type: Airtight
@@ -58,6 +58,10 @@
sprite: Constructible/Structures/Windows/reinforced_window.rsi
- type: Destructible
deadThreshold: 75
spawnOnDestroy:
ShardGlassReinforced:
Min: 1
Max: 2
resistances: metallicResistances
- type: Window
base: rwindow
@@ -77,6 +81,10 @@
sprite: Constructible/Structures/Windows/phoron_window.rsi
- type: Destructible
deadThreshold: 100
spawnOnDestroy:
ShardGlassPhoron:
Min: 1
Max: 2
resistances: metallicResistances
- type: Window
base: pwindow

View File

@@ -25,10 +25,13 @@
description: A small piece of glass. It looks sharp, you wouldn't want to step on it barefoot.
parent: ShardBase
components:
- type: Sprite
color: "#bbeeff"
- type: Item
color: "#bbeeff"
- type: Sprite
color: "#bbeeff"
- type: Item
color: "#bbeeff"
- type: WelderRefinable
refineResult:
- GlassStack
- type: entity
id: ShardGlassReinforced
@@ -36,11 +39,14 @@
description: A small piece of reinforced glass. It looks sharp, you wouldn't want to step on it barefoot.
parent: ShardBase
components:
- type: Sprite
color: "#96cdef"
- type: Item
color: "#96cdef"
- type: Sprite
color: "#96cdef"
- type: Item
color: "#96cdef"
- type: WelderRefinable
refineResult:
- GlassStack
- MetalStack
- type: entity
id: ShardGlassPhoron
name: phoron glass shard
@@ -51,3 +57,7 @@
color: "#f3b489"
- type: Item
color: "#f3b489"
- type: WelderRefinable
refineResult:
- GlassStack
- PhoronStack