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:
@@ -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" ]
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
21
Resources/Prototypes/Entities/Objects/Misc/broken_bottle.yml
Normal file
21
Resources/Prototypes/Entities/Objects/Misc/broken_bottle.yml
Normal 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
|
||||||
|
|
||||||
Reference in New Issue
Block a user