add wallet (#169)

This commit is contained in:
Ed
2024-05-24 18:59:10 +03:00
committed by GitHub
parent 907b41a4d1
commit 505a12606a
7 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
- type: entity
name: wallet
description: A small wallet, handy for storing coins.
id: CP14Wallet
parent: BaseStorageItem
components:
- type: Sprite
sprite: /Textures/_CP14/Objects/Economy/wallet.rsi
layers:
- state: wallet-0
map: ["enum.StorageFillLayers.Fill"]
- type: Storage
maxItemSize: Tiny
grid:
- 0,0,3,2
quickInsert: true
areaInsert: false
storageOpenSound:
collection: trashBagRustle #TODO
storageInsertSound:
collection: trashBagRustle #TODO
whitelist:
tags:
- CP14Coin
- type: UseDelay
delay: 0.3
- type: Appearance
- type: StorageFillVisualizer
maxFillLevels: 4
fillBaseName: wallet
- type: Dumpable #TODO sounds
multiplier: 0.8
- type: Clothing
slots: [belt]
- type: Item
size: Normal
- type: entity
id: CP14WalletFilledTest
parent: CP14Wallet
suffix: Filled test
components:
- type: StorageFill
contents:
- id: CP14CopperCoin
- id: CP14CopperCoin
- id: CP14SilverCoin5
- id: CP14GoldCoin1

View File

@@ -0,0 +1,23 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Made by Hqlle (Github)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "wallet-0"
},
{
"name": "wallet-1"
},
{
"name": "wallet-2"
},
{
"name": "wallet-3"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B