From 505a12606a4377dbc2bfc0c5d60f94bd83c9fa88 Mon Sep 17 00:00:00 2001 From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Fri, 24 May 2024 18:59:10 +0300 Subject: [PATCH] add wallet (#169) --- .../Entities/Objects/{ => Economy}/coins.yml | 0 .../_CP14/Entities/Objects/Economy/wallet.yml | 48 ++++++++++++++++++ .../Objects/Economy/wallet.rsi/meta.json | 23 +++++++++ .../Objects/Economy/wallet.rsi/wallet-0.png | Bin 0 -> 476 bytes .../Objects/Economy/wallet.rsi/wallet-1.png | Bin 0 -> 458 bytes .../Objects/Economy/wallet.rsi/wallet-2.png | Bin 0 -> 515 bytes .../Objects/Economy/wallet.rsi/wallet-3.png | Bin 0 -> 517 bytes 7 files changed, 71 insertions(+) rename Resources/Prototypes/_CP14/Entities/Objects/{ => Economy}/coins.yml (100%) create mode 100644 Resources/Prototypes/_CP14/Entities/Objects/Economy/wallet.yml create mode 100644 Resources/Textures/_CP14/Objects/Economy/wallet.rsi/meta.json create mode 100644 Resources/Textures/_CP14/Objects/Economy/wallet.rsi/wallet-0.png create mode 100644 Resources/Textures/_CP14/Objects/Economy/wallet.rsi/wallet-1.png create mode 100644 Resources/Textures/_CP14/Objects/Economy/wallet.rsi/wallet-2.png create mode 100644 Resources/Textures/_CP14/Objects/Economy/wallet.rsi/wallet-3.png diff --git a/Resources/Prototypes/_CP14/Entities/Objects/coins.yml b/Resources/Prototypes/_CP14/Entities/Objects/Economy/coins.yml similarity index 100% rename from Resources/Prototypes/_CP14/Entities/Objects/coins.yml rename to Resources/Prototypes/_CP14/Entities/Objects/Economy/coins.yml diff --git a/Resources/Prototypes/_CP14/Entities/Objects/Economy/wallet.yml b/Resources/Prototypes/_CP14/Entities/Objects/Economy/wallet.yml new file mode 100644 index 0000000000..0df1f4b3b8 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Objects/Economy/wallet.yml @@ -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 \ No newline at end of file diff --git a/Resources/Textures/_CP14/Objects/Economy/wallet.rsi/meta.json b/Resources/Textures/_CP14/Objects/Economy/wallet.rsi/meta.json new file mode 100644 index 0000000000..dc178b146d --- /dev/null +++ b/Resources/Textures/_CP14/Objects/Economy/wallet.rsi/meta.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/Resources/Textures/_CP14/Objects/Economy/wallet.rsi/wallet-0.png b/Resources/Textures/_CP14/Objects/Economy/wallet.rsi/wallet-0.png new file mode 100644 index 0000000000000000000000000000000000000000..051402fd5b6bb5a38159338a01a474f428d5371f GIT binary patch literal 476 zcmV<20VDp2P)Px$mPtfGR9J=Wl`%^~Q5462Rzo}t>p`L+N)ZSK4+obJr|=6zbGu(4ngX4oFVNon zriLJ@Ny0&caB4`xklsT7#v~xvtf=Y&=3f3y|Ja!bIZ6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 100644 index 0000000000000000000000000000000000000000..fd90157b679efa23356ff6e813cbc94035eadd30 GIT binary patch literal 517 zcmV+g0{Z=lP)Px$zez+vR9J=Wl|OIOKp2OgAQo=1YRQpOpK7O= zcU=?Ed5z9%o=zShM?L^$)v!ocuAzV%H~{ccJu+#YT^XB<_IP#r$vK|01BsGGj(3QR zAq?*UP!tzr;~f&DaovJDE{kI!Oc;0oWRHE`eEmjIT<~GA)(iuWSO{}#3CNMpaFc*u zo)PUU0HS?`UY;=wylq|l^#l?n&1Ad_z}|hI$QU?2`Dxu`yi1~_wF}lYp!1rx{Q!9W z@N)9_gb2u3cZAMs+pu