Drinking glasses now break.

- Adds DamageOnLandComponent
- Adds DamageOtherOnHitComponent
- Drinking glasses break on throw.
- Drinking glasses damage others when thrown.
- Glass shards also damage others when thrown.
This commit is contained in:
Vera Aguilera Puerto
2020-12-21 13:22:16 +01:00
parent 5fb82ea581
commit 3b1677ff79
5 changed files with 92 additions and 2 deletions

View File

@@ -24,6 +24,21 @@
components:
- type: Drink
isOpen: true
- type: Damageable
- type: Destructible
thresholds:
5:
acts: [ "Destruction" ]
soundCollection: WindowBreak
spawn:
ShardGlass:
min: 1
max: 1
- type: DamageOnLand
amount: 5
- type: DamageOtherOnHit
amount: 5
# Transformable container - normal glass
- type: entity
@@ -33,7 +48,6 @@
components:
- type: Sprite
sprite: Objects/Consumable/Drinks/glass_clear.rsi
- type: SolutionContainer
fillingState: glass
maxVol: 50

View File

@@ -18,6 +18,9 @@
damageType: Slash
- type: Item
sprite: Objects/Materials/Shards/shard.rsi
- type: DamageOtherOnHit
amount: 5
damageType: Slash
- type: entity
id: ShardGlass
@@ -47,6 +50,9 @@
refineResult:
- GlassStack
- MetalStack
- type: DamageOtherOnHit
amount: 10
- type: entity
id: ShardGlassPhoron
name: phoron glass shard
@@ -61,3 +67,5 @@
refineResult:
- GlassStack
- PhoronStack
- type: DamageOtherOnHit
amount: 15