mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-08 17:41:50 +02:00
Add example: "Items"
(need 2 examples to test dir switching)
This commit is contained in:
parent
c4b5733092
commit
2638af6263
BIN
example/Items/item_icons/items.png
Normal file
BIN
example/Items/item_icons/items.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
34
example/Items/item_icons/items.png.import
Normal file
34
example/Items/item_icons/items.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dwi4ioxeauoc4"
|
||||
path="res://.godot/imported/items.png-d10b6b2feac7b3334582afee422be338.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://example/Items/item_icons/items.png"
|
||||
dest_files=["res://.godot/imported/items.png-d10b6b2feac7b3334582afee422be338.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
34
example/Items/item_type.gd
Normal file
34
example/Items/item_type.gd
Normal file
@ -0,0 +1,34 @@
|
||||
@tool
|
||||
class_name ItemType
|
||||
extends Resource
|
||||
|
||||
enum SlotType {
|
||||
SMALL,
|
||||
LARGE,
|
||||
EQUIPMENT,
|
||||
QUEST,
|
||||
POTION,
|
||||
AMMO,
|
||||
CURRENCY,
|
||||
FUEL,
|
||||
CRAFTING,
|
||||
E_MAINHAND,
|
||||
E_OFFHAND,
|
||||
E_HELM,
|
||||
E_CHEST,
|
||||
E_BELT,
|
||||
E_HANDS,
|
||||
E_FEET,
|
||||
E_RING,
|
||||
E_NECK,
|
||||
}
|
||||
@export var name := ""
|
||||
@export_multiline var description := ""
|
||||
@export var max_stack_count := 1
|
||||
@export var in_inventory_width := 1
|
||||
@export var in_inventory_height := 1
|
||||
@export var texture : Texture
|
||||
@export var mesh : Mesh
|
||||
|
||||
@export var slot_flags : SlotType = SlotType.SMALL
|
||||
@export var default_properties : Dictionary
|
19
example/Items/items/arrows.tres
Normal file
19
example/Items/items/arrows.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://c65l1w3756rlu"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_npnns"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_npnns")
|
||||
region = Rect2(12, 24, 24, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "arrows"
|
||||
description = "desc_arrows"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 5
|
||||
default_properties = {}
|
28
example/Items/items/belt_1.tres
Normal file
28
example/Items/items/belt_1.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://d2gb438d6vtlg"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_4rd1p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_4rd1p")
|
||||
region = Rect2(0, 156, 24, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "belt_1"
|
||||
description = "desc_belt_1"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 13
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"dodgerate": 12.0
|
||||
}
|
||||
}
|
28
example/Items/items/belt_2.tres
Normal file
28
example/Items/items/belt_2.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://c158a1idjr28m"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_laq2t"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_laq2t")
|
||||
region = Rect2(24, 156, 24, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "belt_2"
|
||||
description = "desc_belt_2"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 13
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"health_regen": 2.0
|
||||
}
|
||||
}
|
28
example/Items/items/chestplate_1.tres
Normal file
28
example/Items/items/chestplate_1.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://ubapirchpsp"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_cwgb2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_cwgb2")
|
||||
region = Rect2(0, 120, 24, 36)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "chestplate_1"
|
||||
description = "desc_chestplate_1"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 3
|
||||
texture = SubResource("1")
|
||||
slot_flags = 12
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"defense": 24.0
|
||||
}
|
||||
}
|
29
example/Items/items/chestplate_2.tres
Normal file
29
example/Items/items/chestplate_2.tres
Normal file
@ -0,0 +1,29 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://nquj8y70tdy1"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_fdlcg"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_fdlcg")
|
||||
region = Rect2(24, 120, 24, 36)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "chestplate_2"
|
||||
description = "desc_chestplate_2"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 3
|
||||
texture = SubResource("1")
|
||||
slot_flags = 12
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"defense": 16.0,
|
||||
"dodgerate": 16.0
|
||||
}
|
||||
}
|
19
example/Items/items/coin_gold.tres
Normal file
19
example/Items/items/coin_gold.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://cqbrojgnmjvil"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_lbcs7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_lbcs7")
|
||||
region = Rect2(0, 0, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "coin_gold"
|
||||
description = "desc_coin_gold"
|
||||
max_stack_count = 100
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 6
|
||||
default_properties = {}
|
21
example/Items/items/coin_purple.tres
Normal file
21
example/Items/items/coin_purple.tres
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://4amkkv73m0lc"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_gphlp"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_gphlp")
|
||||
region = Rect2(0, 12, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "coin_purple"
|
||||
description = "desc_coin_purple"
|
||||
max_stack_count = 100
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 6
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1)
|
||||
}
|
19
example/Items/items/feather.tres
Normal file
19
example/Items/items/feather.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://csj85mouew67r"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_vvaq3"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_vvaq3")
|
||||
region = Rect2(84, 24, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "feather"
|
||||
description = "desc_feather"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {}
|
19
example/Items/items/gem_blue.tres
Normal file
19
example/Items/items/gem_blue.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://ghiwkmadh0i"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_io53q"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_io53q")
|
||||
region = Rect2(84, 36, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "gem_blue"
|
||||
description = "desc_gem_blue"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {}
|
28
example/Items/items/head_helmet.tres
Normal file
28
example/Items/items/head_helmet.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://dmgt12il41ul7"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_1ooxf"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_1ooxf")
|
||||
region = Rect2(0, 168, 24, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "head_helmet"
|
||||
description = "desc_head_helmet"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 11
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"defense": 8.0
|
||||
}
|
||||
}
|
28
example/Items/items/head_wizardhat.tres
Normal file
28
example/Items/items/head_wizardhat.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://bwtgji4rkgc5"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_6ygl4"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_6ygl4")
|
||||
region = Rect2(24, 168, 24, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "head_wizardhat"
|
||||
description = "desc_head_wizardhat"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 11
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"magic_regen": 2.0
|
||||
}
|
||||
}
|
19
example/Items/items/herb.tres
Normal file
19
example/Items/items/herb.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://v7imonnsq6xx"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_awqqy"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_awqqy")
|
||||
region = Rect2(12, 36, 24, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "herb"
|
||||
description = "desc_herb"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {}
|
19
example/Items/items/leather.tres
Normal file
19
example/Items/items/leather.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://okiwvbkwltf2"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_v5nv2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_v5nv2")
|
||||
region = Rect2(60, 24, 24, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "leather"
|
||||
description = "desc_leather"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {}
|
21
example/Items/items/magic_crystal.tres
Normal file
21
example/Items/items/magic_crystal.tres
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://d4eo3up2esgao"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_l77qe"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_l77qe")
|
||||
region = Rect2(0, 24, 12, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "magic_crystal"
|
||||
description = "desc_magic_crystal"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1)
|
||||
}
|
29
example/Items/items/melee_battleaxe.tres
Normal file
29
example/Items/items/melee_battleaxe.tres
Normal file
@ -0,0 +1,29 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://vi43b1o26w60"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_glg1x"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_glg1x")
|
||||
region = Rect2(12, 72, 12, 48)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "melee_battleaxe"
|
||||
description = "desc_melee_battleaxe"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 4
|
||||
texture = SubResource("1")
|
||||
slot_flags = 9
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"weapon_damage": 8.0,
|
||||
"weapon_speed": 0.8
|
||||
}
|
||||
}
|
29
example/Items/items/melee_sword.tres
Normal file
29
example/Items/items/melee_sword.tres
Normal file
@ -0,0 +1,29 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://cidvqmpxobgv7"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_qyy4c"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_qyy4c")
|
||||
region = Rect2(0, 72, 12, 36)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "melee_sword"
|
||||
description = "desc_melee_sword"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 3
|
||||
texture = SubResource("1")
|
||||
slot_flags = 9
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"weapon_damage": 4.0,
|
||||
"weapon_speed": 1.5
|
||||
}
|
||||
}
|
19
example/Items/items/metalscrap_copper.tres
Normal file
19
example/Items/items/metalscrap_copper.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://d2vm3srqwars"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_w6v7m"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_w6v7m")
|
||||
region = Rect2(48, 24, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "metalscrap_copper"
|
||||
description = "desc_metalscrap_copper"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {}
|
24
example/Items/items/metalscrap_gold.tres
Normal file
24
example/Items/items/metalscrap_gold.tres
Normal file
@ -0,0 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://b45up1xg1qnlo"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_eoswi"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_eoswi")
|
||||
region = Rect2(36, 36, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "metalscrap_gold"
|
||||
description = "desc_metalscrap_gold"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 10.0
|
||||
}
|
||||
}
|
19
example/Items/items/metalscrap_iron.tres
Normal file
19
example/Items/items/metalscrap_iron.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://dyb3w176j3sco"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_61lme"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_61lme")
|
||||
region = Rect2(36, 24, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "metalscrap_iron"
|
||||
description = "desc_metalscrap_iron"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {}
|
21
example/Items/items/metalscrap_wyvernite.tres
Normal file
21
example/Items/items/metalscrap_wyvernite.tres
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://desvy1h36yy1s"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_bon0y"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_bon0y")
|
||||
region = Rect2(48, 36, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "metalscrap_wyvernite"
|
||||
description = "desc_metalscrap_wyvernite"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1)
|
||||
}
|
24
example/Items/items/potion_blue.tres
Normal file
24
example/Items/items/potion_blue.tres
Normal file
@ -0,0 +1,24 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"]
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(36, 0, 12, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "potion_blue"
|
||||
description = "desc_potion_blue"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 17
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 5
|
||||
}
|
||||
}
|
21
example/Items/items/potion_purple.tres
Normal file
21
example/Items/items/potion_purple.tres
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"]
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(24, 0, 12, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "potion_purple"
|
||||
description = "desc_potion_purple"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 17
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1)
|
||||
}
|
21
example/Items/items/potion_red.tres
Normal file
21
example/Items/items/potion_red.tres
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"]
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(12, 0, 12, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "potion_red"
|
||||
description = "desc_potion_red"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 17
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1)
|
||||
}
|
28
example/Items/items/ring_1.tres
Normal file
28
example/Items/items/ring_1.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://d1sgj2djflire"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_7y5px"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_7y5px")
|
||||
region = Rect2(0, 192, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "ring_1"
|
||||
description = "desc_ring_1"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 16
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"dodgerate": 8.0
|
||||
}
|
||||
}
|
28
example/Items/items/ring_2.tres
Normal file
28
example/Items/items/ring_2.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://dwsqjeolbi2j6"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_a2wrg"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_a2wrg")
|
||||
region = Rect2(12, 192, 12, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1")
|
||||
name = "ring_2"
|
||||
description = "desc_ring_2"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 16
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"health": 8.0
|
||||
}
|
||||
}
|
21
example/Items/items/scroll_enchant.tres
Normal file
21
example/Items/items/scroll_enchant.tres
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://7vy4rqrqnt4q"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_oismr"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_oismr")
|
||||
region = Rect2(96, 24, 12, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "scroll_enchant"
|
||||
description = "desc_scroll_enchant"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 6
|
||||
default_properties = {
|
||||
"back_color": Color(0.67451, 0.270588, 0.972549, 1)
|
||||
}
|
28
example/Items/items/wand_purple.tres
Normal file
28
example/Items/items/wand_purple.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://ckgvaqimbvnv8"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_8lhvp"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_8lhvp")
|
||||
region = Rect2(0, 48, 12, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "wand_purple"
|
||||
description = "desc_wand_purple"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 9
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"magic": 16.0
|
||||
}
|
||||
}
|
28
example/Items/items/wand_red.tres
Normal file
28
example/Items/items/wand_red.tres
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://napa4vmvmphs"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_cihvk"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_cihvk")
|
||||
region = Rect2(12, 48, 12, 24)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "wand_red"
|
||||
description = "desc_wand_red"
|
||||
max_stack_count = 1
|
||||
in_inventory_width = 1
|
||||
in_inventory_height = 2
|
||||
texture = SubResource("1")
|
||||
slot_flags = 9
|
||||
default_properties = {
|
||||
"back_color": Color(1, 0.65098, 0, 1),
|
||||
"price": {
|
||||
"res://example/wyvernbox/item_types/consumable/coin_gold.tres": 50,
|
||||
"res://example/wyvernbox/item_types/consumable/coin_purple.tres": 10
|
||||
},
|
||||
"stats": {
|
||||
"spell_damage": 8.0
|
||||
}
|
||||
}
|
19
example/Items/items/wood.tres
Normal file
19
example/Items/items/wood.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://uge4rk0vtwxs"]
|
||||
|
||||
[ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="2_7ia04"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="1"]
|
||||
atlas = ExtResource("2_7ia04")
|
||||
region = Rect2(60, 36, 24, 12)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2")
|
||||
name = "wood"
|
||||
description = "desc_wood"
|
||||
max_stack_count = 20
|
||||
in_inventory_width = 2
|
||||
in_inventory_height = 1
|
||||
texture = SubResource("1")
|
||||
slot_flags = 8
|
||||
default_properties = {}
|
Loading…
Reference in New Issue
Block a user