Skip to content

Commit

Permalink
✨ feat: update kwack chun sik image
Browse files Browse the repository at this point in the history
  • Loading branch information
gem1n1-youngjae committed Dec 11, 2022
1 parent e5866ae commit 5ba3e9a
Show file tree
Hide file tree
Showing 48 changed files with 127 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/assets/images/gomem/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { kwakChunSik, kwakChunSikType } from "./kwakChunSik";
import { mitsuneHaku, mitsuneHakuType } from "./mitsuneHaku";
import { secretGirl, secretGirlType } from "./secretGirl";

export type gomemListType = {
secretGirl: secretGirlType;
mitsuneHaku: mitsuneHakuType;
kwakChunSik: kwakChunSikType;
};

export const gomemList: gomemListType = {
secretGirl,
mitsuneHaku,
kwakChunSik
};
45 changes: 45 additions & 0 deletions src/assets/images/gomem/kwakChunSik/common/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import 가래떡_춘식 from "./가래떡_춘식.png";
import 관상가_곽춘식 from "./관상가_곽춘식.png";
import 교복_춘식 from "./교복_춘식.png";
import 군대스리가_춘식 from "./군대스리가_춘식.png";
import 달나라_토끼_곽춘식 from "./달나라_토끼_곽춘식.png";
import 목춘식 from "./목춘식.png";
import 백수_곽춘식 from "./백수_곽춘식.png";
import 병장_곽춘식 from "./병장_곽춘식.png";
import 사또_곽춘식 from "./사또_곽춘식.png";
import 사복_춘식 from "./사복_춘식.png";
import 상병_곽춘식 from "./상병_곽춘식.png";
import 스윗_곽춘식 from "./스윗_곽춘식.png";
import 신하_곽춘식 from "./신하_곽춘식.png";
import 야인_곽춘식 from "./야인_곽춘식.png";
import 점프슈트_춘식 from "./점프슈트_춘식.png";
import 정장_춘식 from "./정장_춘식.png";
import 제식 from "./제식.png";
import 춘첸 from "./춘첸.png";
import 춘파민_박사 from "./춘파민_박사.png";
import 패션_테러리스트_관춘식 from "./패션_테러리스트_관춘식.png";
import 힙찔이_곽춘식 from "./힙찔이_곽춘식.png";

export const kwakChunSikCommonImages = {
가래떡_춘식,
관상가_곽춘식,
교복_춘식,
달나라_토끼_곽춘식,
군대스리가_춘식,
목춘식,
백수_곽춘식,
병장_곽춘식,
사또_곽춘식,
사복_춘식,
상병_곽춘식,
스윗_곽춘식,
신하_곽춘식,
야인_곽춘식,
점프슈트_춘식,
정장_춘식,
제식,
춘첸,
춘파민_박사,
패션_테러리스트_관춘식,
힙찔이_곽춘식
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/assets/images/gomem/kwakChunSik/epic/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import 곽춘식_4K from "./4K_곽춘식.png";
import 군대리아_곽춘식 from "./군대리아_곽춘식.png";
import 마법사_곽춘식 from "./마법사_곽춘식.png";
import 스피드왕_춘식 from "./스피드왕_춘식.png";
import 춘간조 from "./춘간조.png";
import 춘요환 from "./춘요환.png";
import 헤드라인_춘식 from "./헤드라인_춘식.png";

export const kwakChunSikEpicImages = {
곽춘식_4K,
군대리아_곽춘식,
마법사_곽춘식,
스피드왕_춘식,
춘간조,
춘요환,
헤드라인_춘식
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/images/gomem/kwakChunSik/hidden/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import 리얼_곽춘식 from "./리얼_곽춘식.png";

export const kwakChunSikHiddenImages = {
리얼_곽춘식
};
16 changes: 16 additions & 0 deletions src/assets/images/gomem/kwakChunSik/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { kwakChunSikCommonImages } from "./common/index";
import { kwakChunSikEpicImages } from "./epic/index";
import { kwakChunSikHiddenImages } from "./hidden";
import { kwakChunSikLegendImages } from "./legend/index";
import { kwakChunSikRareImages } from "./rare/index";

export const kwakChunSik = {
Common: kwakChunSikCommonImages,
Rare: kwakChunSikRareImages,
Epic: kwakChunSikEpicImages,
Legend: kwakChunSikLegendImages,
Hidden: kwakChunSikHiddenImages,
realName: "곽춘식"
};

export type kwakChunSikType = typeof kwakChunSik;
5 changes: 5 additions & 0 deletions src/assets/images/gomem/kwakChunSik/legend/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import 테크_춘식 from "./테크_춘식.png";

export const kwakChunSikLegendImages = {
테크_춘식
};
17 changes: 17 additions & 0 deletions src/assets/images/gomem/kwakChunSik/rare/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import 골판지_춘식 from "./골판지_춘식.png";
import 귀검사_춘식 from "./귀검사_춘식.png";
import 김치_수호자_곽춘식 from "./김치_수호자_곽춘식.png";
import 남자_아이돌_곽춘식 from "./남자_아이돌_곽춘식.png";
import 랩갓_곽춘식 from "./랩갓_곽춘식.png";
import 춘랑켄슈타인 from "./춘랑켄슈타인.png";
import 춘빼코 from "./춘빼코.png";

export const kwakChunSikRareImages = {
골판지_춘식,
귀검사_춘식,
김치_수호자_곽춘식,
남자_아이돌_곽춘식,
랩갓_곽춘식,
춘랑켄슈타인,
춘빼코
};
1 change: 1 addition & 0 deletions src/assets/images/gomem/mitsuneHaku/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const mitsuneHaku = {
Rare: mitsuneHakuRareImages,
Epic: mitsuneHakuEpicImages,
Legend: mitsuneHakuLegendImages,
realName: "미츠네-하쿠"
};

export type mitsuneHakuType = typeof mitsuneHaku;
1 change: 1 addition & 0 deletions src/assets/images/gomem/secretGirl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const secretGirl = {
Rare: secretGirlRareImages,
Epic: secretGirlEpicImages,
Legend: secretGirlLegendImages,
realName: "비밀소녀"
};

export type secretGirlType = typeof secretGirl;
3 changes: 2 additions & 1 deletion src/constant/star.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum star {
Hidden = 0,
Common = 1,
Rare = 2,
Epic = 3,
Legend = 4,
Legend = 4
}
16 changes: 15 additions & 1 deletion src/utils/hooks/useRandom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ export const useRandom = (gomemList) => {

const rendomGomemRealName = gomemList[randomGomemName].realName;

const isGomemHaveHiddion = useMemo(
() =>
Object.keys(gomemList[randomGomemName]).filter(
(gomem) => gomem === "Hidden"
).length !== 0,
[randomGomemName]
);

useEffect(() => {
if (randomClassNumber <= 40) {
setRandomClass("Common");
Expand All @@ -43,8 +51,14 @@ export const useRandom = (gomemList) => {
setRandomClass("Epic");
} else if (90 < randomClassNumber && randomClassNumber <= 98) {
setRandomClass("Legend");
} else {
} else if (98 < randomClassNumber && randomClassNumber <= 99) {
setRandomClass("Legend");
} else {
if (isGomemHaveHiddion) {
setRandomClass("Hidden");
} else {
setRandomClass("Legend");
}
}
}, [randomClassNumber]);

Expand Down

0 comments on commit 5ba3e9a

Please sign in to comment.