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
src/components

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") {