use inventory_item more, have it for viewmodel specification

This commit is contained in:
veclavtalica
2025-02-13 06:51:57 +03:00
parent 1853c62699
commit c2841fbf0c
11 changed files with 74 additions and 16 deletions

13
data/coin_flower.tres Normal file
View File

@ -0,0 +1,13 @@
[gd_resource type="Resource" script_class="InventoryItem" load_steps=3 format=3 uid="uid://nrpcuqveh7io"]
[ext_resource type="Texture2D" uid="uid://cb6qv3c0iojfl" path="res://icon.svg" id="1_u477x"]
[ext_resource type="Script" path="res://src/lib/inventory_item.gd" id="3_fe16f"]
[resource]
script = ExtResource("3_fe16f")
icon = ExtResource("1_u477x")
name = "Coin Flower"
id = &"coin_flower"
stackable = false
stack_limit = 8
count = 0

View File

@ -8,3 +8,4 @@ script = ExtResource("2_inc63")
icon = ExtResource("1_2wt7x")
name = "Meat"
id = &"meat"
count = 0

13
data/water_bomb.tres Normal file
View File

@ -0,0 +1,13 @@
[gd_resource type="Resource" script_class="InventoryItem" load_steps=4 format=3 uid="uid://cmeif37pci2ek"]
[ext_resource type="Texture2D" uid="uid://cb6qv3c0iojfl" path="res://icon.svg" id="1_g8c3q"]
[ext_resource type="PackedScene" uid="uid://ba2mut58elwrh" path="res://assets/water-bomb.glb" id="2_5cxkh"]
[ext_resource type="Script" path="res://src/lib/inventory_item.gd" id="2_pe2p8"]
[resource]
script = ExtResource("2_pe2p8")
icon = ExtResource("1_g8c3q")
model = ExtResource("2_5cxkh")
name = "Water Bomb"
id = &"water_bomb"
count = 0