mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
fix: 调整红水晶武器属性和相机偏移限制
修复相机偏移计算中clampf的范围限制错误,从(0,100)改为(-100,100) 调整红水晶武器的攻击力从60降至45,冷却时间从2000ms降至1000ms,并更新描述文本
This commit is contained in:
@@ -11,7 +11,7 @@ avatarTexture = ExtResource("2_3e8g7")
|
||||
displayName = "红水晶簇"
|
||||
typeTopic = 1
|
||||
store = {
|
||||
"atk": 60,
|
||||
"atk": 45,
|
||||
"radius": 150.0
|
||||
}
|
||||
storeType = {
|
||||
@@ -19,7 +19,7 @@ storeType = {
|
||||
"radius": 1
|
||||
}
|
||||
descriptionTemplate = "发射[b]红水晶[/b],在3秒后以$radius的半径爆炸,造成$atk点伤害。"
|
||||
cooldown = 2000.0
|
||||
cooldown = 1000.0
|
||||
|
||||
[node name="attack" parent="sounds" index="0"]
|
||||
stream = ExtResource("4_qt0vq")
|
||||
@@ -32,4 +32,4 @@ displayName = "红水晶簇"
|
||||
typeTopic = 1
|
||||
|
||||
[node name="description" parent="container" index="2"]
|
||||
text = "[center]发射[b]红水晶[/b],在3秒后以[color=cyan]150[/color]的半径爆炸,造成[color=cyan]40[/color]点伤害。[/center]"
|
||||
text = "[center]发射[b]红水晶[/b],在3秒后以[color=cyan]150[/color]的半径爆炸,造成[color=cyan]60[/color]点伤害。[/center]"
|
||||
|
||||
@@ -16,7 +16,7 @@ func _physics_process(_delta):
|
||||
if is_instance_valid(UIState.player):
|
||||
position = UIState.player.position + constantOffset
|
||||
position += MathTool.randomVector2In(shakeIntensity)
|
||||
offset += ((get_global_mouse_position() - UIState.player.position).clampf(0, 100) - offset) * 0.15
|
||||
offset += ((get_global_mouse_position() - UIState.player.position).clampf(-100, 100) - offset) * 0.15
|
||||
|
||||
static func shake(millseconds: float, intensity: float = 10, steper: Callable = func(currentValue, _totalValue, _restPercent): return currentValue):
|
||||
var startTime = WorldManager.getTime()
|
||||
|
||||
Reference in New Issue
Block a user