refactor: Add checking in createBaseV3 function
This commit is contained in:
@@ -848,6 +848,7 @@ export function createBaseV3(char:character){
|
||||
ext: string
|
||||
}> = structuredClone(char.ccAssets ?? [])
|
||||
|
||||
if(char.additionalAssets){
|
||||
for(const asset of char.additionalAssets){
|
||||
assets.push({
|
||||
type: 'x-risu-asset',
|
||||
@@ -856,7 +857,9 @@ export function createBaseV3(char:character){
|
||||
ext: asset[2] || 'unknown'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if(char.emotionImages){
|
||||
for(const asset of char.emotionImages){
|
||||
assets.push({
|
||||
type: 'emotion',
|
||||
@@ -872,6 +875,7 @@ export function createBaseV3(char:character){
|
||||
name: 'main',
|
||||
ext: 'png'
|
||||
})
|
||||
}
|
||||
|
||||
for(const lore of char.globalLore){
|
||||
let ext:{
|
||||
|
||||
Reference in New Issue
Block a user