1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat(养成系统): 实现局外养成等级机制并调整升级消耗

添加upgradableFieldsLevel字段记录养成等级
修改升级逻辑使用等级计算消耗而非固定倍率
升级时自动增加等级并重新计算下次升级消耗
This commit is contained in:
2026-05-04 09:46:21 +08:00
parent bd85129ecc
commit e377840a16
4 changed files with 15 additions and 6 deletions
+3
View File
@@ -29,6 +29,9 @@ func _ready():
func():
if upgradable:
if enoughToUpgrade():
for index in costItems:
var item = costItems[index]
OutGameStorage.inventory[item] -= costCounts[index]
value += upgradeValue
upgrade.emit(value)
rebuildInfo()