From 5d01eddfee41a05c12508049c33fa4cc9c63d1d5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 5 Dec 2019 01:00:45 +0100 Subject: [PATCH] Started work on a new class, the elementalist. --- .../character_specs/2_elementalist_fire.tres | 6 + .../character_specs/3_elementalist_water.tres | 6 + .../character_specs/4_elementalist_ice.tres | 6 + game/data/entity_classes/1_naturalist.tres | 2 +- game/data/entity_classes/2_elementalist.tres | 203 ++++++++++++++++++ game/data/spells/32_heat.tres | 7 + game/data/spells/33_normal.tres | 7 + game/data/spells/34_cold.tres | 7 + game/scenes/World.tscn | 3 + .../{NaturalistGD.gd => EntityClassDataGD.gd} | 0 10 files changed, 246 insertions(+), 1 deletion(-) create mode 100644 game/data/character_specs/2_elementalist_fire.tres create mode 100644 game/data/character_specs/3_elementalist_water.tres create mode 100644 game/data/character_specs/4_elementalist_ice.tres create mode 100644 game/data/entity_classes/2_elementalist.tres create mode 100644 game/data/spells/32_heat.tres create mode 100644 game/data/spells/33_normal.tres create mode 100644 game/data/spells/34_cold.tres rename game/scripts/entities/{NaturalistGD.gd => EntityClassDataGD.gd} (100%) diff --git a/game/data/character_specs/2_elementalist_fire.tres b/game/data/character_specs/2_elementalist_fire.tres new file mode 100644 index 00000000..759368f0 --- /dev/null +++ b/game/data/character_specs/2_elementalist_fire.tres @@ -0,0 +1,6 @@ +[gd_resource type="CharacterSpec" format=2] + +[resource] +resource_name = "Elementalist Fire" +id = 2 +text_name = "Elementalist Fire" diff --git a/game/data/character_specs/3_elementalist_water.tres b/game/data/character_specs/3_elementalist_water.tres new file mode 100644 index 00000000..44ccb22f --- /dev/null +++ b/game/data/character_specs/3_elementalist_water.tres @@ -0,0 +1,6 @@ +[gd_resource type="CharacterSpec" format=2] + +[resource] +resource_name = "Elementalist Water" +id = 3 +text_name = "Elementalist Water" diff --git a/game/data/character_specs/4_elementalist_ice.tres b/game/data/character_specs/4_elementalist_ice.tres new file mode 100644 index 00000000..8a517e5a --- /dev/null +++ b/game/data/character_specs/4_elementalist_ice.tres @@ -0,0 +1,6 @@ +[gd_resource type="CharacterSpec" format=2] + +[resource] +resource_name = "Elementalist Ice" +id = 4 +text_name = "Elementalist Ice" diff --git a/game/data/entity_classes/1_naturalist.tres b/game/data/entity_classes/1_naturalist.tres index 200e51af..998f958a 100644 --- a/game/data/entity_classes/1_naturalist.tres +++ b/game/data/entity_classes/1_naturalist.tres @@ -18,7 +18,7 @@ [ext_resource path="res://data/spells/12_aspect_of_wolves_rank_1.tres" type="Spell" id=16] [ext_resource path="res://data/spells/25_inner_will.tres" type="Spell" id=17] [ext_resource path="res://data/auras/1_test1.tres" type="Aura" id=18] -[ext_resource path="res://scripts/entities/NaturalistGD.gd" type="Script" id=19] +[ext_resource path="res://scripts/entities/EntityClassDataGD.gd" type="Script" id=19] [ext_resource path="res://scripts/ai/EntityAIGD.gd" type="Script" id=20] [ext_resource path="res://data/auras/13_aspect_of_bees_rank_1.tres" type="Aura" id=21] [ext_resource path="res://data/auras/15_close_wounds_rank_1.tres" type="Aura" id=22] diff --git a/game/data/entity_classes/2_elementalist.tres b/game/data/entity_classes/2_elementalist.tres new file mode 100644 index 00000000..f96d4cd9 --- /dev/null +++ b/game/data/entity_classes/2_elementalist.tres @@ -0,0 +1,203 @@ +[gd_resource type="EntityClassData" load_steps=48 format=2] + +[ext_resource path="res://scripts/entities/EntityClassDataGD.gd" type="Script" id=1] +[ext_resource path="res://data/character_specs/2_elementalist_fire.tres" type="CharacterSpec" id=2] +[ext_resource path="res://data/character_specs/3_elementalist_water.tres" type="CharacterSpec" id=3] +[ext_resource path="res://data/character_specs/4_elementalist_ice.tres" type="CharacterSpec" id=4] + +[sub_resource type="StatDataEntry" id=1] +stat_id = 5 + +[sub_resource type="StatDataEntry" id=2] +stat_id = 12 + +[sub_resource type="StatDataEntry" id=3] +stat_id = 13 + +[sub_resource type="StatDataEntry" id=4] +stat_id = 19 +base = 10.0 + +[sub_resource type="StatDataEntry" id=5] +stat_id = 34 + +[sub_resource type="StatDataEntry" id=6] +stat_id = 21 + +[sub_resource type="StatDataEntry" id=7] +stat_id = 24 + +[sub_resource type="StatDataEntry" id=8] +stat_id = 38 + +[sub_resource type="StatDataEntry" id=9] +stat_id = 36 + +[sub_resource type="StatDataEntry" id=10] +stat_id = 31 + +[sub_resource type="StatDataEntry" id=11] +stat_id = 32 + +[sub_resource type="StatDataEntry" id=12] +stat_id = 3 +base = 1.5 + +[sub_resource type="StatDataEntry" id=13] +stat_id = 4 + +[sub_resource type="StatDataEntry" id=14] +stat_id = 10 + +[sub_resource type="StatDataEntry" id=15] +stat_id = 25 + +[sub_resource type="StatDataEntry" id=16] +stat_id = 0 +base = 100.0 + +[sub_resource type="StatDataEntry" id=17] +stat_id = 28 + +[sub_resource type="StatDataEntry" id=18] +stat_id = 8 + +[sub_resource type="StatDataEntry" id=19] +stat_id = 33 + +[sub_resource type="StatDataEntry" id=20] +stat_id = 2 +base = 100.0 + +[sub_resource type="StatDataEntry" id=21] +stat_id = 15 +base = 5.0 + +[sub_resource type="StatDataEntry" id=22] +stat_id = 16 +base = 50.0 + +[sub_resource type="StatDataEntry" id=23] +stat_id = 26 + +[sub_resource type="StatDataEntry" id=24] +stat_id = 22 +base = 15.0 + +[sub_resource type="StatDataEntry" id=25] +stat_id = 30 + +[sub_resource type="StatDataEntry" id=26] +stat_id = 20 +base = 15.0 + +[sub_resource type="StatDataEntry" id=27] +stat_id = 39 + +[sub_resource type="StatDataEntry" id=28] +stat_id = 11 + +[sub_resource type="StatDataEntry" id=29] +stat_id = 29 + +[sub_resource type="StatDataEntry" id=30] +stat_id = 35 + +[sub_resource type="StatDataEntry" id=31] +stat_id = 1 +base = 4.2 + +[sub_resource type="StatDataEntry" id=32] +stat_id = 17 +base = 5.0 + +[sub_resource type="StatDataEntry" id=33] +stat_id = 18 +base = 50.0 + +[sub_resource type="StatDataEntry" id=34] +stat_id = 27 + +[sub_resource type="StatDataEntry" id=35] +stat_id = 23 + +[sub_resource type="StatDataEntry" id=36] +stat_id = 14 + +[sub_resource type="StatDataEntry" id=37] +stat_id = 9 + +[sub_resource type="StatDataEntry" id=38] +stat_id = 7 + +[sub_resource type="StatDataEntry" id=39] +stat_id = 6 + +[sub_resource type="StatDataEntry" id=40] +stat_id = 37 + +[sub_resource type="StatDataEntry" id=41] +stat_id = 40 +base = 1.0 + +[sub_resource type="SimpleLevelStatData" id=42] +agility_per_level = 4 +strength_per_level = 4 +stamina_per_level = 5 +intellect_per_level = 5 +spirit_per_level = 1 + +[sub_resource type="StatData" id=43] +base_stat_health = SubResource( 16 ) +base_stat_speed = SubResource( 31 ) +base_stat_mana = SubResource( 20 ) +base_stat_gcd = SubResource( 12 ) +base_stat_haste = SubResource( 13 ) +base_stat_agility = SubResource( 1 ) +base_stat_strength = SubResource( 39 ) +base_stat_stamina = SubResource( 38 ) +base_stat_intellect = SubResource( 18 ) +base_stat_spirit = SubResource( 37 ) +base_stat_haste_rating = SubResource( 14 ) +base_stat_resilience = SubResource( 28 ) +base_stat_armor = SubResource( 2 ) +base_stat_attack_power = SubResource( 3 ) +base_stat_spell_power = SubResource( 36 ) +base_stat_melee_crit = SubResource( 21 ) +base_stat_melee_crit_bonus = SubResource( 22 ) +base_stat_spell_crit = SubResource( 32 ) +base_stat_spell_crit_bonus = SubResource( 33 ) +base_stat_block = SubResource( 4 ) +base_stat_parry = SubResource( 26 ) +base_stat_damage_reduction = SubResource( 6 ) +base_stat_melee_damage_reduction = SubResource( 24 ) +base_stat_spell_damage_reduction = SubResource( 35 ) +base_stat_damage_taken = SubResource( 7 ) +base_stat_heal_taken = SubResource( 15 ) +base_stat_melee_damage = SubResource( 23 ) +base_stat_spell_damage = SubResource( 34 ) +base_stat_holy_resist = SubResource( 17 ) +base_stat_shadow_resist = SubResource( 29 ) +base_stat_nature_resist = SubResource( 25 ) +base_stat_fire_resist = SubResource( 10 ) +base_stat_frost_resist = SubResource( 11 ) +base_stat_lightning_resist = SubResource( 19 ) +base_stat_chaos_resist = SubResource( 5 ) +base_stat_silence_resist = SubResource( 30 ) +base_stat_fear_resist = SubResource( 9 ) +base_stat_stun_resist = SubResource( 40 ) +base_stat_energy = SubResource( 8 ) +base_stat_rage = SubResource( 27 ) +base_stat_xp_rate = SubResource( 41 ) +level_stat_data = SubResource( 42 ) + +[resource] +resource_name = "Elementalist" +id = 2 +text_name = "Elementalist" +stat_data = SubResource( 43 ) +player_resource_type = 2 +playstyle_type = 2 +specs = [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ] +spells = [ null, null, null ] +script = ExtResource( 1 ) diff --git a/game/data/spells/32_heat.tres b/game/data/spells/32_heat.tres new file mode 100644 index 00000000..35c17a32 --- /dev/null +++ b/game/data/spells/32_heat.tres @@ -0,0 +1,7 @@ +[gd_resource type="Spell" format=2] + +[resource] +resource_name = "Heat" +id = 32 +text_name = "Heat" +text_description = "Increase the temperature of your body, to allow the usange of all fire spells. Water spells are still usable at reduced efficiency." diff --git a/game/data/spells/33_normal.tres b/game/data/spells/33_normal.tres new file mode 100644 index 00000000..0ae7212e --- /dev/null +++ b/game/data/spells/33_normal.tres @@ -0,0 +1,7 @@ +[gd_resource type="Spell" format=2] + +[resource] +resource_name = "Normal temperature" +id = 33 +text_name = "Normal temperature" +text_description = "Use water spells at maximum efficiency. Some ice and fire based spells are also usable at reduced efficiency." diff --git a/game/data/spells/34_cold.tres b/game/data/spells/34_cold.tres new file mode 100644 index 00000000..11bcbbc9 --- /dev/null +++ b/game/data/spells/34_cold.tres @@ -0,0 +1,7 @@ +[gd_resource type="Spell" format=2] + +[resource] +resource_name = "Cold" +id = 34 +text_name = "Cold" +text_description = "Reduce the temperature of your body, to allow the usange of all ice spells. Water spells are still usable at reduced efficiency." diff --git a/game/scenes/World.tscn b/game/scenes/World.tscn index eb04639f..aa80da9d 100644 --- a/game/scenes/World.tscn +++ b/game/scenes/World.tscn @@ -61,6 +61,9 @@ level_generator = SubResource( 1 ) voxel_scale = 4.0 chunk_spawn_range = 3 script = ExtResource( 8 ) +meshes = [ ] +editor_generate = false +show_loading_screen = true [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource( 3 ) diff --git a/game/scripts/entities/NaturalistGD.gd b/game/scripts/entities/EntityClassDataGD.gd similarity index 100% rename from game/scripts/entities/NaturalistGD.gd rename to game/scripts/entities/EntityClassDataGD.gd