UPDATE: New data
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m6s
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m6s
This commit is contained in:
@@ -104,6 +104,7 @@ export function converterToFreeSRJson(
|
|||||||
techniques: avatar.techniques,
|
techniques: avatar.techniques,
|
||||||
sp_value: Number(avatar.sp_value || 0),
|
sp_value: Number(avatar.sp_value || 0),
|
||||||
sp_max: Number(avatar.sp_max || 0),
|
sp_max: Number(avatar.sp_max || 0),
|
||||||
|
enhanced_id: avatar.enhanced ? Number(avatar.enhanced || 0) : undefined,
|
||||||
}
|
}
|
||||||
const currentProfile = avatar.profileList[avatar.profileSelect]
|
const currentProfile = avatar.profileList[avatar.profileSelect]
|
||||||
if (currentProfile.lightcone && currentProfile.lightcone.item_id !== 0) {
|
if (currentProfile.lightcone && currentProfile.lightcone.item_id !== 0) {
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export interface AvatarJson {
|
|||||||
techniques: number[];
|
techniques: number[];
|
||||||
sp_value: number;
|
sp_value: number;
|
||||||
sp_max: number;
|
sp_max: number;
|
||||||
|
enhanced_id?: number;
|
||||||
}
|
}
|
||||||
export interface MonsterJson {
|
export interface MonsterJson {
|
||||||
monster_id: number;
|
monster_id: number;
|
||||||
@@ -49,7 +50,6 @@ export interface DynamicKeyJson {
|
|||||||
value: number;
|
value: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
//BattleBuff
|
|
||||||
export interface BattleBuffJson {
|
export interface BattleBuffJson {
|
||||||
level: number;
|
level: number;
|
||||||
id: number;
|
id: number;
|
||||||
|
|||||||
@@ -40,7 +40,8 @@ export const avatarJsonSchema = z.object({
|
|||||||
promotion: z.number(),
|
promotion: z.number(),
|
||||||
techniques: z.array(z.number()),
|
techniques: z.array(z.number()),
|
||||||
sp_value: z.number(),
|
sp_value: z.number(),
|
||||||
sp_max: z.number()
|
sp_max: z.number(),
|
||||||
|
enhanced_id: z.number().optional()
|
||||||
});
|
});
|
||||||
|
|
||||||
export const monsterJsonSchema = z.object({
|
export const monsterJsonSchema = z.object({
|
||||||
|
|||||||
Reference in New Issue
Block a user