Refactored servant data to hopefully fix astro

This commit is contained in:
Firq 2023-01-21 20:07:51 +01:00
parent a0ff98c6d2
commit 5697857963
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
2 changed files with 11 additions and 7 deletions

View file

@ -4,15 +4,16 @@ export interface Props {
level: string;
skills: string;
np: string;
asc: string;
image_servant: string;
image_bond: string;
ml: string;
bond10: string;
}
const {bond10, ml, asc, np, skills, level, name } = Astro.props;
const {bond10, ml, image_bond, image_servant, np, skills, level, name } = Astro.props;
const servant_img: string = `servant/${name}_${asc}.png`;
const bondce_img: string = `ce/bond-ce/${name}.png`
const servant_img: string = `servant/${image_servant}.png`;
const bondce_img: string = `ce/bond-ce/${image_bond}.png`
let bondce_css: string = "bond-ce";
if(bond10 === "false") {

View file

@ -5,7 +5,8 @@
"np": "4",
"skills": "10 / 10 / 10 ",
"ml": "10",
"asc": "03",
"image_servant": "skadi_03",
"image_bond": "skadi",
"bond10": "true"
},
{
@ -14,7 +15,8 @@
"np": "1",
"skills": "10 / 10 / 10 ",
"ml": "1",
"asc": "01",
"image_servant": "skadi_01",
"image_bond": "skadi",
"bond10": "true"
},
{
@ -23,7 +25,8 @@
"np": "1",
"skills": "10 / 10 / 10 ",
"ml": "Not Unlocked",
"asc": "01",
"image_servant": "castoria_01",
"image_bond": "castoria",
"bond10": "true"
}
]