Fix global cooldowns.

This commit is contained in:
Relintai 2020-07-11 18:37:41 +02:00
parent 33ed628aa3
commit 08ebbd24f8
17 changed files with 4 additions and 15 deletions

View File

@ -22,6 +22,7 @@ stat/intellect = 19.0
stat/spirit = 3.0
stat/health = 100.0
stat/mana = 100.0
stat/global_cooldown = 1.5
[resource]
resource_name = "Naturalist"

View File

@ -22,6 +22,7 @@ stat/intellect = 13.0
stat/spirit = 10.0
stat/health = 20.0
stat/mana = 20.0
stat/global_cooldown = 1.5
[resource]
resource_name = "Naturalist"

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_models/huf_calf_left.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=2]
[resource]
entity_type = 1
bone = 24

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_models/huf_foot_left.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=2]
[resource]
entity_type = 1
bone = 25

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_models/huf_forearm.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=2]
[resource]
entity_type = 1
bone = 9

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_green_scarf_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_handl.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 10

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_models/huf_thigh_left.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=2]
[resource]
entity_type = 1
bone = 23

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_green_scarf_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_neck.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 5

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_pelvis.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 1

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_calf_left.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 27

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_foot_left.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 28

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_models/huf_forearm.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=2]
[resource]
entity_type = 1
bone = 17

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_green_scarf_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_hand.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 18

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_models/huf_thigh_right.gltf" type="MeshDataResource" id=1]
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_simple_v3.png" type="Texture" id=2]
[resource]
entity_type = 1
bone = 26

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_red_scarf_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_spine1.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 3

View File

@ -3,7 +3,6 @@
[ext_resource path="res://modules/species/Human/Female/character_textures/100_seamless/armor_red_scarf_v3.png" type="Texture" id=1]
[ext_resource path="res://modules/species/Human/Female/character_models/huf_spine2.gltf" type="MeshDataResource" id=2]
[resource]
entity_type = 1
bone = 4

View File

@ -211,7 +211,8 @@ func handle_cooldown(info : SpellCastInfo) -> void:
info.caster.cooldown_adds(id, cooldown_cooldown)
func handle_gcd(info : SpellCastInfo) -> void:
if cooldown_global_cooldown_enabled and cast_cast_time < 0.01:
print(cast_cast_time)
if cooldown_global_cooldown_enabled and not cast_enabled:
info.caster.gcd_starts(info.caster.stat_gets_current(gcd_id))
func add_spell_cast_effect(info : SpellCastInfo) -> void: