mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
fix: 调整红水晶武器属性和相机偏移限制
修复相机偏移计算中clampf的范围限制错误,从(0,100)改为(-100,100) 调整红水晶武器的攻击力从60降至45,冷却时间从2000ms降至1000ms,并更新描述文本
This commit is contained in:
@@ -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