mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-08 12:47:13 +08:00
feat(战斗系统): 为爆炸攻击添加内伤效果并重构内伤生成逻辑
- 在InfinitySword.gd中添加爆炸攻击时生成内伤球的功能 - 将内伤生成逻辑提取到InternalDamage.gd中的静态方法generateBall - 移除Parrier.gd中重复的内伤生成代码,改用新的generateBall方法 - 更新Tree.tscn中的描述文本,添加对爆炸攻击产生内伤的说明 - 调整WeaponCardBase.tscn的UI布局,为描述文本添加滚动容器
This commit is contained in:
@@ -183,9 +183,16 @@ text = "无灵"
|
||||
label_settings = SubResource("LabelSettings_b3nsw")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="description" type="RichTextLabel" parent="container" unique_id=566230682]
|
||||
[node name="scroller" type="ScrollContainer" parent="container" unique_id=543588938]
|
||||
custom_minimum_size = Vector2(0, 100)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="description" type="RichTextLabel" parent="container/scroller" unique_id=566230682]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
bbcode_enabled = true
|
||||
text = "[center]造成[color=cyan]10[/color]点伤害。[/center]"
|
||||
fit_content = true
|
||||
|
||||
Reference in New Issue
Block a user