Compare commits

..
6 Commits
Author SHA1 Message Date
539943419 2ae64b3a04 fix a bug 2024-06-11 18:24:50 +08:00
539943419 02b2e93e02 修复了“放逐”中的一个bug 2024-05-13 00:54:00 +08:00
539943419 5c2252f5bf fix 2024-03-15 00:29:56 +08:00
539943419 47deb43845 fix a bug with sup2_tieji 2024-03-15 00:18:26 +08:00
539943419 c1d1c10ca7 添加武将“超马超” 2024-03-15 00:00:08 +08:00
539943419 3ff62c5156 init 2024-03-12 23:19:48 +08:00
67 changed files with 729 additions and 10988 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
Prettier Fixer.py
-83
View File
@@ -1,83 +0,0 @@
# 导入os模块,用于操作文件和目录
import os
from time import sleep
# 定义一个函数,接受一个文件名作为参数,返回修改后的内容
def modify_file(filename):
# 打开文件,以只读模式
with open(filename, 'r', encoding='UTF-8') as f:
# 读取文件的所有行,存入一个列表
lines = f.readlines()
# 创建一个空列表,用于存储修改后的行
new_lines = []
num = 0
# 遍历每一行
for line in lines:
if '"step 0";' in line:
line = line.replace('"step 0";', '"step 0"')
num+=1
if '("step 1");' in line:
line = line.replace('("step 1");', '"step 1"')
num+=1
if '("step 2");' in line:
line = line.replace('("step 2");', '"step 2"')
num+=1
if '("step 3");' in line:
line = line.replace('("step 3");', '"step 3"')
num+=1
if '("step 4");' in line:
line = line.replace('("step 4");', '"step 4"')
num+=1
if '("step 5");' in line:
line = line.replace('("step 5");', '"step 5"')
num+=1
if '("step 6");' in line:
line = line.replace('("step 6");', '"step 6"')
num+=1
if '("step 7");' in line:
line = line.replace('("step 7");', '"step 7"')
num+=1
if '("step 8");' in line:
line = line.replace('("step 8");', '"step 8"')
num+=1
if '("step 9");' in line:
line = line.replace('("step 9");', '"step 9"')
num+=1
if '("step 10");' in line:
line = line.replace('("step 10");', '"step 10"')
num+=1
print(line)
# 将修改后的行添加到新列表中
new_lines.append(line)
# 返回新列表中的所有行,用换行符连接
print("Successfully fixed " + str(num) +" code errors")
return ''.join(new_lines)
# 获取当前目录下的所有文件和子目录
flag = False
files = os.listdir('.')
# 遍历每一个文件或子目录
for file in files:
# 如果是文件,并且文件名是extension.js
if os.path.isfile(file) and file == 'extension.js':
# 调用函数,传入文件名,得到修改后的内容
content = modify_file(file)
# 打开文件,以写入模式,覆盖原内容
with open(file, 'w', encoding='UTF-8') as f:
# 写入修改后的内容
f.write(content)
flag = True
if os.path.isfile(file) and file == 'game.js':
# 调用函数,传入文件名,得到修改后的内容
content = modify_file(file)
# 打开文件,以写入模式,覆盖原内容
with open(file, 'w', encoding='UTF-8') as f:
# 写入修改后的内容
f.write(content)
flag = True
if flag:
pass
else:
print('ERROR')
sleep(3)
+728 -10905
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 756 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 569 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 456 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 843 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 815 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 920 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 337 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 928 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB