- 调整项目结构以适应打包需求

- 添加控制台便于在游戏运行过程中调试各项功能
- 添加 LevelRarity 表,增加了随关卡数动态调整的商品道具品质刷新概率
This commit is contained in:
SepComet
2026-02-18 22:53:33 +08:00
parent e151619c69
commit b4bc8b0445
202 changed files with 5160 additions and 3393 deletions
+2 -8
View File
@@ -1,6 +1,5 @@
import pandas as pd
import os
import shutil
import csv
def convert_excel_to_txt(folder_path='.'):
@@ -21,8 +20,8 @@ def convert_excel_to_txt(folder_path='.'):
continue
if file_name.endswith(('.xlsx', '.xls')):
file_path = os.path.join(scan_dir, file_name)
base_name = os.path.splitext(file_path)[0]
output_file = base_name.replace(os.path.basename(base_name), os.path.basename(base_name)) + '.txt'
base_name = os.path.splitext(file_name)[0]
output_file = os.path.join(target_dir, f"{base_name}.txt")
print(f"正在处理: {file_name}...")
@@ -47,12 +46,7 @@ def convert_excel_to_txt(folder_path='.'):
escapechar='\\'
)
# 复制文件到目标目录
target_file = os.path.join(target_dir, os.path.basename(output_file))
shutil.copy2(output_file, target_file)
print(f"成功转换 -> {output_file}")
print(f"已复制到 -> {target_file}")
count += 1
except Exception as e: