-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add library entries for close and ranged combattechniques, cant…
…rips, spells, rituals, blessings, liturgical chants and ceremonies
- Loading branch information
Showing
37 changed files
with
2,981 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule contents
updated
from d17be0 to c754ba
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main_window/inlineLibrary/entities/InlineLibraryBlessing.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { FC } from "react" | ||
import { LibraryEntry } from "../../../shared/components/libraryEntry/LibraryEntry.tsx" | ||
import { getBlessingLibraryEntry } from "../../../shared/domain/rated/liturgicalChant.ts" | ||
import { useAppSelector } from "../../hooks/redux.ts" | ||
import { SelectGetById } from "../../selectors/basicCapabilitySelectors.ts" | ||
|
||
type Props = { | ||
id: number | ||
} | ||
|
||
/** | ||
* Displays all information about a blessing. | ||
*/ | ||
export const InlineLibraryBlessing: FC<Props> = ({ id }) => { | ||
const getTargetCategoryById = useAppSelector(SelectGetById.Static.TargetCategory) | ||
const entry = useAppSelector(SelectGetById.Static.Blessing)(id) | ||
|
||
return ( | ||
<LibraryEntry | ||
createLibraryEntry={getBlessingLibraryEntry(entry, { | ||
getTargetCategoryById, | ||
})} | ||
/> | ||
) | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main_window/inlineLibrary/entities/InlineLibraryCantrip.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { FC } from "react" | ||
import { LibraryEntry } from "../../../shared/components/libraryEntry/LibraryEntry.tsx" | ||
import { getCantripLibraryEntry } from "../../../shared/domain/rated/spell.ts" | ||
import { useAppSelector } from "../../hooks/redux.ts" | ||
import { SelectGetById } from "../../selectors/basicCapabilitySelectors.ts" | ||
|
||
type Props = { | ||
id: number | ||
} | ||
|
||
/** | ||
* Displays all information about a cantrip. | ||
*/ | ||
export const InlineLibraryCantrip: FC<Props> = ({ id }) => { | ||
const getCurriculumById = useAppSelector(SelectGetById.Static.Curriculum) | ||
const getTargetCategoryById = useAppSelector(SelectGetById.Static.TargetCategory) | ||
const getPropertyById = useAppSelector(SelectGetById.Static.Property) | ||
const getMagicalTraditionById = useAppSelector(SelectGetById.Static.MagicalTradition) | ||
const entry = useAppSelector(SelectGetById.Static.Cantrip)(id) | ||
|
||
return ( | ||
<LibraryEntry | ||
createLibraryEntry={getCantripLibraryEntry(entry, { | ||
getTargetCategoryById, | ||
getPropertyById, | ||
getMagicalTraditionById, | ||
getCurriculumById, | ||
})} | ||
/> | ||
) | ||
} |
35 changes: 35 additions & 0 deletions
35
src/main_window/inlineLibrary/entities/InlineLibraryCeremony.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { FC } from "react" | ||
import { LibraryEntry } from "../../../shared/components/libraryEntry/LibraryEntry.tsx" | ||
import { getCeremonyLibraryEntry } from "../../../shared/domain/rated/liturgicalChant.ts" | ||
import { useAppSelector } from "../../hooks/redux.ts" | ||
import { SelectGetById } from "../../selectors/basicCapabilitySelectors.ts" | ||
|
||
type Props = { | ||
id: number | ||
} | ||
|
||
/** | ||
* Displays all information about a ceremony. | ||
*/ | ||
export const InlineLibraryCeremony: FC<Props> = ({ id }) => { | ||
const getAttributeById = useAppSelector(SelectGetById.Static.Attribute) | ||
const getDerivedCharacteristicById = useAppSelector(SelectGetById.Static.DerivedCharacteristic) | ||
const getSkillModificationLevelById = useAppSelector(SelectGetById.Static.SkillModificationLevel) | ||
const getTargetCategoryById = useAppSelector(SelectGetById.Static.TargetCategory) | ||
const getBlessedTraditionById = useAppSelector(SelectGetById.Static.BlessedTradition) | ||
const getAspectById = useAppSelector(SelectGetById.Static.Aspect) | ||
const entry = useAppSelector(SelectGetById.Static.Ceremony)(id) | ||
|
||
return ( | ||
<LibraryEntry | ||
createLibraryEntry={getCeremonyLibraryEntry(entry, { | ||
getAttributeById, | ||
getDerivedCharacteristicById, | ||
getSkillModificationLevelById, | ||
getTargetCategoryById, | ||
getBlessedTraditionById, | ||
getAspectById, | ||
})} | ||
/> | ||
) | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main_window/inlineLibrary/entities/InlineLibraryCloseCombatTechnique.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { FC } from "react" | ||
import { LibraryEntry } from "../../../shared/components/libraryEntry/LibraryEntry.tsx" | ||
import { getCloseCombatTechniqueLibraryEntry } from "../../../shared/domain/rated/combatTechnique.ts" | ||
import { useAppSelector } from "../../hooks/redux.ts" | ||
import { SelectGetById } from "../../selectors/basicCapabilitySelectors.ts" | ||
|
||
type Props = { | ||
id: number | ||
} | ||
|
||
/** | ||
* Displays all information about a close combat technique. | ||
*/ | ||
export const InlineLibraryCloseCombatTechnique: FC<Props> = ({ id }) => { | ||
const getAttributeById = useAppSelector(SelectGetById.Static.Attribute) | ||
const entry = useAppSelector(SelectGetById.Static.CloseCombatTechnique)(id) | ||
|
||
return ( | ||
<LibraryEntry | ||
createLibraryEntry={getCloseCombatTechniqueLibraryEntry(entry, { | ||
getAttributeById, | ||
})} | ||
/> | ||
) | ||
} |
35 changes: 35 additions & 0 deletions
35
src/main_window/inlineLibrary/entities/InlineLibraryLiturgicalChant.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { FC } from "react" | ||
import { LibraryEntry } from "../../../shared/components/libraryEntry/LibraryEntry.tsx" | ||
import { getLiturgicalChantLibraryEntry } from "../../../shared/domain/rated/liturgicalChant.ts" | ||
import { useAppSelector } from "../../hooks/redux.ts" | ||
import { SelectGetById } from "../../selectors/basicCapabilitySelectors.ts" | ||
|
||
type Props = { | ||
id: number | ||
} | ||
|
||
/** | ||
* Displays all information about a liturgical chant. | ||
*/ | ||
export const InlineLibraryLiturgicalChant: FC<Props> = ({ id }) => { | ||
const getAttributeById = useAppSelector(SelectGetById.Static.Attribute) | ||
const getDerivedCharacteristicById = useAppSelector(SelectGetById.Static.DerivedCharacteristic) | ||
const getSkillModificationLevelById = useAppSelector(SelectGetById.Static.SkillModificationLevel) | ||
const getTargetCategoryById = useAppSelector(SelectGetById.Static.TargetCategory) | ||
const getBlessedTraditionById = useAppSelector(SelectGetById.Static.BlessedTradition) | ||
const getAspectById = useAppSelector(SelectGetById.Static.Aspect) | ||
const entry = useAppSelector(SelectGetById.Static.LiturgicalChant)(id) | ||
|
||
return ( | ||
<LibraryEntry | ||
createLibraryEntry={getLiturgicalChantLibraryEntry(entry, { | ||
getAttributeById, | ||
getDerivedCharacteristicById, | ||
getSkillModificationLevelById, | ||
getTargetCategoryById, | ||
getBlessedTraditionById, | ||
getAspectById, | ||
})} | ||
/> | ||
) | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main_window/inlineLibrary/entities/InlineLibraryRangedCombatTechnique.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { FC } from "react" | ||
import { LibraryEntry } from "../../../shared/components/libraryEntry/LibraryEntry.tsx" | ||
import { getRangedCombatTechniqueLibraryEntry } from "../../../shared/domain/rated/combatTechnique.ts" | ||
import { useAppSelector } from "../../hooks/redux.ts" | ||
import { SelectGetById } from "../../selectors/basicCapabilitySelectors.ts" | ||
|
||
type Props = { | ||
id: number | ||
} | ||
|
||
/** | ||
* Displays all information about a ranged combat technique. | ||
*/ | ||
export const InlineLibraryRangedCombatTechnique: FC<Props> = ({ id }) => { | ||
const getAttributeById = useAppSelector(SelectGetById.Static.Attribute) | ||
const entry = useAppSelector(SelectGetById.Static.RangedCombatTechnique)(id) | ||
|
||
return ( | ||
<LibraryEntry | ||
createLibraryEntry={getRangedCombatTechniqueLibraryEntry(entry, { | ||
getAttributeById, | ||
})} | ||
/> | ||
) | ||
} |
35 changes: 35 additions & 0 deletions
35
src/main_window/inlineLibrary/entities/InlineLibraryRitual.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { FC } from "react" | ||
import { LibraryEntry } from "../../../shared/components/libraryEntry/LibraryEntry.tsx" | ||
import { getRitualLibraryEntry } from "../../../shared/domain/rated/spell.ts" | ||
import { useAppSelector } from "../../hooks/redux.ts" | ||
import { SelectGetById } from "../../selectors/basicCapabilitySelectors.ts" | ||
|
||
type Props = { | ||
id: number | ||
} | ||
|
||
/** | ||
* Displays all information about a ritual. | ||
*/ | ||
export const InlineLibraryRitual: FC<Props> = ({ id }) => { | ||
const getAttributeById = useAppSelector(SelectGetById.Static.Attribute) | ||
const getDerivedCharacteristicById = useAppSelector(SelectGetById.Static.DerivedCharacteristic) | ||
const getSkillModificationLevelById = useAppSelector(SelectGetById.Static.SkillModificationLevel) | ||
const getTargetCategoryById = useAppSelector(SelectGetById.Static.TargetCategory) | ||
const getPropertyById = useAppSelector(SelectGetById.Static.Property) | ||
const getMagicalTraditionById = useAppSelector(SelectGetById.Static.MagicalTradition) | ||
const entry = useAppSelector(SelectGetById.Static.Ritual)(id) | ||
|
||
return ( | ||
<LibraryEntry | ||
createLibraryEntry={getRitualLibraryEntry(entry, { | ||
getAttributeById, | ||
getDerivedCharacteristicById, | ||
getSkillModificationLevelById, | ||
getTargetCategoryById, | ||
getPropertyById, | ||
getMagicalTraditionById, | ||
})} | ||
/> | ||
) | ||
} |
Oops, something went wrong.