From 18ab856ed90ac325153c43b7c06823575eb4ddb7 Mon Sep 17 00:00:00 2001 From: Balint Morasz Date: Mon, 2 Oct 2023 00:03:16 +0200 Subject: [PATCH] feat: faji szint limitek + some refactor --- src/components/OsztalySelector.tsx | 8 +- src/domain-models/faj.ts | 149 +++++++++++++++++++++++++++++ src/domain-models/level.ts | 39 ++++++++ src/pages/CreateCharacter.tsx | 41 +++----- 4 files changed, 203 insertions(+), 34 deletions(-) create mode 100644 src/domain-models/level.ts diff --git a/src/components/OsztalySelector.tsx b/src/components/OsztalySelector.tsx index f6fc07c..af7ddd3 100644 --- a/src/components/OsztalySelector.tsx +++ b/src/components/OsztalySelector.tsx @@ -6,7 +6,7 @@ import { OsztalyProperties, OsztalySpecialSkills } from "../domain-models/osztaly"; -import {Faj} from "../domain-models/faj"; +import {Faj, SzintKorlatokFajokra} from "../domain-models/faj"; function OsztalySelector(props: {currentFaj: Faj, currentOsztaly: Osztaly, changeOsztaly: (newOsztaly: Osztaly) => void}) { const {currentFaj, currentOsztaly, changeOsztaly} = props; @@ -17,15 +17,15 @@ function OsztalySelector(props: {currentFaj: Faj, currentOsztaly: Osztaly, chang