mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2025-12-14 08:06:23 +08:00
[Bug fix] Character 5 value error
- Fix a bug that the character **Hikari & Tairitsu (Reunion)** cannot be uncapped. #100
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from .config_manager import Config
|
||||
|
||||
ARCAEA_SERVER_VERSION = 'v2.11.1'
|
||||
ARCAEA_SERVER_VERSION = 'v2.11.1.1'
|
||||
|
||||
|
||||
class Constant:
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user