diff --git a/example/icons/all_icons.png b/example/Random Upgrades/icons/all_icons.png similarity index 100% rename from example/icons/all_icons.png rename to example/Random Upgrades/icons/all_icons.png diff --git a/example/icons/all_icons.png.import b/example/Random Upgrades/icons/all_icons.png.import similarity index 69% rename from example/icons/all_icons.png.import rename to example/Random Upgrades/icons/all_icons.png.import index 3742958..cec9810 100644 --- a/example/icons/all_icons.png.import +++ b/example/Random Upgrades/icons/all_icons.png.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/all_icons.png-81c01fb40e0103e1eb894edd007b8876.stex" +path="res://.import/all_icons.png-28909f8bd099d79f5d095eb93a9167e6.stex" metadata={ "vram_texture": false } [deps] -source_file="res://example/icons/all_icons.png" -dest_files=[ "res://.import/all_icons.png-81c01fb40e0103e1eb894edd007b8876.stex" ] +source_file="res://example/Random Upgrades/icons/all_icons.png" +dest_files=[ "res://.import/all_icons.png-28909f8bd099d79f5d095eb93a9167e6.stex" ] [params] diff --git a/example/icons/all_icons/all_icons_1.tres b/example/Random Upgrades/icons/all_icons/all_icons_1.tres similarity index 59% rename from example/icons/all_icons/all_icons_1.tres rename to example/Random Upgrades/icons/all_icons/all_icons_1.tres index c2fb21c..b946b88 100644 --- a/example/icons/all_icons/all_icons_1.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_1.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_10.tres b/example/Random Upgrades/icons/all_icons/all_icons_10.tres similarity index 60% rename from example/icons/all_icons/all_icons_10.tres rename to example/Random Upgrades/icons/all_icons/all_icons_10.tres index 2d1acba..9afe0e6 100644 --- a/example/icons/all_icons/all_icons_10.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_10.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_11.tres b/example/Random Upgrades/icons/all_icons/all_icons_11.tres similarity index 60% rename from example/icons/all_icons/all_icons_11.tres rename to example/Random Upgrades/icons/all_icons/all_icons_11.tres index 948fc9a..f984d28 100644 --- a/example/icons/all_icons/all_icons_11.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_11.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_12.tres b/example/Random Upgrades/icons/all_icons/all_icons_12.tres similarity index 60% rename from example/icons/all_icons/all_icons_12.tres rename to example/Random Upgrades/icons/all_icons/all_icons_12.tres index 63e2755..0e8c876 100644 --- a/example/icons/all_icons/all_icons_12.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_12.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_13.tres b/example/Random Upgrades/icons/all_icons/all_icons_13.tres similarity index 59% rename from example/icons/all_icons/all_icons_13.tres rename to example/Random Upgrades/icons/all_icons/all_icons_13.tres index 79b1087..30f07ca 100644 --- a/example/icons/all_icons/all_icons_13.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_13.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_14.tres b/example/Random Upgrades/icons/all_icons/all_icons_14.tres similarity index 60% rename from example/icons/all_icons/all_icons_14.tres rename to example/Random Upgrades/icons/all_icons/all_icons_14.tres index 6898042..cdfd3e7 100644 --- a/example/icons/all_icons/all_icons_14.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_14.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_15.tres b/example/Random Upgrades/icons/all_icons/all_icons_15.tres similarity index 60% rename from example/icons/all_icons/all_icons_15.tres rename to example/Random Upgrades/icons/all_icons/all_icons_15.tres index d51c708..9db30c9 100644 --- a/example/icons/all_icons/all_icons_15.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_15.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_16.tres b/example/Random Upgrades/icons/all_icons/all_icons_16.tres similarity index 60% rename from example/icons/all_icons/all_icons_16.tres rename to example/Random Upgrades/icons/all_icons/all_icons_16.tres index 20fb4aa..7076d68 100644 --- a/example/icons/all_icons/all_icons_16.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_16.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_2.tres b/example/Random Upgrades/icons/all_icons/all_icons_2.tres similarity index 59% rename from example/icons/all_icons/all_icons_2.tres rename to example/Random Upgrades/icons/all_icons/all_icons_2.tres index 822d10c..229f851 100644 --- a/example/icons/all_icons/all_icons_2.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_2.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_3.tres b/example/Random Upgrades/icons/all_icons/all_icons_3.tres similarity index 59% rename from example/icons/all_icons/all_icons_3.tres rename to example/Random Upgrades/icons/all_icons/all_icons_3.tres index d40c073..ee7e8f6 100644 --- a/example/icons/all_icons/all_icons_3.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_3.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_4.tres b/example/Random Upgrades/icons/all_icons/all_icons_4.tres similarity index 59% rename from example/icons/all_icons/all_icons_4.tres rename to example/Random Upgrades/icons/all_icons/all_icons_4.tres index fc4bdb3..e7aea2a 100644 --- a/example/icons/all_icons/all_icons_4.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_4.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_5.tres b/example/Random Upgrades/icons/all_icons/all_icons_5.tres similarity index 59% rename from example/icons/all_icons/all_icons_5.tres rename to example/Random Upgrades/icons/all_icons/all_icons_5.tres index 63b1e60..25b8465 100644 --- a/example/icons/all_icons/all_icons_5.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_5.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_6.tres b/example/Random Upgrades/icons/all_icons/all_icons_6.tres similarity index 59% rename from example/icons/all_icons/all_icons_6.tres rename to example/Random Upgrades/icons/all_icons/all_icons_6.tres index 23e1a9e..cafe172 100644 --- a/example/icons/all_icons/all_icons_6.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_6.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_7.tres b/example/Random Upgrades/icons/all_icons/all_icons_7.tres similarity index 60% rename from example/icons/all_icons/all_icons_7.tres rename to example/Random Upgrades/icons/all_icons/all_icons_7.tres index 97d99ae..e9144eb 100644 --- a/example/icons/all_icons/all_icons_7.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_7.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_8.tres b/example/Random Upgrades/icons/all_icons/all_icons_8.tres similarity index 60% rename from example/icons/all_icons/all_icons_8.tres rename to example/Random Upgrades/icons/all_icons/all_icons_8.tres index 34c8cd0..da29d85 100644 --- a/example/icons/all_icons/all_icons_8.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_8.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/icons/all_icons/all_icons_9.tres b/example/Random Upgrades/icons/all_icons/all_icons_9.tres similarity index 59% rename from example/icons/all_icons/all_icons_9.tres rename to example/Random Upgrades/icons/all_icons/all_icons_9.tres index d735f86..6df321c 100644 --- a/example/icons/all_icons/all_icons_9.tres +++ b/example/Random Upgrades/icons/all_icons/all_icons_9.tres @@ -1,6 +1,6 @@ [gd_resource type="AtlasTexture" load_steps=2 format=2] -[ext_resource path="res://example/icons/all_icons.png" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/icons/all_icons.png" type="Texture" id=1] [resource] flags = 4 diff --git a/example/new scene.tscn b/example/Random Upgrades/new scene.tscn similarity index 100% rename from example/new scene.tscn rename to example/Random Upgrades/new scene.tscn diff --git a/example/my_custom_resource.gd b/example/Random Upgrades/upgrade_data.gd similarity index 90% rename from example/my_custom_resource.gd rename to example/Random Upgrades/upgrade_data.gd index 668d985..60b35d2 100644 --- a/example/my_custom_resource.gd +++ b/example/Random Upgrades/upgrade_data.gd @@ -1,10 +1,10 @@ tool -class_name DynamicWheelItem extends Resource export var color1 := Color.white export var max_duplicates := 0 export var tags : Array +export(int, "Weapon", "Passive", "Mastery") var type := 0 export var icon : Texture export var custom_scene : PackedScene export var color2 := Color.white diff --git a/example/upgrades/elemental.tres b/example/Random Upgrades/upgrades/elemental.tres similarity index 63% rename from example/upgrades/elemental.tres rename to example/Random Upgrades/upgrades/elemental.tres index c794ecf..372374a 100644 --- a/example/upgrades/elemental.tres +++ b/example/Random Upgrades/upgrades/elemental.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_6.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_6.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Upgrade: Elemental Damage" -script = ExtResource( 1 ) +script = ExtResource( 2 ) color1 = Color( 1, 1, 1, 1 ) max_duplicates = 9 tags = [ "elemental" ] -icon = ExtResource( 2 ) +type = 1 +icon = ExtResource( 1 ) color2 = Color( 0.964706, 0.298039, 0.298039, 1 ) base_weight = 10.0 is_notable = false diff --git a/example/upgrades/health.tres b/example/Random Upgrades/upgrades/health.tres similarity index 63% rename from example/upgrades/health.tres rename to example/Random Upgrades/upgrades/health.tres index 4174879..6137925 100644 --- a/example/upgrades/health.tres +++ b/example/Random Upgrades/upgrades/health.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_1.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_1.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Upgrade: Health" -script = ExtResource( 1 ) +script = ExtResource( 2 ) color1 = Color( 1, 1, 1, 1 ) max_duplicates = 9 tags = [ "health", "melee" ] -icon = ExtResource( 2 ) +type = 1 +icon = ExtResource( 1 ) color2 = Color( 0.129412, 1, 0.243137, 1 ) base_weight = 10.0 is_notable = false diff --git a/example/Random Upgrades/upgrades/mastery_magic.tres b/example/Random Upgrades/upgrades/mastery_magic.tres new file mode 100644 index 0000000..a08eb56 --- /dev/null +++ b/example/Random Upgrades/upgrades/mastery_magic.tres @@ -0,0 +1,23 @@ +[gd_resource type="Resource" load_steps=3 format=2] + +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_5.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] + +[resource] +resource_name = "Mastery: Magic" +script = ExtResource( 2 ) +color1 = Color( 1, 0.847059, 0.160784, 1 ) +max_duplicates = 9 +tags = [ "magic", "mastery" ] +type = 2 +icon = ExtResource( 1 ) +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 = " +" diff --git a/example/Random Upgrades/upgrades/mastery_strength.tres b/example/Random Upgrades/upgrades/mastery_strength.tres new file mode 100644 index 0000000..de3e7c3 --- /dev/null +++ b/example/Random Upgrades/upgrades/mastery_strength.tres @@ -0,0 +1,23 @@ +[gd_resource type="Resource" load_steps=3 format=2] + +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_2.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] + +[resource] +resource_name = "Mastery: Strength" +script = ExtResource( 2 ) +color1 = Color( 1, 0.847059, 0.160784, 1 ) +max_duplicates = 9 +tags = [ "strength", "mastery" ] +type = 2 +icon = ExtResource( 1 ) +color2 = Color( 0.992157, 0.941176, 0.2, 1 ) +base_weight = 1.0 +is_notable = true +multiplier_per_tag = "" +multiplier_if_tag_present = "" +multiplier_if_tag_not_present = "strength 0" +max_tags_present = "" +list_item_delimeter = " " +list_row_delimeter = " +" diff --git a/example/upgrades/up_aoe.tres b/example/Random Upgrades/upgrades/up_aoe.tres similarity index 63% rename from example/upgrades/up_aoe.tres rename to example/Random Upgrades/upgrades/up_aoe.tres index dd9ab82..0b80879 100644 --- a/example/upgrades/up_aoe.tres +++ b/example/Random Upgrades/upgrades/up_aoe.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_6.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_6.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Upgrade: Area of Effect" -script = ExtResource( 1 ) +script = ExtResource( 2 ) color1 = Color( 1, 1, 1, 1 ) max_duplicates = 4 tags = [ "aoe" ] -icon = ExtResource( 2 ) +type = 1 +icon = ExtResource( 1 ) color2 = Color( 0.964706, 0.298039, 0.298039, 1 ) base_weight = 10.0 is_notable = false diff --git a/example/upgrades/up_magic.tres b/example/Random Upgrades/upgrades/up_magic.tres similarity index 62% rename from example/upgrades/up_magic.tres rename to example/Random Upgrades/upgrades/up_magic.tres index 7a15474..0b85d14 100644 --- a/example/upgrades/up_magic.tres +++ b/example/Random Upgrades/upgrades/up_magic.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_5.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_5.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Upgrade: Magic" -script = ExtResource( 1 ) +script = ExtResource( 2 ) color1 = Color( 1, 1, 1, 1 ) max_duplicates = 9 tags = [ "magic" ] -icon = ExtResource( 2 ) +type = 1 +icon = ExtResource( 1 ) color2 = Color( 0.188235, 0.45098, 0.901961, 1 ) base_weight = 10.0 is_notable = false diff --git a/example/upgrades/up_strength.tres b/example/Random Upgrades/upgrades/up_strength.tres similarity index 63% rename from example/upgrades/up_strength.tres rename to example/Random Upgrades/upgrades/up_strength.tres index ceabad8..f0d31e8 100644 --- a/example/upgrades/up_strength.tres +++ b/example/Random Upgrades/upgrades/up_strength.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_2.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_2.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Upgrade: Strength" -script = ExtResource( 1 ) +script = ExtResource( 2 ) color1 = Color( 1, 1, 1, 1 ) max_duplicates = 9 tags = [ "strength" ] -icon = ExtResource( 2 ) +type = 1 +icon = ExtResource( 1 ) color2 = Color( 0.988235, 0.584314, 0.192157, 1 ) base_weight = 10.0 is_notable = false diff --git a/example/upgrades/weapon_axe.tres b/example/Random Upgrades/upgrades/weapon_axe.tres similarity index 59% rename from example/upgrades/weapon_axe.tres rename to example/Random Upgrades/upgrades/weapon_axe.tres index e7d8e6c..6e10da4 100644 --- a/example/upgrades/weapon_axe.tres +++ b/example/Random Upgrades/upgrades/weapon_axe.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_3.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Weapon: Axe" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) +script = ExtResource( 2 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) max_duplicates = 1 tags = [ "strength", "melee", "weapon" ] -icon = ExtResource( 2 ) +type = 0 +icon = ExtResource( 1 ) color2 = Color( 0.988235, 0.584314, 0.192157, 1 ) base_weight = 10.0 is_notable = false diff --git a/example/upgrades/weapon_blizzard.tres b/example/Random Upgrades/upgrades/weapon_blizzard.tres similarity index 59% rename from example/upgrades/weapon_blizzard.tres rename to example/Random Upgrades/upgrades/weapon_blizzard.tres index faf9ed0..8daed26 100644 --- a/example/upgrades/weapon_blizzard.tres +++ b/example/Random Upgrades/upgrades/weapon_blizzard.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_4.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Weapon: Blizzard" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) +script = ExtResource( 2 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) max_duplicates = 1 tags = [ "weapon", "magic", "elemental" ] -icon = ExtResource( 2 ) +type = 0 +icon = ExtResource( 1 ) color2 = Color( 0.189457, 0.452246, 0.902344, 1 ) base_weight = 10.0 is_notable = false diff --git a/example/Random Upgrades/upgrades/weapon_chaos_blast.tres b/example/Random Upgrades/upgrades/weapon_chaos_blast.tres new file mode 100644 index 0000000..168d113 --- /dev/null +++ b/example/Random Upgrades/upgrades/weapon_chaos_blast.tres @@ -0,0 +1,25 @@ +[gd_resource type="Resource" load_steps=4 format=2] + +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/new scene.tscn" type="PackedScene" id=2] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=3] + +[resource] +resource_name = "Weapon: Chaos Blast" +script = ExtResource( 3 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) +max_duplicates = 1 +tags = [ "weapon", "magic", "projectile", "legendary" ] +type = 0 +icon = ExtResource( 1 ) +custom_scene = ExtResource( 2 ) +color2 = Color( 0.407843, 0.192157, 0.827451, 1 ) +base_weight = 1.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 = " +" diff --git a/example/upgrades/weapon_dagger.tres b/example/Random Upgrades/upgrades/weapon_dagger.tres similarity index 59% rename from example/upgrades/weapon_dagger.tres rename to example/Random Upgrades/upgrades/weapon_dagger.tres index 464a5be..3e28faa 100644 --- a/example/upgrades/weapon_dagger.tres +++ b/example/Random Upgrades/upgrades/weapon_dagger.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_3.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Weapon: Daggers" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) +script = ExtResource( 2 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) max_duplicates = 1 tags = [ "weapon", "strength", "projectile" ] -icon = ExtResource( 2 ) +type = 0 +icon = ExtResource( 1 ) color2 = Color( 0.988235, 0.584314, 0.192157, 1 ) base_weight = 10.0 is_notable = true diff --git a/example/upgrades/weapon_fireball.tres b/example/Random Upgrades/upgrades/weapon_fireball.tres similarity index 60% rename from example/upgrades/weapon_fireball.tres rename to example/Random Upgrades/upgrades/weapon_fireball.tres index 978d032..1adc52b 100644 --- a/example/upgrades/weapon_fireball.tres +++ b/example/Random Upgrades/upgrades/weapon_fireball.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_4.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Weapon: Fireball" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) +script = ExtResource( 2 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) max_duplicates = 1 tags = [ "weapon", "magic", "projectile", "elemental" ] -icon = ExtResource( 2 ) +type = 0 +icon = ExtResource( 1 ) color2 = Color( 0.189457, 0.452246, 0.902344, 1 ) base_weight = 10.0 is_notable = true diff --git a/example/Random Upgrades/upgrades/weapon_giga_sword.tres b/example/Random Upgrades/upgrades/weapon_giga_sword.tres new file mode 100644 index 0000000..5dbc1a2 --- /dev/null +++ b/example/Random Upgrades/upgrades/weapon_giga_sword.tres @@ -0,0 +1,25 @@ +[gd_resource type="Resource" load_steps=4 format=2] + +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/new scene.tscn" type="PackedScene" id=2] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=3] + +[resource] +resource_name = "Weapon: Giga Sword" +script = ExtResource( 3 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) +max_duplicates = 1 +tags = [ "weapon", "strength", "melee", "legendary" ] +type = 0 +icon = ExtResource( 1 ) +custom_scene = ExtResource( 2 ) +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 = " +" diff --git a/example/upgrades/weapon_lightning.tres b/example/Random Upgrades/upgrades/weapon_lightning.tres similarity index 59% rename from example/upgrades/weapon_lightning.tres rename to example/Random Upgrades/upgrades/weapon_lightning.tres index cddfc87..47e921d 100644 --- a/example/upgrades/weapon_lightning.tres +++ b/example/Random Upgrades/upgrades/weapon_lightning.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_4.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_4.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Weapon: Lightning" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) +script = ExtResource( 2 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) max_duplicates = 1 tags = [ "weapon", "magic", "elemental" ] -icon = ExtResource( 2 ) +type = 0 +icon = ExtResource( 1 ) color2 = Color( 0.189457, 0.452246, 0.902344, 1 ) base_weight = 10.0 is_notable = true diff --git a/example/upgrades/weapon_spear.tres b/example/Random Upgrades/upgrades/weapon_spear.tres similarity index 59% rename from example/upgrades/weapon_spear.tres rename to example/Random Upgrades/upgrades/weapon_spear.tres index 90ef9b3..e529fab 100644 --- a/example/upgrades/weapon_spear.tres +++ b/example/Random Upgrades/upgrades/weapon_spear.tres @@ -1,15 +1,16 @@ [gd_resource type="Resource" load_steps=3 format=2] -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_3.tres" type="Texture" id=2] +[ext_resource path="res://example/Random Upgrades/icons/all_icons/all_icons_3.tres" type="Texture" id=1] +[ext_resource path="res://example/Random Upgrades/upgrade_data.gd" type="Script" id=2] [resource] resource_name = "Weapon: Spear" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) +script = ExtResource( 2 ) +color1 = Color( 0.635294, 0.760784, 1, 1 ) max_duplicates = 1 tags = [ "weapon", "strength", "melee" ] -icon = ExtResource( 2 ) +type = 0 +icon = ExtResource( 1 ) color2 = Color( 0.988235, 0.584314, 0.192157, 1 ) base_weight = 10.0 is_notable = true diff --git a/example/upgrades/weapon_chaos_blast.tres b/example/upgrades/weapon_chaos_blast.tres deleted file mode 100644 index 719b756..0000000 --- a/example/upgrades/weapon_chaos_blast.tres +++ /dev/null @@ -1,24 +0,0 @@ -[gd_resource type="Resource" load_steps=4 format=2] - -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_4.tres" type="Texture" id=2] -[ext_resource path="res://example/new scene.tscn" type="PackedScene" id=3] - -[resource] -resource_name = "Weapon: Chaos Blast" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) -max_duplicates = 1 -tags = [ "weapon", "magic", "projectile", "legendary" ] -icon = ExtResource( 2 ) -custom_scene = ExtResource( 3 ) -color2 = Color( 0.40631, 0.190945, 0.832031, 1 ) -base_weight = 1.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 = " -" diff --git a/example/upgrades/weapon_giga_sword.tres b/example/upgrades/weapon_giga_sword.tres deleted file mode 100644 index 52a70ae..0000000 --- a/example/upgrades/weapon_giga_sword.tres +++ /dev/null @@ -1,24 +0,0 @@ -[gd_resource type="Resource" load_steps=4 format=2] - -[ext_resource path="res://example/my_custom_resource.gd" type="Script" id=1] -[ext_resource path="res://example/icons/all_icons/all_icons_3.tres" type="Texture" id=2] -[ext_resource path="res://example/new scene.tscn" type="PackedScene" id=3] - -[resource] -resource_name = "Weapon: Giga Sword" -script = ExtResource( 1 ) -color1 = Color( 1, 1, 0.2, 1 ) -max_duplicates = 1 -tags = [ "weapon", "strength", "melee", "legendary" ] -icon = ExtResource( 2 ) -custom_scene = ExtResource( 3 ) -color2 = Color( 0.988235, 0.93848, 0.192157, 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 = " -"