Bottles break when thrown and spill their contents on the ground.

Fixes #2918
This commit is contained in:
Vera Aguilera Puerto
2021-01-10 16:10:28 +01:00
parent 654cca13bf
commit 3157da2db7
3 changed files with 44 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
behaviors:
- !type:PlaySoundCollectionBehavior
soundCollection: GlassBreak
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:

View File

@@ -10,8 +10,26 @@
transferAmount: 5
- type: Sprite
state: icon
- type: DamageOnLand
amount: 5
- type: DamageOtherOnHit
amount: 10
- type: Spillable
- type: Damageable
- type: Destructible
thresholds:
5:
behaviors:
- !type:PlaySoundCollectionBehavior
soundCollection: GlassBreak
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity
parent: DrinkBottleBaseFull