Снежный шар

This commit is contained in:
BIGZi0348
2024-12-21 15:05:17 +03:00
parent 4b078f50ad
commit 1fecb4b761
4 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
ent-ItemFunSnowglobe = снежный шар
.desc = Заключённая зима, вечно жаждущая свободы.

View File

@@ -0,0 +1,53 @@
- type: entity
name: snowglobe
parent: BaseItem
id: ItemFunSnowglobe
description: Encased winter, always longing for freedom.
components:
- type: Sprite
sprite: White/Objects/Fun/snowglobe.rsi
state: icon
scale: 0.7, 0.7
- type: Item
size: Tiny
- type: EmitSoundOnPickup
sound:
path: /Audio/White/Items/handling/drinkglass_pickup.ogg
- type: EmitSoundOnDrop
sound:
path: /Audio/White/Items/handling/drinkglass_drop.ogg
- type: StaticPrice
price: 500
- type: DamageOnLand
damage:
types:
Blunt: 1
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 3
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpillBehavior
solution: contents
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: SolutionContainerManager
solutions:
contents:
reagents:
- ReagentId: Water
Quantity: 20
- type: PhysicalComposition
materialComposition:
Glass: 50

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -0,0 +1,36 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon",
"delays": [
[
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15
]
]
}
]
}