skills - very bad re write later

This commit is contained in:
Polaris 2024-08-25 20:41:57 -04:00
parent 7903210aed
commit 2c264351aa

View File

@ -61,14 +61,69 @@ export const columns: ColumnDef<chunithm>[] = [
);
},
cell: ({ row }) => {
const skillId = row.original.skillId;
const isClear = row.original.isClear;
let isSuccessText = "";
if (isClear === 1 && skillId === 100010) {
isSuccessText = "Limit Break 【SUN】";
} else if (isClear === 1 && skillId === 100011) {
isSuccessText = "Limit Break++ ";
} else if (isClear === 1 && skillId === 100012) {
isSuccessText = "Limit Break+++";
} else if (isClear === 1 && skillId === 100013) {
isSuccessText = "Campaign";
} else if (isClear === 1 && skillId === 101000) {
isSuccessText = "Guard 【SUN】";
} else if (isClear === 1 && skillId === 101001) {
isSuccessText = "Boost 【SUN】";
} else if (isClear === 1 && skillId === 101002) {
isSuccessText = "Combo 【SUN】";
} else if (isClear === 1 && skillId === 101003) {
isSuccessText = "A-Guilty 【SUN】";
} else if (isClear === 1 && skillId === 101004) {
isSuccessText = "Judge 【SUN】";
} else if (isClear === 1 && skillId === 101005) {
isSuccessText = "Judge++ 【SUN】";
} else if (isClear === 1 && skillId === 101006) {
isSuccessText = "Emblem 【SUN】";
} else if (isClear === 1 && skillId === 101007) {
isSuccessText = "Emblem++ 【SUN】";
} else if (isClear === 1 && skillId === 101008) {
isSuccessText = "Absolute++【SUN】";
} else if (isClear === 1 && skillId === 102000) {
isSuccessText = "Guard【LMN】";
} else if (isClear === 1 && skillId === 102001) {
isSuccessText = "Boost 【LMN】";
} else if (isClear === 1 && skillId === 102002) {
isSuccessText = "Combo【LMN】";
} else if (isClear === 1 && skillId === 102003) {
isSuccessText = "A-Guilty【LMN】";
} else if (isClear === 1 && skillId === 102004) {
isSuccessText = "Judge 【LMN】";
} else if (isClear === 1 && skillId === 102005) {
isSuccessText = "Judge++【LMN】";
} else if (isClear === 1 && skillId === 102006) {
isSuccessText = "Emblem【LMN】";
} else if (isClear === 1 && skillId === 102007) {
isSuccessText = "Emblem++【LMN】";
} else if (isClear === 1 && skillId === 102008) {
isSuccessText = "Absolute++ 【LMN】";
} else if (isClear === 1 && skillId === 102009) {
isSuccessText = "Catastropy【LMN】";
} else if (isClear === 0) {
isSuccessText = "Failed";
} else {
isSuccessText = isClear?.toString() ?? "";
}
return (
<div>
{row.original.score?.toLocaleString()}
<div className="mt-2 w-24 rounded-sm bg-primary pl-2 text-primary-foreground">
e
<div className="mt-2 rounded-sm bg-primary pl-2 text-primary-foreground">
{isSuccessText}
</div>
<div
className={`mt-2 w-24 rounded-sm pl-2 ${
className={`mt-2 rounded-sm pl-2 ${
row.original.isNewRecord
? "bg-primary text-primary-foreground"
: "invisible"