Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
L
ldefense
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gavin An
ldefense
Commits
16901865
Commit
16901865
authored
Jun 24, 2026
by
Gavin An
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
화염구 던지는 것 관련 수정
parent
f631e2c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/entities/units/base_unit.gd
src/entities/units/base_unit.gd
+6
-2
src/entities/units/mage/mage_unit.gd
src/entities/units/mage/mage_unit.gd
+1
-1
No files found.
src/entities/units/base_unit.gd
View file @
16901865
...
...
@@ -223,7 +223,11 @@ func _try_attack() -> void:
if
_model_instance
and
_model_anim_player
:
var
model_name
:
String
=
_model_instance
.
name
.
to_lower
()
var
library_prefix
:
String
=
model_name
+
"/"
var
attack_key
:
String
=
"Draw"
if
model_name
==
"ranger"
else
"Slash"
var
attack_key
:
String
=
"Slash"
if
model_name
==
"ranger"
:
attack_key
=
"Draw"
elif
model_name
==
"mage"
:
attack_key
=
"Casting"
var
attack_anim
:
String
=
library_prefix
+
attack_key
if
_model_anim_player
.
has_animation
(
attack_anim
):
...
...
@@ -256,7 +260,7 @@ func _try_attack() -> void:
else
:
# 근접 유닛: 공격 애니메이션 중간 즈음(락아웃 시간의 50% 지점)에 데미지 지연 적용
var
target_ref
:
Node3D
=
_target_monster
var
damage_amount
:
in
t
=
unit_data
.
damage
var
damage_amount
:
floa
t
=
unit_data
.
damage
var
damage_delay
:
float
=
_attack_lock_timer
*
0.5
if
damage_delay
>
0.0
:
...
...
src/entities/units/mage/mage_unit.gd
View file @
16901865
...
...
@@ -69,7 +69,7 @@ func _update_animations() -> void:
# 유닛 쿨다운에 맞춘 애니메이션 속도 보정
if
unit_data
.
cooldown
<
0.6
:
base_speed
=
0.6
/
unit_data
.
cooldown
play_speed
=
clampf
(
base_speed
,
1.0
,
3
.0
)
play_speed
=
clampf
(
base_speed
,
1.0
,
2
.0
)
# 마법을 시전하는 모션(Casting)을 재생합니다.
target_anim
=
cast_anim
# 2. 이동 중일 때 (속도 벡터 크기가 0.1보다 클 경우)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment