ManaResource setup.

This commit is contained in:
Relintai 2019-12-01 01:18:19 +01:00
parent 58ba871622
commit c88e61ad65
9 changed files with 27 additions and 8 deletions

2
HEADS
View File

@ -1 +1 @@
{"engine": "dac2a7b2378973177a166f1f4c0f6ac3c7b3e529", "world_generator": "290d973ea9580f748881a54502850ae5fecfb586", "entity_spell_system": "abb564acdcb27778123ba3cb7348210c87de0918", "ui_extensions": "271dcf89e9afe5cb6350de2f2433c8ebf8aba785", "voxelman": "2b369f5be8efc5fe0ef13da57afa46317c413f47", "texture_packer": "604c330188e220c15d10ea5bd545a6fc5aab0132", "fastnoise": "41b7ea05a1f7aa2b8ecddaa1fd739e64d6970f7e", "entity-spell-system-addons": "8568888b3c11dec56dbf1088a84bc898d68bd6ce"}
{"engine": "dac2a7b2378973177a166f1f4c0f6ac3c7b3e529", "world_generator": "290d973ea9580f748881a54502850ae5fecfb586", "entity_spell_system": "6a954f3381bb34b81e7e26f5f9058d850761d135", "ui_extensions": "271dcf89e9afe5cb6350de2f2433c8ebf8aba785", "voxelman": "2b369f5be8efc5fe0ef13da57afa46317c413f47", "texture_packer": "604c330188e220c15d10ea5bd545a6fc5aab0132", "fastnoise": "41b7ea05a1f7aa2b8ecddaa1fd739e64d6970f7e", "entity-spell-system-addons": "8568888b3c11dec56dbf1088a84bc898d68bd6ce"}

View File

@ -8,6 +8,7 @@
[node name="EntityDataManager" type="EntityDataManager"]
xp_data_path = "res://data/xp/xp_data.tres"
entity_resources_folder = "res://data/entity_resources"
entity_datas_folder = "res://data/entities"
spells_folder = "res://data/spells"
auras_folder = "res://data/auras"

View File

@ -8,6 +8,7 @@
item = ExtResource( 3 )
[resource]
resource_name = "Naturalist"
id = 1
entity_type = 4
entity_controller = 1

View File

@ -1,4 +1,4 @@
[gd_resource type="EntityClassData" load_steps=76 format=2]
[gd_resource type="EntityClassData" load_steps=77 format=2]
[ext_resource path="res://data/spells/26_rest.tres" type="Spell" id=1]
[ext_resource path="res://data/spells/21_strength_of_nature_rank_1.tres" type="Spell" id=2]
@ -26,6 +26,7 @@
[ext_resource path="res://data/spells/27_aspect_of_scorpions.tres" type="Spell" id=24]
[ext_resource path="res://data/spells/28_aspectofwasps.tres" type="Spell" id=25]
[ext_resource path="res://data/spells/30_aspect_of_bees.tres" type="Spell" id=26]
[ext_resource path="res://data/entity_resources/1_mana_resource.tres" type="EntityResourceData" id=27]
[sub_resource type="EntityAI" id=1]
script = ExtResource( 20 )
@ -249,6 +250,7 @@ id = 1
text_name = "Naturalist"
stat_data = SubResource( 49 )
player_resource_type = 2
entity_resources = [ ExtResource( 27 ) ]
specs = [ SubResource( 4 ) ]
spells = [ ExtResource( 4 ), ExtResource( 6 ), ExtResource( 16 ), ExtResource( 5 ), ExtResource( 3 ), ExtResource( 10 ), ExtResource( 8 ), ExtResource( 11 ), ExtResource( 9 ), ExtResource( 7 ), ExtResource( 13 ), ExtResource( 2 ), ExtResource( 12 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 17 ), ExtResource( 1 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 23 ), ExtResource( 26 ) ]
start_spells = [ ExtResource( 24 ) ]

View File

@ -0,0 +1,7 @@
[gd_resource type="EntityResourceData" load_steps=2 format=2]
[ext_resource path="res://scripts/resources/ManaResourceData.gd" type="Script" id=1]
[resource]
id = 1
script = ExtResource( 1 )

View File

@ -12,14 +12,13 @@ target_type = 2
target_relation_type = -870457328
rank = 1
icon = ExtResource( 2 )
caster_aura_applys = [ ExtResource( 3 ) ]
text_name = "Close Wounds"
text_description = "Casttime: 2 sec.
Cooldown: {2}
Heals you for 720 to 780 every 3 sec for 21 sec."
caster_aura_applys = [ ExtResource( 3 ) ]
cast = true
cast_cast_time = 1.3
give_resource_type = 2
aoe_movement_type = -2000446188
aoe_colliderType = -2147479552
script = ExtResource( 1 )

View File

@ -67,7 +67,7 @@ _global_script_classes=[ {
"base": "EntityResource",
"class": "ManaResource",
"language": "GDScript",
"path": "res://scripts/resources/mana_resource.gd"
"path": "res://scripts/resources/ManResource.gd"
}, {
"base": "VoxelChunk",
"class": "MarchingCubesVoxelChunk",

View File

@ -6,9 +6,10 @@ class_name ManaResource
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
func _init():
resource_type = EntityEnums.PLAYER_RESOURCE_TYPES_MANA
# should_process = true
should_process = false
#func _ons_stat_changed(stat : Stat):
# print(stat.get_id())
func _process_server(delta):
pass

View File

@ -0,0 +1,8 @@
extends EntityResourceData
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
func _get_entity_resource_instance() -> EntityResource:
return ManaResource.new()