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

View File

@@ -11,7 +11,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
drink: drink:
maxVol: 10 maxVol: 50
- type: SolutionTransfer - type: SolutionTransfer
canChangeTransferAmount: true canChangeTransferAmount: true
maxTransferAmount: 5 maxTransferAmount: 5
@@ -23,7 +23,33 @@
interfaces: interfaces:
- key: enum.TransferAmountUiKey.Key - key: enum.TransferAmountUiKey.Key
type: TransferAmountBoundUserInterface 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 # Containers
@@ -63,15 +89,6 @@
sprite: Objects/Consumable/TrashDrinks/beer_empty.rsi 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 - type: entity
name: cognac bottle name: cognac bottle
parent: DrinkBottleBaseEmpty 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