[Bug fix] Character 5 value error

- Fix a bug that the character **Hikari & Tairitsu (Reunion)** cannot be uncapped. #100
This commit is contained in:
Lost-MSth
2023-04-01 17:11:45 +08:00
parent 6f82e9b269
commit 8efd11cd02
3 changed files with 4 additions and 3 deletions

View File

@@ -349,7 +349,7 @@ class UserCharacter(Character):
self.c.execute(
'''select amount from user_item where user_id=? and item_id=? and type="core"''', (self.user.user_id, i.item_id))
y = self.c.fetchone()
if not y or i.amount > y[0]:
if i.amount > 0 and (not y or i.amount > y[0]):
raise ItemNotEnough('The cores are not enough.')
for i in self.uncap_cores:

View File

@@ -1,6 +1,6 @@
from .config_manager import Config
ARCAEA_SERVER_VERSION = 'v2.11.1'
ARCAEA_SERVER_VERSION = 'v2.11.1.1'
class Constant:

View File

@@ -59,7 +59,8 @@ class InitData:
12: [{'core_id': 'core_binary', 'amount': 25}, {'core_id': 'core_desolate', 'amount': 5}],
19: [{'core_id': 'core_colorful', 'amount': 30}],
10: [{'core_id': 'core_umbral', 'amount': 30}],
66: [{'core_id': 'core_chunithm', 'amount': 15}]
66: [{'core_id': 'core_chunithm', 'amount': 15}],
5: [{'core_id': 'core_hollow', 'amount': 0}]
}
cores = ['core_hollow', 'core_desolate', 'core_chunithm', 'core_crimson',