mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Fix global cooldowns.
This commit is contained in:
parent
33ed628aa3
commit
08ebbd24f8
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user