mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 13:25:13 +00:00
feat: add ticket storage in config and gui
This commit is contained in:
parent
d47e463365
commit
9d3e581321
@ -84,7 +84,10 @@
|
|||||||
"ItemStorage": {
|
"ItemStorage": {
|
||||||
"AP": {},
|
"AP": {},
|
||||||
"Credit": {},
|
"Credit": {},
|
||||||
"Pyroxene": {}
|
"Pyroxene": {},
|
||||||
|
"BountyTicket": {},
|
||||||
|
"ScrimmageTicket": {},
|
||||||
|
"TacticalChallengeTicket": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -348,6 +348,30 @@
|
|||||||
"stored": "StoredInt",
|
"stored": "StoredInt",
|
||||||
"order": 3,
|
"order": 3,
|
||||||
"color": "#21befc"
|
"color": "#21befc"
|
||||||
|
},
|
||||||
|
"BountyTicket": {
|
||||||
|
"type": "stored",
|
||||||
|
"value": {},
|
||||||
|
"display": "hide",
|
||||||
|
"stored": "StoredBountyTicket",
|
||||||
|
"order": 4,
|
||||||
|
"color": "#94cb44"
|
||||||
|
},
|
||||||
|
"ScrimmageTicket": {
|
||||||
|
"type": "stored",
|
||||||
|
"value": {},
|
||||||
|
"display": "hide",
|
||||||
|
"stored": "StoredScrimmageTicket",
|
||||||
|
"order": 5,
|
||||||
|
"color": "#f86c6a"
|
||||||
|
},
|
||||||
|
"TacticalChallengeTicket": {
|
||||||
|
"type": "stored",
|
||||||
|
"value": {},
|
||||||
|
"display": "hide",
|
||||||
|
"stored": "StoredTacticalChallengeTicket",
|
||||||
|
"order": 6,
|
||||||
|
"color": "#7ac8e5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,3 +99,15 @@ ItemStorage:
|
|||||||
stored: StoredInt
|
stored: StoredInt
|
||||||
order: 3
|
order: 3
|
||||||
color: "#21befc"
|
color: "#21befc"
|
||||||
|
BountyTicket:
|
||||||
|
stored: StoredBountyTicket
|
||||||
|
order: 4
|
||||||
|
color: "#94cb44"
|
||||||
|
ScrimmageTicket:
|
||||||
|
stored: StoredScrimmageTicket
|
||||||
|
order: 5
|
||||||
|
color: "#f86c6a"
|
||||||
|
TacticalChallengeTicket:
|
||||||
|
stored: StoredTacticalChallengeTicket
|
||||||
|
order: 6
|
||||||
|
color: "#7ac8e5"
|
||||||
|
|||||||
@ -35,5 +35,44 @@
|
|||||||
},
|
},
|
||||||
"order": 3,
|
"order": 3,
|
||||||
"color": "#21befc"
|
"color": "#21befc"
|
||||||
|
},
|
||||||
|
"BountyTicket": {
|
||||||
|
"name": "BountyTicket",
|
||||||
|
"path": "DataUpdate.ItemStorage.BountyTicket",
|
||||||
|
"i18n": "ItemStorage.BountyTicket.name",
|
||||||
|
"stored": "StoredBountyTicket",
|
||||||
|
"attrs": {
|
||||||
|
"time": "2020-01-01 00:00:00",
|
||||||
|
"total": 6,
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
"order": 4,
|
||||||
|
"color": "#94cb44"
|
||||||
|
},
|
||||||
|
"ScrimmageTicket": {
|
||||||
|
"name": "ScrimmageTicket",
|
||||||
|
"path": "DataUpdate.ItemStorage.ScrimmageTicket",
|
||||||
|
"i18n": "ItemStorage.ScrimmageTicket.name",
|
||||||
|
"stored": "StoredScrimmageTicket",
|
||||||
|
"attrs": {
|
||||||
|
"time": "2020-01-01 00:00:00",
|
||||||
|
"total": 6,
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
"order": 5,
|
||||||
|
"color": "#f86c6a"
|
||||||
|
},
|
||||||
|
"TacticalChallengeTicket": {
|
||||||
|
"name": "TacticalChallengeTicket",
|
||||||
|
"path": "DataUpdate.ItemStorage.TacticalChallengeTicket",
|
||||||
|
"i18n": "ItemStorage.TacticalChallengeTicket.name",
|
||||||
|
"stored": "StoredTacticalChallengeTicket",
|
||||||
|
"attrs": {
|
||||||
|
"time": "2020-01-01 00:00:00",
|
||||||
|
"total": 5,
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
|
"order": 6,
|
||||||
|
"color": "#7ac8e5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -52,3 +52,6 @@ class GeneratedConfig:
|
|||||||
ItemStorage_AP = {}
|
ItemStorage_AP = {}
|
||||||
ItemStorage_Credit = {}
|
ItemStorage_Credit = {}
|
||||||
ItemStorage_Pyroxene = {}
|
ItemStorage_Pyroxene = {}
|
||||||
|
ItemStorage_BountyTicket = {}
|
||||||
|
ItemStorage_ScrimmageTicket = {}
|
||||||
|
ItemStorage_TacticalChallengeTicket = {}
|
||||||
|
|||||||
@ -239,6 +239,18 @@
|
|||||||
"Pyroxene": {
|
"Pyroxene": {
|
||||||
"name": "Pyroxene",
|
"name": "Pyroxene",
|
||||||
"help": ""
|
"help": ""
|
||||||
|
},
|
||||||
|
"BountyTicket": {
|
||||||
|
"name": "Bounty Ticket",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
|
"ScrimmageTicket": {
|
||||||
|
"name": "Scrimmage Ticket",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
|
"TacticalChallengeTicket": {
|
||||||
|
"name": "Tactical Challenge Ticket",
|
||||||
|
"help": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Gui": {
|
"Gui": {
|
||||||
|
|||||||
@ -239,6 +239,18 @@
|
|||||||
"Pyroxene": {
|
"Pyroxene": {
|
||||||
"name": "青辉石",
|
"name": "青辉石",
|
||||||
"help": ""
|
"help": ""
|
||||||
|
},
|
||||||
|
"BountyTicket": {
|
||||||
|
"name": "悬赏通缉票券",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
|
"ScrimmageTicket": {
|
||||||
|
"name": "学院交流会票券",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
|
"TacticalChallengeTicket": {
|
||||||
|
"name": "战术对抗赛票券",
|
||||||
|
"help": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Gui": {
|
"Gui": {
|
||||||
|
|||||||
@ -3,6 +3,8 @@ from functools import cached_property as functools_cached_property
|
|||||||
|
|
||||||
from module.base.decorator import cached_property
|
from module.base.decorator import cached_property
|
||||||
from module.config.utils import DEFAULT_TIME, deep_get, get_server_last_monday_update, get_server_last_update
|
from module.config.utils import DEFAULT_TIME, deep_get, get_server_last_monday_update, get_server_last_update
|
||||||
|
|
||||||
|
|
||||||
# from module.exception import ScriptError
|
# from module.exception import ScriptError
|
||||||
|
|
||||||
|
|
||||||
@ -173,6 +175,20 @@ class StoredCounter(StoredBase):
|
|||||||
class StoredAP(StoredCounter):
|
class StoredAP(StoredCounter):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class StoredBountyTicket(StoredCounter, StoredExpiredAt0400):
|
||||||
|
FIXED_TOTAL = 6
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class StoredScrimmageTicket(StoredCounter, StoredExpiredAt0400):
|
||||||
|
FIXED_TOTAL = 6
|
||||||
|
|
||||||
|
|
||||||
|
class StoredTacticalChallengeTicket(StoredCounter, StoredExpiredAt0400):
|
||||||
|
FIXED_TOTAL = 5
|
||||||
|
|
||||||
|
|
||||||
# class StoredDailyActivity(StoredCounter, StoredExpiredAt0400):
|
# class StoredDailyActivity(StoredCounter, StoredExpiredAt0400):
|
||||||
# FIXED_TOTAL = 500
|
# FIXED_TOTAL = 500
|
||||||
#
|
#
|
||||||
|
|||||||
@ -1,10 +1,9 @@
|
|||||||
from module.config.stored.classes import (
|
from module.config.stored.classes import (
|
||||||
StoredAP,
|
StoredAP,
|
||||||
StoredBase,
|
StoredBountyTicket,
|
||||||
StoredCounter,
|
|
||||||
StoredExpiredAt0400,
|
|
||||||
StoredExpiredAtMonday0400,
|
|
||||||
StoredInt,
|
StoredInt,
|
||||||
|
StoredScrimmageTicket,
|
||||||
|
StoredTacticalChallengeTicket,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -15,3 +14,6 @@ class StoredGenerated:
|
|||||||
AP = StoredAP("DataUpdate.ItemStorage.AP")
|
AP = StoredAP("DataUpdate.ItemStorage.AP")
|
||||||
Credit = StoredInt("DataUpdate.ItemStorage.Credit")
|
Credit = StoredInt("DataUpdate.ItemStorage.Credit")
|
||||||
Pyroxene = StoredInt("DataUpdate.ItemStorage.Pyroxene")
|
Pyroxene = StoredInt("DataUpdate.ItemStorage.Pyroxene")
|
||||||
|
BountyTicket = StoredBountyTicket("DataUpdate.ItemStorage.BountyTicket")
|
||||||
|
ScrimmageTicket = StoredScrimmageTicket("DataUpdate.ItemStorage.ScrimmageTicket")
|
||||||
|
TacticalChallengeTicket = StoredTacticalChallengeTicket("DataUpdate.ItemStorage.TacticalChallengeTicket")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user