Fix Breaking Bottles (#5492)

* Fix Breaking Bottles

* remove quotes and lower empthy bottle damage

* nerfed bottle throwing damage

Co-authored-by: AndresE55 <17-10757@usb.ve>
This commit is contained in:
AndresE55
2021-11-25 01:16:17 -04:00
committed by GitHub
parent 9cbcbae82d
commit c11eb643fe
3 changed files with 52 additions and 14 deletions

View File

@@ -25,7 +25,7 @@
- type: DamageOtherOnHit
damage:
types:
Blunt: 10
Blunt: 4
- type: Spillable
solution: drink
- type: Damageable
@@ -42,9 +42,9 @@
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
BrokenBottle:
min: 1
max: 2
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]

View File

@@ -11,7 +11,7 @@
- type: SolutionContainerManager
solutions:
drink:
maxVol: 10
maxVol: 50
- type: SolutionTransfer
canChangeTransferAmount: true
maxTransferAmount: 5
@@ -23,7 +23,33 @@
interfaces:
- key: enum.TransferAmountUiKey.Key
type: TransferAmountBoundUserInterface
- type: DamageOnLand
damage:
types:
Blunt: 5
- type: DamageOtherOnHit
damage:
types:
Blunt: 4
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 5
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
BrokenBottle:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
# Containers
@@ -63,15 +89,6 @@
sprite: Objects/Consumable/TrashDrinks/beer_empty.rsi
- type: entity
name: broken bottle
parent: DrinkBottleBaseEmpty # Can't hold liquids
id: DrinkBrokenBottle
components:
- type: Sprite
sprite: Objects/Consumable/TrashDrinks/broken_bottle.rsi
- type: entity
name: cognac bottle
parent: DrinkBottleBaseEmpty

View File

@@ -0,0 +1,21 @@
- type: entity
name: broken bottle
parent: BaseItem
id: BrokenBottle
description: In Space Glasgow this is called a conversation starter
components:
- type: ItemCooldown
- type: MeleeWeapon
damage:
types:
Slash: 7
hitSound:
path: /Audio/Weapons/bladeslice.ogg
- type: Sprite
sprite: Objects/Consumable/TrashDrinks/broken_bottle.rsi
state: icon
- type: DamageOtherOnHit
damage:
types:
Slash: 2