1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Panels/Starter.gd
T
fallingshrimp 8ece2a60a5 fix: 修复实体伤害计算和物品掉落逻辑
调整实体伤害倍数的计算公式,使用平方根来平衡增长曲线
修正物品掉落数量计算,考虑难度范围的影响
修复boss掉落和玩家死亡面板的代码缩进问题
2025-11-09 11:34:46 +08:00

19 lines
536 B
GDScript

@tool
extends FullscreenPanelBase
@onready var diffEdit: HSlider = $"%diffEdit"
@onready var startBtn: Button = $"%startBtn"
@onready var levelShow: Label = $"%levelShow"
func _ready():
diffEdit.min_value = GameRule.difficultyRange.x
diffEdit.max_value = GameRule.difficultyRange.y
startBtn.pressed.connect(
func():
Wave.next()
UIState.closeCurrentPanel()
)
func _physics_process(_delta):
levelShow.text = "%d ∈ [%d, %d]" % [diffEdit.value, diffEdit.min_value, diffEdit.max_value]
GameRule.difficulty = diffEdit.value