1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-06 03:37:13 +08:00

fix: 修复能量值设置逻辑,确保当前值在最小值和最大值之间

fix: 更新苹果数量,增加至10
This commit is contained in:
2025-08-27 20:48:21 +08:00
parent d6cd74729b
commit 87fe5803f4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func setCurrent(value: float):
if value == currentValue:
return
forwardDirection = sign(value - currentValue)
currentValue = value
currentValue = clamp(value, minValue, maxValue)
func _ready():
middleValue = currentValue
+1 -1
View File
@@ -28,7 +28,7 @@ var fields = {
var inventory = {
ItemStore.ItemType.BASEBALL: 100,
ItemStore.ItemType.BASKETBALL: 100,
ItemStore.ItemType.APPLE: 3,
ItemStore.ItemType.APPLE: 10,
}
var inventoryMax = {
ItemStore.ItemType.BASEBALL: INF, # 无限