Added resource table plugin
This commit is contained in:
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 |
40
example/Items/item_icons/items.png.import
Normal file
40
example/Items/item_icons/items.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[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/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
32
example/Items/item_type.gd
Normal file
32
example/Items/item_type.gd
Normal file
@@ -0,0 +1,32 @@
|
||||
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
|
||||
1
example/Items/item_type.gd.uid
Normal file
1
example/Items/item_type.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://h6p7lsxyhmyt
|
||||
19
example/Items/items/arrows.tres
Normal file
19
example/Items/items/arrows.tres
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" load_steps=4 format=3 uid="uid://c65l1w3756rlu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://d2gb438d6vtlg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://c158a1idjr28m"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://ubapirchpsp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://nquj8y70tdy1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://cqbrojgnmjvil"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://4amkkv73m0lc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://csj85mouew67r"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://ghiwkmadh0i"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://dmgt12il41ul7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://bwtgji4rkgc5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://v7imonnsq6xx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://okiwvbkwltf2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://d4eo3up2esgao"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://vi43b1o26w60"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://cidvqmpxobgv7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://d2vm3srqwars"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://b45up1xg1qnlo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://dyb3w176j3sco"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://desvy1h36yy1s"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://b0l5g2tgwvm3b"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"]
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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 = 4
|
||||
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" load_steps=4 format=3 uid="uid://cbrsfa22sudf5"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"]
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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 = 4
|
||||
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" load_steps=4 format=3 uid="uid://crq178t8cp2g7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"]
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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 = 4
|
||||
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" load_steps=4 format=3 uid="uid://d1sgj2djflire"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://dwsqjeolbi2j6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://7vy4rqrqnt4q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://ckgvaqimbvnv8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://napa4vmvmphs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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" load_steps=4 format=3 uid="uid://uge4rk0vtwxs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h6p7lsxyhmyt" 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 = {}
|
||||
BIN
example/Random Upgrades/icons/all_icons.png
Normal file
BIN
example/Random Upgrades/icons/all_icons.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
40
example/Random Upgrades/icons/all_icons.png.import
Normal file
40
example/Random Upgrades/icons/all_icons.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b7e3wp7i33ye5"
|
||||
path="res://.godot/imported/all_icons.png-28909f8bd099d79f5d095eb93a9167e6.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://example/Random Upgrades/icons/all_icons.png"
|
||||
dest_files=["res://.godot/imported/all_icons.png-28909f8bd099d79f5d095eb93a9167e6.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_1.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_1.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://c3bx6kf7frbwk"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://cak6lra5ej68c"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_6pmrx"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_6pmrx")
|
||||
region = Rect2(64, 128, 64, 64)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://dkc8d2p0xbl1n"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_lk0lg"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_lk0lg")
|
||||
region = Rect2(128, 128, 64, 64)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://ciiykhulvckp7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_fd56b"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_fd56b")
|
||||
region = Rect2(192, 128, 64, 64)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://dki1d3uksoyfj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_ds6ve"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_ds6ve")
|
||||
region = Rect2(0, 192, 64, 64)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://cpenn4qsfhx28"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_icesd"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_icesd")
|
||||
region = Rect2(64, 192, 64, 64)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://cm6cb8uou75x0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_mlqxi"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_mlqxi")
|
||||
region = Rect2(128, 192, 64, 64)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://0c7ngrkwn42u"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_jk82p"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_jk82p")
|
||||
region = Rect2(192, 192, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_2.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_2.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://dfpwu4ra3fxgx"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_3.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_3.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://d38giyxvkhl6g"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(128, 0, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_4.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_4.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://cluvoehgeqmcu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(192, 0, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_5.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_5.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://djjpa8lluue1g"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1")
|
||||
region = Rect2(0, 64, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_6.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_6.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://butx3l1jdcgcc"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_em1jn"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_em1jn")
|
||||
region = Rect2(64, 64, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_7.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_7.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://dfhgifwrrigrw"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_bpiay"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_bpiay")
|
||||
region = Rect2(128, 64, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_8.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_8.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://dacww8ptt8uyo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_mbxiu"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_mbxiu")
|
||||
region = Rect2(192, 64, 64, 64)
|
||||
7
example/Random Upgrades/icons/all_icons/all_icons_9.tres
Normal file
7
example/Random Upgrades/icons/all_icons/all_icons_9.tres
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://dbbgxcs806sy8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b7e3wp7i33ye5" path="res://example/Random Upgrades/icons/all_icons.png" id="1_bw3gq"]
|
||||
|
||||
[resource]
|
||||
atlas = ExtResource("1_bw3gq")
|
||||
region = Rect2(0, 128, 64, 64)
|
||||
31
example/Random Upgrades/new scene.tscn
Normal file
31
example/Random Upgrades/new scene.tscn
Normal file
@@ -0,0 +1,31 @@
|
||||
[gd_scene format=3 uid="uid://b4cix5ebtpdbf"]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
offset_left = 363.0
|
||||
offset_top = 83.0
|
||||
offset_right = 718.0
|
||||
offset_bottom = 632.0
|
||||
color = Color(0, 1, 0.0156863, 1)
|
||||
|
||||
[node name="ColorRect2" type="ColorRect" parent="."]
|
||||
offset_left = 833.0
|
||||
offset_top = 304.0
|
||||
offset_right = 1095.0
|
||||
offset_bottom = 653.0
|
||||
color = Color(0, 0.905882, 1, 1)
|
||||
|
||||
[node name="ColorRect3" type="ColorRect" parent="."]
|
||||
offset_left = 553.0
|
||||
offset_top = 491.0
|
||||
offset_right = 929.0
|
||||
offset_bottom = 770.0
|
||||
color = Color(0, 0.0156863, 1, 1)
|
||||
|
||||
[node name="ColorRect4" type="ColorRect" parent="."]
|
||||
offset_left = 746.0
|
||||
offset_top = 397.0
|
||||
offset_right = 1077.0
|
||||
offset_bottom = 632.0
|
||||
color = Color(0.686275, 0, 1, 1)
|
||||
30
example/Random Upgrades/upgrade_data.gd
Normal file
30
example/Random Upgrades/upgrade_data.gd
Normal file
@@ -0,0 +1,30 @@
|
||||
@tool
|
||||
class_name UpgradeData
|
||||
extends Resource
|
||||
|
||||
enum Attributes {
|
||||
Strength = 0,
|
||||
Magic,
|
||||
Endurance,
|
||||
Agility,
|
||||
Luck,
|
||||
Mastery = 128,
|
||||
}
|
||||
|
||||
@export var color1 := Color.WHITE
|
||||
@export var max_duplicates := 0
|
||||
@export var tags : Array[String]
|
||||
@export_enum("Weapon:0", "Passive:1", "Mastery:16") var type := 0
|
||||
@export var attributes : Array[Attributes]
|
||||
@export var icon : Texture
|
||||
@export var custom_scene : PackedScene
|
||||
@export var prerequisites : Array[UpgradeData]
|
||||
@export var color2 := Color.WHITE
|
||||
@export var base_weight := 10.0
|
||||
@export var is_notable := false
|
||||
@export_multiline var multiplier_per_tag := ""
|
||||
@export_multiline var multiplier_if_tag_present := ""
|
||||
@export_multiline var multiplier_if_tag_not_present := ""
|
||||
@export_multiline var max_tags_present := ""
|
||||
@export var list_item_delimeter := " "
|
||||
@export var list_row_delimeter := ";"
|
||||
1
example/Random Upgrades/upgrade_data.gd.uid
Normal file
1
example/Random Upgrades/upgrade_data.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dal80o4tjrktw
|
||||
16
example/Random Upgrades/upgrade_data_weapon.gd
Normal file
16
example/Random Upgrades/upgrade_data_weapon.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
@tool
|
||||
extends "res://example/Random Upgrades/upgrade_data.gd"
|
||||
|
||||
@export var weapon_damage := 0.0
|
||||
@export var weapon_cooldown := 0.0
|
||||
@export var weapon_dps := 0.0:
|
||||
set(v):
|
||||
weapon_damage = v * weapon_cooldown
|
||||
get:
|
||||
return weapon_damage / weapon_cooldown if weapon_cooldown != 0.0 else 0.0
|
||||
|
||||
|
||||
func _validate_property(property: Dictionary) -> void:
|
||||
if property.name == &"weapon_dps":
|
||||
# Show in inspector, but don't save into resource file.
|
||||
property.usage = PROPERTY_USAGE_EDITOR
|
||||
1
example/Random Upgrades/upgrade_data_weapon.gd.uid
Normal file
1
example/Random Upgrades/upgrade_data_weapon.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dk08sbdai3pem
|
||||
25
example/Random Upgrades/upgrades/elemental.tres
Normal file
25
example/Random Upgrades/upgrades/elemental.tres
Normal file
@@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=3 format=3 uid="uid://8m6y2o6tbmpn"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://butx3l1jdcgcc" path="res://example/Random Upgrades/icons/all_icons/all_icons_6.tres" id="1_utkae"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Upgrade: Elemental Damage"
|
||||
script = ExtResource("2")
|
||||
color1 = Color(1, 1, 1, 1)
|
||||
max_duplicates = 9
|
||||
tags = Array[String](["elemental"])
|
||||
type = 1
|
||||
attributes = Array[int]([1])
|
||||
icon = ExtResource("1_utkae")
|
||||
prerequisites = Array[ExtResource("2")]([])
|
||||
color2 = Color(0.964706, 0.298039, 0.298039, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = ""
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = "elemental 0"
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
25
example/Random Upgrades/upgrades/health.tres
Normal file
25
example/Random Upgrades/upgrades/health.tres
Normal file
@@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=3 format=3 uid="uid://dys7hpijn82t0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c3bx6kf7frbwk" path="res://example/Random Upgrades/icons/all_icons/all_icons_1.tres" id="1"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Upgrade: Health"
|
||||
script = ExtResource("2")
|
||||
color1 = Color(1, 1, 1, 1)
|
||||
max_duplicates = 9
|
||||
tags = Array[String](["health", "melee"])
|
||||
type = 1
|
||||
attributes = Array[int]([2])
|
||||
icon = ExtResource("1")
|
||||
prerequisites = Array[ExtResource("2")]([])
|
||||
color2 = Color(0.129412, 1, 0.243137, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = "strength 1.5 melee 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
29
example/Random Upgrades/upgrades/mastery_magic.tres
Normal file
29
example/Random Upgrades/upgrades/mastery_magic.tres
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=7 format=3 uid="uid://2totlbwc40e8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djjpa8lluue1g" path="res://example/Random Upgrades/icons/all_icons/all_icons_5.tres" id="1_ardng"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2"]
|
||||
[ext_resource type="Resource" uid="uid://rjxr4qtfc6qd" path="res://example/Random Upgrades/upgrades/weapons/weapon_fireball.tres" id="2_485ad"]
|
||||
[ext_resource type="Resource" uid="uid://djqq1lqaevth5" path="res://example/Random Upgrades/upgrades/weapons/weapon_blizzard.tres" id="3_xnxxn"]
|
||||
[ext_resource type="Resource" uid="uid://b0kdw067vtgvn" path="res://example/Random Upgrades/upgrades/weapons/weapon_lightning.tres" id="4_kn0kg"]
|
||||
[ext_resource type="Resource" uid="uid://8m6y2o6tbmpn" path="res://example/Random Upgrades/upgrades/elemental.tres" id="6_shqeu"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Mastery: Magic"
|
||||
script = ExtResource("2")
|
||||
color1 = Color(1, 0.847059, 0.160784, 1)
|
||||
max_duplicates = 9
|
||||
tags = Array[String](["magic", "mastery"])
|
||||
type = 16
|
||||
attributes = Array[int]([1, 1, 4, 128])
|
||||
icon = ExtResource("1_ardng")
|
||||
prerequisites = Array[ExtResource("2")]([ExtResource("2_485ad"), ExtResource("3_xnxxn"), ExtResource("4_kn0kg"), ExtResource("6_shqeu")])
|
||||
color2 = Color(0.407843, 0.192157, 0.827451, 1)
|
||||
base_weight = 1.0
|
||||
is_notable = true
|
||||
multiplier_per_tag = "magic 1.2"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = "magic 0"
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
29
example/Random Upgrades/upgrades/mastery_strength.tres
Normal file
29
example/Random Upgrades/upgrades/mastery_strength.tres
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=7 format=3 uid="uid://d1suh8iai43st"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dfpwu4ra3fxgx" path="res://example/Random Upgrades/icons/all_icons/all_icons_2.tres" id="1_442ey"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2"]
|
||||
[ext_resource type="Resource" uid="uid://cux4x0qopwiqk" path="res://example/Random Upgrades/upgrades/weapons/weapon_dagger.tres" id="2_kb33p"]
|
||||
[ext_resource type="Resource" uid="uid://b78jqcpgef2ud" path="res://example/Random Upgrades/upgrades/weapons/weapon_axe.tres" id="3_tt25f"]
|
||||
[ext_resource type="Resource" uid="uid://xl0yx8uq6bfp" path="res://example/Random Upgrades/upgrades/weapons/weapon_spear.tres" id="4_kpsn8"]
|
||||
[ext_resource type="Resource" uid="uid://c6hsg3j74vm56" path="res://example/Random Upgrades/upgrades/up_strength.tres" id="6_gpjyk"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Mastery: Strength"
|
||||
script = ExtResource("2")
|
||||
color1 = Color(1, 0.847059, 0.160784, 1)
|
||||
max_duplicates = 9
|
||||
tags = Array[String](["strength", "mastery"])
|
||||
type = 16
|
||||
attributes = Array[int]([0, 0, 4, 128])
|
||||
icon = ExtResource("1_442ey")
|
||||
prerequisites = Array[ExtResource("2")]([ExtResource("2_kb33p"), ExtResource("3_tt25f"), ExtResource("4_kpsn8"), ExtResource("6_gpjyk")])
|
||||
color2 = Color(0.992157, 0.941176, 0.2, 1)
|
||||
base_weight = 1.0
|
||||
is_notable = true
|
||||
multiplier_per_tag = "strength 1.2"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = "strength 0"
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
26
example/Random Upgrades/upgrades/up_aoe.tres
Normal file
26
example/Random Upgrades/upgrades/up_aoe.tres
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=4 format=3 uid="uid://2y7extlq12d5"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://butx3l1jdcgcc" path="res://example/Random Upgrades/icons/all_icons/all_icons_6.tres" id="1_prpsx"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2"]
|
||||
[ext_resource type="Resource" uid="uid://8m6y2o6tbmpn" path="res://example/Random Upgrades/upgrades/elemental.tres" id="3_xu25t"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Upgrade: Area of Effect"
|
||||
script = ExtResource("2")
|
||||
color1 = Color(1, 1, 1, 1)
|
||||
max_duplicates = 4
|
||||
tags = Array[String](["aoe"])
|
||||
type = 1
|
||||
attributes = Array[int]([3])
|
||||
icon = ExtResource("1_prpsx")
|
||||
prerequisites = Array[ExtResource("2")]([ExtResource("3_xu25t")])
|
||||
color2 = Color(0.964706, 0.298039, 0.298039, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = ""
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = "aoe 0"
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
25
example/Random Upgrades/upgrades/up_magic.tres
Normal file
25
example/Random Upgrades/upgrades/up_magic.tres
Normal file
@@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=3 format=3 uid="uid://ce2kulhm7amkp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djjpa8lluue1g" path="res://example/Random Upgrades/icons/all_icons/all_icons_5.tres" id="1_we1lq"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Upgrade: Magic"
|
||||
script = ExtResource("2")
|
||||
color1 = Color(1, 1, 1, 1)
|
||||
max_duplicates = 9
|
||||
tags = Array[String](["magic"])
|
||||
type = 1
|
||||
attributes = Array[int]([1])
|
||||
icon = ExtResource("1_we1lq")
|
||||
prerequisites = Array[ExtResource("2")]([])
|
||||
color2 = Color(0.188235, 0.45098, 0.901961, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = ""
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = "magic 0"
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
26
example/Random Upgrades/upgrades/up_movement_speed.tres
Normal file
26
example/Random Upgrades/upgrades/up_movement_speed.tres
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=4 format=3 uid="uid://bn0r0bvk8fylt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dfpwu4ra3fxgx" path="res://example/Random Upgrades/icons/all_icons/all_icons_2.tres" id="1_fy5ui"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2_gfl7s"]
|
||||
[ext_resource type="Resource" uid="uid://c6hsg3j74vm56" path="res://example/Random Upgrades/upgrades/up_strength.tres" id="3_5v8xn"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Upgrade: Strength"
|
||||
script = ExtResource("2_gfl7s")
|
||||
color1 = Color(1, 1, 1, 1)
|
||||
max_duplicates = 9
|
||||
tags = Array[String](["strength"])
|
||||
type = 1
|
||||
attributes = Array[int]([0])
|
||||
icon = ExtResource("1_fy5ui")
|
||||
prerequisites = Array[ExtResource("2_gfl7s")]([ExtResource("3_5v8xn")])
|
||||
color2 = Color(0.980392, 0.584314, 0.203922, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = ""
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = "strength 0"
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
25
example/Random Upgrades/upgrades/up_strength.tres
Normal file
25
example/Random Upgrades/upgrades/up_strength.tres
Normal file
@@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="UpgradeData" load_steps=3 format=3 uid="uid://c6hsg3j74vm56"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dfpwu4ra3fxgx" path="res://example/Random Upgrades/icons/all_icons/all_icons_2.tres" id="1"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Upgrade: Strength"
|
||||
script = ExtResource("2")
|
||||
color1 = Color(1, 1, 1, 1)
|
||||
max_duplicates = 9
|
||||
tags = Array[String](["strength"])
|
||||
type = 1
|
||||
attributes = Array[int]([0])
|
||||
icon = ExtResource("1")
|
||||
prerequisites = Array[ExtResource("2")]([])
|
||||
color2 = Color(0.980392, 0.584314, 0.203922, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = ""
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = "strength 0"
|
||||
max_tags_present = ""
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
28
example/Random Upgrades/upgrades/weapons/weapon_axe.tres
Normal file
28
example/Random Upgrades/upgrades/weapons/weapon_axe.tres
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" load_steps=4 format=3 uid="uid://b78jqcpgef2ud"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d38giyxvkhl6g" path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" id="1_1nxl6"]
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_646el"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2_w4j2j"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Axe"
|
||||
script = ExtResource("1_646el")
|
||||
weapon_damage = 4.0
|
||||
weapon_cooldown = 6.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["strength", "melee", "weapon"])
|
||||
type = 0
|
||||
attributes = Array[int]([0, 2])
|
||||
icon = ExtResource("1_1nxl6")
|
||||
prerequisites = Array[ExtResource("2_w4j2j")]([])
|
||||
color2 = Color(0.980392, 0.584314, 0.203922, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = "strength 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
@@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" load_steps=4 format=3 uid="uid://djqq1lqaevth5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_pewbv"]
|
||||
[ext_resource type="Texture2D" uid="uid://cluvoehgeqmcu" path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" id="1_sr0ui"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2_yatbe"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Blizzard"
|
||||
script = ExtResource("1_pewbv")
|
||||
weapon_damage = 4.0
|
||||
weapon_cooldown = 6.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["weapon", "magic", "elemental"])
|
||||
type = 0
|
||||
attributes = Array[int]([1, 2])
|
||||
icon = ExtResource("1_sr0ui")
|
||||
prerequisites = Array[ExtResource("2_yatbe")]([])
|
||||
color2 = Color(0.189457, 0.452246, 0.902344, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = "magic 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
@@ -0,0 +1,30 @@
|
||||
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://60buw33oe30f"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_02in4"]
|
||||
[ext_resource type="Texture2D" uid="uid://cluvoehgeqmcu" path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" id="1_6lnsr"]
|
||||
[ext_resource type="PackedScene" uid="uid://b4cix5ebtpdbf" path="res://example/Random Upgrades/new scene.tscn" id="1_xh6ym"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="3_o4xc8"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Chaos Blast"
|
||||
script = ExtResource("1_02in4")
|
||||
weapon_damage = 12.0
|
||||
weapon_cooldown = 8.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["weapon", "magic", "projectile", "legendary"])
|
||||
type = 0
|
||||
attributes = Array[int]([1, 1, 1, 3])
|
||||
icon = ExtResource("1_6lnsr")
|
||||
custom_scene = ExtResource("1_xh6ym")
|
||||
prerequisites = Array[ExtResource("3_o4xc8")]([])
|
||||
color2 = Color(0.407843, 0.192157, 0.827451, 1)
|
||||
base_weight = 1.0
|
||||
is_notable = true
|
||||
multiplier_per_tag = "magic 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
28
example/Random Upgrades/upgrades/weapons/weapon_dagger.tres
Normal file
28
example/Random Upgrades/upgrades/weapons/weapon_dagger.tres
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" load_steps=4 format=3 uid="uid://cux4x0qopwiqk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_birsa"]
|
||||
[ext_resource type="Texture2D" uid="uid://d38giyxvkhl6g" path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" id="1_sx5xe"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2_po4ym"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Daggers"
|
||||
script = ExtResource("1_birsa")
|
||||
weapon_damage = 4.0
|
||||
weapon_cooldown = 6.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["weapon", "strength", "projectile"])
|
||||
type = 0
|
||||
attributes = Array[int]([0, 3])
|
||||
icon = ExtResource("1_sx5xe")
|
||||
prerequisites = Array[ExtResource("2_po4ym")]([])
|
||||
color2 = Color(0.980392, 0.584314, 0.203922, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = "strength 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
@@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" load_steps=4 format=3 uid="uid://rjxr4qtfc6qd"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cluvoehgeqmcu" path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" id="1_5uqil"]
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_mehe7"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2_1ne1s"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Fireball"
|
||||
script = ExtResource("1_mehe7")
|
||||
weapon_damage = 4.0
|
||||
weapon_cooldown = 6.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["weapon", "magic", "projectile", "elemental"])
|
||||
type = 0
|
||||
attributes = Array[int]([1, 2])
|
||||
icon = ExtResource("1_5uqil")
|
||||
prerequisites = Array[ExtResource("2_1ne1s")]([])
|
||||
color2 = Color(0.189457, 0.452246, 0.902344, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = "magic 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
@@ -0,0 +1,30 @@
|
||||
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://c1mrcevxrm5kv"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b4cix5ebtpdbf" path="res://example/Random Upgrades/new scene.tscn" id="1_gppwv"]
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_ldwst"]
|
||||
[ext_resource type="Texture2D" uid="uid://d38giyxvkhl6g" path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" id="1_lir0x"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="3_8w1k7"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Giga Sword"
|
||||
script = ExtResource("1_ldwst")
|
||||
weapon_damage = 12.0
|
||||
weapon_cooldown = 8.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["weapon", "strength", "melee", "legendary"])
|
||||
type = 0
|
||||
attributes = Array[int]([0, 0, 0, 2])
|
||||
icon = ExtResource("1_lir0x")
|
||||
custom_scene = ExtResource("1_gppwv")
|
||||
prerequisites = Array[ExtResource("3_8w1k7")]([])
|
||||
color2 = Color(0.992157, 0.941176, 0.2, 1)
|
||||
base_weight = 1.0
|
||||
is_notable = true
|
||||
multiplier_per_tag = "strength 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
@@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" load_steps=4 format=3 uid="uid://b0kdw067vtgvn"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cluvoehgeqmcu" path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" id="1_jsyxk"]
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_yjf8q"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2_dskpw"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Lightning"
|
||||
script = ExtResource("1_yjf8q")
|
||||
weapon_damage = 4.0
|
||||
weapon_cooldown = 6.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["weapon", "magic", "elemental"])
|
||||
type = 0
|
||||
attributes = Array[int]([1, 3])
|
||||
icon = ExtResource("1_jsyxk")
|
||||
prerequisites = Array[ExtResource("2_dskpw")]([])
|
||||
color2 = Color(0.189457, 0.452246, 0.902344, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = "magic 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
28
example/Random Upgrades/upgrades/weapons/weapon_spear.tres
Normal file
28
example/Random Upgrades/upgrades/weapons/weapon_spear.tres
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_resource type="Resource" load_steps=4 format=3 uid="uid://xl0yx8uq6bfp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d38giyxvkhl6g" path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" id="1"]
|
||||
[ext_resource type="Script" uid="uid://dk08sbdai3pem" path="res://example/Random Upgrades/upgrade_data_weapon.gd" id="1_rw2g6"]
|
||||
[ext_resource type="Script" uid="uid://dal80o4tjrktw" path="res://example/Random Upgrades/upgrade_data.gd" id="2_sqli1"]
|
||||
|
||||
[resource]
|
||||
resource_name = "Weapon: Spear"
|
||||
script = ExtResource("1_rw2g6")
|
||||
weapon_damage = 4.0
|
||||
weapon_cooldown = 6.0
|
||||
color1 = Color(0.635294, 0.760784, 1, 1)
|
||||
max_duplicates = 1
|
||||
tags = Array[String](["weapon", "strength", "melee"])
|
||||
type = 0
|
||||
attributes = Array[int]([0, 3])
|
||||
icon = ExtResource("1")
|
||||
prerequisites = Array[ExtResource("2_sqli1")]([])
|
||||
color2 = Color(0.980392, 0.584314, 0.203922, 1)
|
||||
base_weight = 10.0
|
||||
is_notable = false
|
||||
multiplier_per_tag = "strength 2.0"
|
||||
multiplier_if_tag_present = ""
|
||||
multiplier_if_tag_not_present = ""
|
||||
max_tags_present = "weapon 4"
|
||||
list_item_delimeter = " "
|
||||
list_row_delimeter = "
|
||||
"
|
||||
33
example/Random Upgrades/upgrades_csv/upgrades.csv
Normal file
33
example/Random Upgrades/upgrades_csv/upgrades.csv
Normal file
@@ -0,0 +1,33 @@
|
||||
resource_path;resource_name;color1;max_duplicates;tags;type;attributes;icon;custom_scene;prerequisites;color2;base_weight;is_notable;multiplier_per_tag;multiplier_if_tag_present;multiplier_if_tag_not_present;max_tags_present;list_item_delimeter;list_row_delimeter;weapon_damage;weapon_cooldown;weapon_dps
|
||||
res://example/Random Upgrades/upgrades/elemental.tres;Upgrade: Elemental Damage;ffffffff;9;"[""elemental""]";Passive;[1];res://example/Random Upgrades/icons/all_icons/all_icons_6.tres;;[];f64c4cff;10;No;;;elemental 0;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/health.tres;Upgrade: Health;ffffffff;9;"[""health"", ""melee""]";Passive;[2];res://example/Random Upgrades/icons/all_icons/all_icons_1.tres;;[];21ff3eff;10;No;strength 1.5 melee 2.0;;;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/mastery_magic.tres;Mastery: Magic;ffd829ff;9;"[""magic"", ""mastery""]";Mastery;[1, 1, 4, 128];res://example/Random Upgrades/icons/all_icons/all_icons_5.tres;;[<Resource#-9223370228270825912>, <Resource#-9223370228052722102>, <Resource#-9223370227834618292>, <Resource#-9223370229562671554>];6831d3ff;1;Yes;magic 1.2;;magic 0;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/mastery_strength.tres;Mastery: Strength;ffd829ff;9;"[""strength"", ""mastery""]";Mastery;[0, 0, 4, 128];res://example/Random Upgrades/icons/all_icons/all_icons_2.tres;;[<Resource#-9223370227096420787>, <Resource#-9223370226878316976>, <Resource#-9223370226660213166>, <Resource#-9223370226509218223>];fdf033ff;1;Yes;strength 1.2;;strength 0;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/up_aoe.tres;Upgrade: Area of Effect;ffffffff;4;"[""aoe""]";Passive;[3];res://example/Random Upgrades/icons/all_icons/all_icons_6.tres;;[<Resource#-9223370229562671554>];f64c4cff;10;No;;;aoe 0;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/up_magic.tres;Upgrade: Magic;ffffffff;9;"[""magic""]";Passive;[1];res://example/Random Upgrades/icons/all_icons/all_icons_5.tres;;[];3073e6ff;10;No;;;magic 0;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/up_movement_speed.tres;Upgrade: Strength;ffffffff;9;"[""strength""]";Passive;[0];res://example/Random Upgrades/icons/all_icons/all_icons_2.tres;;[<Resource#-9223370226509218223>];fa9534ff;10;No;;;strength 0;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/up_strength.tres;Upgrade: Strength;ffffffff;9;"[""strength""]";Passive;[0];res://example/Random Upgrades/icons/all_icons/all_icons_2.tres;;[];fa9534ff;10;No;;;strength 0;; ;"
|
||||
";;;
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_axe.tres;Weapon: Axe;a2c2ffff;1;"[""strength"", ""melee"", ""weapon""]";Weapon;[0, 2];res://example/Random Upgrades/icons/all_icons/all_icons_3.tres;;[];fa9534ff;10;No;strength 2.0;;;weapon 4; ;"
|
||||
";4;6;0.66666666666667
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_blizzard.tres;Weapon: Blizzard;a2c2ffff;1;"[""weapon"", ""magic"", ""elemental""]";Weapon;[1, 2];res://example/Random Upgrades/icons/all_icons/all_icons_4.tres;;[];3073e6ff;10;No;magic 2.0;;;weapon 4; ;"
|
||||
";4;6;0.66666666666667
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_chaos_blast.tres;Weapon: Chaos Blast;a2c2ffff;1;"[""weapon"", ""magic"", ""projectile"", ""legendary""]";Weapon;[1, 1, 1, 3];res://example/Random Upgrades/icons/all_icons/all_icons_4.tres;res://example/Random Upgrades/new scene.tscn;[];6831d3ff;1;Yes;magic 2.0;;;weapon 4; ;"
|
||||
";12;8;1.5
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_dagger.tres;Weapon: Daggers;a2c2ffff;1;"[""weapon"", ""strength"", ""projectile""]";Weapon;[0, 3];res://example/Random Upgrades/icons/all_icons/all_icons_3.tres;;[];fa9534ff;10;No;strength 2.0;;;weapon 4; ;"
|
||||
";4;6;0.66666666666667
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_fireball.tres;Weapon: Fireball;a2c2ffff;1;"[""weapon"", ""magic"", ""projectile"", ""elemental""]";Weapon;[1, 2];res://example/Random Upgrades/icons/all_icons/all_icons_4.tres;;[];3073e6ff;10;No;magic 2.0;;;weapon 4; ;"
|
||||
";4;6;0.66666666666667
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_giga_sword.tres;Weapon: Giga Sword;a2c2ffff;1;"[""weapon"", ""strength"", ""melee"", ""legendary""]";Weapon;[0, 0, 0, 2];res://example/Random Upgrades/icons/all_icons/all_icons_3.tres;res://example/Random Upgrades/new scene.tscn;[];fdf033ff;1;Yes;strength 2.0;;;weapon 4; ;"
|
||||
";12;8;1.5
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_lightning.tres;Weapon: Lightning;a2c2ffff;1;"[""weapon"", ""magic"", ""elemental""]";Weapon;[1, 3];res://example/Random Upgrades/icons/all_icons/all_icons_4.tres;;[];3073e6ff;10;No;magic 2.0;;;weapon 4; ;"
|
||||
";4;6;0.66666666666667
|
||||
res://example/Random Upgrades/upgrades/weapons/weapon_spear.tres;Weapon: Spear;a2c2ffff;1;"[""weapon"", ""strength"", ""melee""]";Weapon;[0, 3];res://example/Random Upgrades/icons/all_icons/all_icons_3.tres;;[];fa9534ff;10;No;strength 2.0;;;weapon 4; ;"
|
||||
";4;6;0.66666666666667
|
||||
|
3
example/Random Upgrades/upgrades_csv/upgrades.csv.import
Normal file
3
example/Random Upgrades/upgrades_csv/upgrades.csv.import
Normal file
@@ -0,0 +1,3 @@
|
||||
[remap]
|
||||
|
||||
importer="keep"
|
||||
Reference in New Issue
Block a user