1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

死吗trae不让生成commitmsg,我草你妈的

This commit is contained in:
2025-08-28 18:47:05 +08:00
parent b4f57a517f
commit 4b037027df
3 changed files with 7 additions and 12 deletions
-1
View File
@@ -86,7 +86,6 @@ libraries = {
[node name="background" type="Sprite2D" parent="."]
z_index = -1
position = Vector2(630, 320)
texture = ExtResource("6_p0nkj")
[node name="rooster" parent="." groups=["players"] instance=ExtResource("3_5ui6q")]
+6 -11
View File
@@ -24,17 +24,12 @@ func _ready():
refreshNeedBaseballCount *= 1 + randf_range(GameRule.refreshCountIncreasePercent.x, GameRule.refreshCountIncreasePercent.y)
regenerateCards()
)
for file in DirTool.listdir("res://components/Feeds/"):
var i = load(file).instantiate() as Feed
i.selected.connect(
func(applied: bool):
if applied:
selectedCount += 1
updateValue()
if selectedCount >= UIState.player.fields[FieldStore.Entity.FEED_COUNT_CAN_MADE]:
finish()
)
avaliableFeeds.add_child(i)
for feedScene in DirTool.listdir("res://components/Feeds/"):
if feedScene.get_extension() == "remap":
feedScene = feedScene.substr(0, len(feedScene) - 6)
print("正在从", feedScene, "加载饲料卡")
var feed = load(feedScene).instantiate()
avaliableFeeds.add_child(feed)
func beforeOpen():
selectedCount = 0
+1
View File
@@ -13,4 +13,5 @@ static func listdir(path: String) -> Array[String]:
dir.list_dir_end()
return files
else:
print("无法打开目录: ", path)
return []