Compare commits
11 Commits
76f7ced8e9
...
main
Author | SHA1 | Date | |
---|---|---|---|
437575f0d0 | |||
6219dcabb0 | |||
156b15c5e5 | |||
f148695c59 | |||
45ce0ea3cc | |||
ed69e09249 | |||
a6b4bfcc14 | |||
09ab329c24 | |||
7baaae9d8d | |||
09f3e3d6ed | |||
2c58743dd2 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -22,3 +22,4 @@ dist-ssr
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
/dist.zip
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
|
Before Width: | Height: | Size: 4.0 KiB |
97
src/classes/DSACharacter.ts
Normal file
97
src/classes/DSACharacter.ts
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
import type {DSAAttributes, DSAExperienceLevel, DSAPersonalData, DSAStats} from "../types/baseCharacter.ts";
|
||||||
|
import type {DSACalculatedValue} from "../types/baseDSA.ts";
|
||||||
|
import type {DSABaseEquiment} from "../types/baseEquiment.ts";
|
||||||
|
import type {DSAArmor, DSAMeleeWeapon, DSARangedWeapon, DSAShieldParryWeapon} from "../types/equiment.ts";
|
||||||
|
import type {DSASpell} from "../types/character.ts";
|
||||||
|
import type DSASkill from "./DSASkill.ts";
|
||||||
|
// TODO
|
||||||
|
// === LOGIC ===
|
||||||
|
// Skillpoint <-> QualityLevel
|
||||||
|
|
||||||
|
export default class DSACharacter {
|
||||||
|
public id: string
|
||||||
|
|
||||||
|
personalData: DSAPersonalData
|
||||||
|
attributes: DSAAttributes
|
||||||
|
stats: DSAStats
|
||||||
|
fatePoints: DSACalculatedValue
|
||||||
|
experienceLevel: DSAExperienceLevel
|
||||||
|
advantanges: string[] // TODO
|
||||||
|
disadvantanges: string[] // TODO
|
||||||
|
generalSpecialAbilities: string[] // TODO
|
||||||
|
|
||||||
|
skills: DSASkill[] // TODO: {physical, social, nature, knowledge, craft} generated by GPT
|
||||||
|
languages: string[]
|
||||||
|
scripts: string[]
|
||||||
|
|
||||||
|
combatTechniques: string[] // TODO
|
||||||
|
combatSpecialAbilities: string[] // TODO
|
||||||
|
|
||||||
|
public inventory: {
|
||||||
|
closeCombatWeapons: DSAMeleeWeapon[] // TODO
|
||||||
|
rangedWeapons: DSARangedWeapon[] // TODO
|
||||||
|
armor: DSAArmor[] // TODO
|
||||||
|
shieldParryWeapon: DSAShieldParryWeapon[] // TODO
|
||||||
|
belongings: DSABaseEquiment[]
|
||||||
|
totalWeight: number // TODO Calculated
|
||||||
|
carryingCapacity: number // TODO Calculated
|
||||||
|
purse: {
|
||||||
|
ducats: number
|
||||||
|
silverthalers: number
|
||||||
|
halers: number
|
||||||
|
kreutzers: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public animal?: {
|
||||||
|
name: string
|
||||||
|
sizeCategory: 'winzig' | 'klein' | 'mittel' | 'groß' | 'riesig'
|
||||||
|
type: string
|
||||||
|
stats: DSAStats
|
||||||
|
attributes: DSAAttributes
|
||||||
|
attack: {
|
||||||
|
attack: number
|
||||||
|
defence: number
|
||||||
|
damagePoints: number
|
||||||
|
armor: number
|
||||||
|
}
|
||||||
|
actions: string[]
|
||||||
|
specialAbilities: string[]
|
||||||
|
image?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
public spellsAndRituals?: { // TODO
|
||||||
|
properties: string[]
|
||||||
|
primaryAttribute: string[]
|
||||||
|
tradition: string[]
|
||||||
|
magicalSpecialAbilities: string[]
|
||||||
|
cantrips: string[]
|
||||||
|
spells?: DSASpell[]
|
||||||
|
}
|
||||||
|
|
||||||
|
public liturgicalChantsAndCeremonies?: { // TODO
|
||||||
|
aspects: string[]
|
||||||
|
primaryAttribute: string[]
|
||||||
|
tradition: string[]
|
||||||
|
blessedSpecialAbilities: string[]
|
||||||
|
blessings: string[]
|
||||||
|
spells?: DSASpell[]
|
||||||
|
}
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
this.id = crypto.randomUUID()
|
||||||
|
this.personalData = {
|
||||||
|
name: "", age: "", culture: "", family: "", hometown: "", profession: "", socialStanding: "", species: ""
|
||||||
|
}
|
||||||
|
this.attributes = {
|
||||||
|
agility: 8,
|
||||||
|
charisma: 8,
|
||||||
|
cleverness: 8,
|
||||||
|
constitution: 8,
|
||||||
|
courage: 8,
|
||||||
|
dexterity: 8,
|
||||||
|
intuition: 8,
|
||||||
|
strength: 8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
26
src/classes/DSAImprovementsTable.ts
Normal file
26
src/classes/DSAImprovementsTable.ts
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
import improvementCostTable from '../data/improvementcosttable.json'
|
||||||
|
import type {DSAImprovements} from "../types/baseDSA.ts";
|
||||||
|
|
||||||
|
export default class DSAImprovementsTable {
|
||||||
|
|
||||||
|
private static readonly improvementCostTable = improvementCostTable;
|
||||||
|
|
||||||
|
|
||||||
|
static getCost(improvement: DSAImprovements, level: number) : number{
|
||||||
|
if(improvement === 'other') {
|
||||||
|
//TODO
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return improvementCostTable[improvement][this.getKey(level)]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static getKey(level : number) : string {
|
||||||
|
if(level >= 1 && level <= 12) {
|
||||||
|
return '1-12'
|
||||||
|
} else {
|
||||||
|
return level.toString()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
47
src/classes/DSASkill.ts
Normal file
47
src/classes/DSASkill.ts
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
import type {DSAAttributes} from "../types/baseCharacter.ts";
|
||||||
|
import type {DSAImprovements} from "../types/baseDSA.ts";
|
||||||
|
import DSAImprovementsTable from "./DSAImprovementsTable.ts";
|
||||||
|
|
||||||
|
export class DSABaseSkill {
|
||||||
|
skillName: string
|
||||||
|
improvement: DSAImprovements
|
||||||
|
skillLevel: number
|
||||||
|
|
||||||
|
constructor(skillName: string, improvement: DSAImprovements, skillLevel: number) {
|
||||||
|
this.skillName = skillName
|
||||||
|
this.improvement = improvement
|
||||||
|
this.skillLevel = skillLevel
|
||||||
|
}
|
||||||
|
|
||||||
|
improvementCost(): number {
|
||||||
|
return DSAImprovementsTable.getCost(this.improvement, this.skillLevel)
|
||||||
|
}
|
||||||
|
|
||||||
|
improve() {
|
||||||
|
this.skillLevel++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class DSASkill extends DSABaseSkill {
|
||||||
|
skillName: string;
|
||||||
|
improvement: DSAImprovements;
|
||||||
|
attributes: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes]
|
||||||
|
encumbrance: "YES" | "NO" | "MAYBE"
|
||||||
|
comment: string
|
||||||
|
|
||||||
|
constructor(skillName: string, improvement: DSAImprovements,
|
||||||
|
attributes: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes],
|
||||||
|
encumbrance: "YES" | "NO" | "MAYBE", skillLevel: number, comment: string) {
|
||||||
|
super(skillName, improvement, skillLevel)
|
||||||
|
this.skillName = skillName
|
||||||
|
this.improvement = improvement
|
||||||
|
this.attributes = attributes
|
||||||
|
this.encumbrance = encumbrance
|
||||||
|
this.skillLevel = skillLevel
|
||||||
|
this.comment = comment
|
||||||
|
}
|
||||||
|
|
||||||
|
routineCheck(): number {
|
||||||
|
return this.skillLevel >= 13 ? this.skillLevel / 2 : 0
|
||||||
|
}
|
||||||
|
}
|
@@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import type {DSACharacter, DSAAttributes} from '../types/character';
|
import type {DSACharacter} from '../types/character';
|
||||||
|
import type {DSAAttributes} from "../types/baseCharacter.ts";
|
||||||
|
|
||||||
interface AttributesProps {
|
interface AttributesProps {
|
||||||
character: DSACharacter;
|
character: DSACharacter;
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import type {DSACharacter} from '../types/character';
|
import type {DSACharacter} from '../types/character';
|
||||||
|
import type {DSAPersonalData} from "../types/baseCharacter.ts";
|
||||||
|
|
||||||
interface BasicInfoProps {
|
interface BasicInfoProps {
|
||||||
character: DSACharacter;
|
character: DSACharacter;
|
||||||
@@ -9,7 +10,7 @@ interface BasicInfoProps {
|
|||||||
|
|
||||||
const BasicInfo: React.FC<BasicInfoProps> = ({ character, setCharacter }) => {
|
const BasicInfo: React.FC<BasicInfoProps> = ({ character, setCharacter }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const updateField = (field: keyof DSACharacter, value: string) => {
|
const updateField = (field: keyof DSACharacter | keyof DSAPersonalData, value: string) => {
|
||||||
setCharacter(prev => ({
|
setCharacter(prev => ({
|
||||||
...prev,
|
...prev,
|
||||||
[field]: value
|
[field]: value
|
||||||
@@ -25,7 +26,7 @@ const BasicInfo: React.FC<BasicInfoProps> = ({ character, setCharacter }) => {
|
|||||||
<input
|
<input
|
||||||
id="name"
|
id="name"
|
||||||
type="text"
|
type="text"
|
||||||
value={character.name}
|
value={character.personalData.name}
|
||||||
onChange={(e) => updateField('name', e.target.value)}
|
onChange={(e) => updateField('name', e.target.value)}
|
||||||
placeholder={t('basicInfo.namePlaceholder')}
|
placeholder={t('basicInfo.namePlaceholder')}
|
||||||
/>
|
/>
|
||||||
@@ -35,7 +36,7 @@ const BasicInfo: React.FC<BasicInfoProps> = ({ character, setCharacter }) => {
|
|||||||
<input
|
<input
|
||||||
id="species"
|
id="species"
|
||||||
type="text"
|
type="text"
|
||||||
value={character.species}
|
value={character.personalData.species}
|
||||||
onChange={(e) => updateField('species', e.target.value)}
|
onChange={(e) => updateField('species', e.target.value)}
|
||||||
placeholder={t('basicInfo.speciesPlaceholder')}
|
placeholder={t('basicInfo.speciesPlaceholder')}
|
||||||
/>
|
/>
|
||||||
@@ -45,7 +46,7 @@ const BasicInfo: React.FC<BasicInfoProps> = ({ character, setCharacter }) => {
|
|||||||
<input
|
<input
|
||||||
id="culture"
|
id="culture"
|
||||||
type="text"
|
type="text"
|
||||||
value={character.culture}
|
value={character.personalData.culture}
|
||||||
onChange={(e) => updateField('culture', e.target.value)}
|
onChange={(e) => updateField('culture', e.target.value)}
|
||||||
placeholder={t('basicInfo.culturePlaceholder')}
|
placeholder={t('basicInfo.culturePlaceholder')}
|
||||||
/>
|
/>
|
||||||
@@ -55,7 +56,7 @@ const BasicInfo: React.FC<BasicInfoProps> = ({ character, setCharacter }) => {
|
|||||||
<input
|
<input
|
||||||
id="profession"
|
id="profession"
|
||||||
type="text"
|
type="text"
|
||||||
value={character.profession}
|
value={character.personalData.profession}
|
||||||
onChange={(e) => updateField('profession', e.target.value)}
|
onChange={(e) => updateField('profession', e.target.value)}
|
||||||
placeholder={t('basicInfo.professionPlaceholder')}
|
placeholder={t('basicInfo.professionPlaceholder')}
|
||||||
/>
|
/>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
// src/components/CharacterSheet.tsx
|
// src/components/CharacterSheet.tsx
|
||||||
import React, { useState } from 'react';
|
import React, {useState} from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import {useTranslation} from 'react-i18next';
|
||||||
import type { DSACharacter } from '../types/character';
|
import type {DSACharacter} from '../types/character';
|
||||||
import BasicInfo from './BasicInfo';
|
import BasicInfo from './BasicInfo';
|
||||||
import Attributes from './Attributes';
|
import Attributes from './Attributes';
|
||||||
import Skills from './Skills';
|
import Skills from './Skills';
|
||||||
@@ -9,103 +9,246 @@ import Spells from './Spells';
|
|||||||
import CombatValues from './CombatValues';
|
import CombatValues from './CombatValues';
|
||||||
import ThemeToggle from './ThemeToggle';
|
import ThemeToggle from './ThemeToggle';
|
||||||
import LanguageSelector from './LanguageSelector';
|
import LanguageSelector from './LanguageSelector';
|
||||||
import DSADiceRoller from "./DSADiceRoller.tsx";
|
|
||||||
import iconUrl from '/icon.png';
|
import iconUrl from '/icon.png';
|
||||||
import '../styles/CharacterSheet.css';
|
import '../styles/CharacterSheet.css';
|
||||||
|
|
||||||
// Erweiterte Initial-Daten mit Astralenergie und Zaubern
|
// Erweiterte Initial-Daten mit Astralenergie und Zaubern
|
||||||
const initialCharacter: DSACharacter = {
|
const initialCharacter: DSACharacter = {
|
||||||
id: crypto.randomUUID(),
|
id: crypto.randomUUID(),
|
||||||
|
personalData: {
|
||||||
name: '',
|
name: '',
|
||||||
species: '',
|
species: '',
|
||||||
culture: '',
|
culture: '',
|
||||||
profession: '',
|
profession: '',
|
||||||
experienceLevel: 'Experienced',
|
socialstatus: '',
|
||||||
attributes: {
|
hometown: '',
|
||||||
courage: 8,
|
family: '',
|
||||||
cleverness: 8,
|
looks: {
|
||||||
intuition: 8,
|
age: '',
|
||||||
charisma: 8,
|
haircolor: '',
|
||||||
dexterity: 8,
|
eyecolor: '',
|
||||||
agility: 8,
|
height: '',
|
||||||
constitution: 8,
|
weight: '',
|
||||||
strength: 8
|
characteristics: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
experienceLevel: 'Experienced',
|
||||||
|
health: {
|
||||||
|
lifePoints: {
|
||||||
|
max: 30,
|
||||||
|
current: 30,
|
||||||
|
base: 30,
|
||||||
|
modifier: 0,
|
||||||
|
purchased: 0
|
||||||
},
|
},
|
||||||
skills: {},
|
conditions: [],
|
||||||
spells: {}, // ← Neu hinzugefügt
|
fatigue: 0,
|
||||||
combat: {
|
pain: 0
|
||||||
lifePoints: { max: 30, current: 30 },
|
},
|
||||||
stamina: { max: 30, current: 30 },
|
attributes: {
|
||||||
initiative: 10,
|
courage: 8,
|
||||||
speed: 8
|
cleverness: 8,
|
||||||
|
intuition: 8,
|
||||||
|
charisma: 8,
|
||||||
|
dexterity: 8,
|
||||||
|
agility: 8,
|
||||||
|
constitution: 8,
|
||||||
|
strength: 8
|
||||||
|
},
|
||||||
|
skills: {},
|
||||||
|
astral: {
|
||||||
|
spells: {
|
||||||
|
'test': {
|
||||||
|
id: '',
|
||||||
|
name: '',
|
||||||
|
tradition: [''],
|
||||||
|
attributes: ['courage', 'agility', 'charisma'],
|
||||||
|
skillValue: 0,
|
||||||
|
aspCost: '',
|
||||||
|
castingTime: '',
|
||||||
|
range: '',
|
||||||
|
duration: '',
|
||||||
|
difficulty: 0,
|
||||||
|
description: '',
|
||||||
|
effect: '',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
astralEnergy: { // ← Neu hinzugefügt für Zauberer
|
traditions: [],
|
||||||
max: 0,
|
astralEnergy: {
|
||||||
current: 0
|
max: 0,
|
||||||
|
current: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
karmal: {
|
||||||
|
spells: {
|
||||||
|
'test': {
|
||||||
|
id: '',
|
||||||
|
name: '',
|
||||||
|
tradition: [''],
|
||||||
|
attributes: ['courage', 'agility', 'charisma'],
|
||||||
|
skillValue: 0,
|
||||||
|
aspCost: '',
|
||||||
|
castingTime: '',
|
||||||
|
range: '',
|
||||||
|
duration: '',
|
||||||
|
difficulty: 0,
|
||||||
|
description: '',
|
||||||
|
effect: '',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
magicalTraditions: [], // ← Neu hinzugefügt
|
traditions: [],
|
||||||
advantages: [],
|
karmalEnergy: {
|
||||||
disadvantages: [],
|
max: 0,
|
||||||
equipment: []
|
current: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
hasKarmal: false,
|
||||||
|
hasMagic: false,
|
||||||
|
combat: {
|
||||||
|
initiative: 10,
|
||||||
|
speed: 8,
|
||||||
|
armor: {
|
||||||
|
'leather': {
|
||||||
|
encumbrance: 0,
|
||||||
|
equip: {
|
||||||
|
name: 'hello',
|
||||||
|
weight: 0
|
||||||
|
},
|
||||||
|
penalties: 0,
|
||||||
|
protection: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
combatAbilities: {
|
||||||
|
'test': {
|
||||||
|
name: 'test'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
dodge: 0,
|
||||||
|
meleeWeapons: {
|
||||||
|
'test': {
|
||||||
|
weapon: {
|
||||||
|
equip: {
|
||||||
|
name: 'test',
|
||||||
|
weight: 0
|
||||||
|
},
|
||||||
|
range: 0,
|
||||||
|
technique: 'test',
|
||||||
|
tp: 0
|
||||||
|
},
|
||||||
|
atpamod: 0,
|
||||||
|
at: 0,
|
||||||
|
damagebonus: 0,
|
||||||
|
pa: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
rangedWeapons: {
|
||||||
|
'javelin': {
|
||||||
|
weapon: {
|
||||||
|
equip: {
|
||||||
|
name: '',
|
||||||
|
weight: 0
|
||||||
|
},
|
||||||
|
technique: '',
|
||||||
|
tp: 0,
|
||||||
|
range: 0,
|
||||||
|
},
|
||||||
|
reloaddur: 0,
|
||||||
|
ammo: {
|
||||||
|
equip: {
|
||||||
|
name: '',
|
||||||
|
weight: 0
|
||||||
|
},
|
||||||
|
perUse: 0,
|
||||||
|
count: 0
|
||||||
|
},
|
||||||
|
rangedCombat: 0,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
unarmedAttack: 0,
|
||||||
|
unarmedParry: 0
|
||||||
|
},
|
||||||
|
advantages: [],
|
||||||
|
disadvantages: [],
|
||||||
|
equipment: [],
|
||||||
|
resistances: {
|
||||||
|
spirit: {
|
||||||
|
base: 0,
|
||||||
|
modifier: 0,
|
||||||
|
purchased: 0,
|
||||||
|
max: 0,
|
||||||
|
current: 0
|
||||||
|
},
|
||||||
|
thoughness: {
|
||||||
|
base: 0,
|
||||||
|
modifier: 0,
|
||||||
|
purchased: 0,
|
||||||
|
max: 0,
|
||||||
|
current: 0,
|
||||||
|
},
|
||||||
|
dodge: {
|
||||||
|
base: 0,
|
||||||
|
modifier: 0,
|
||||||
|
purchased: 0,
|
||||||
|
max: 0,
|
||||||
|
current: 0
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const CharacterSheet: React.FC = () => {
|
const CharacterSheet: React.FC = () => {
|
||||||
const { t } = useTranslation();
|
const {t} = useTranslation();
|
||||||
const [character, setCharacter] = useState<DSACharacter>(initialCharacter);
|
const [character, setCharacter] = useState<DSACharacter>(initialCharacter);
|
||||||
|
|
||||||
// Hilfsfunktion um zu prüfen ob Charakter Zauberer ist
|
// Hilfsfunktion um zu prüfen ob Charakter Zauberer ist
|
||||||
const isSpellcaster = character.astralEnergy && character.astralEnergy.max > 0;
|
const isSpellcaster = character.astral.astralEnergy && character.astral.astralEnergy.max > 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="character-sheet">
|
<div className="character-sheet">
|
||||||
<ThemeToggle />
|
<ThemeToggle/>
|
||||||
<LanguageSelector />
|
<LanguageSelector/>
|
||||||
|
|
||||||
<header className="character-sheet-header">
|
<header className="character-sheet-header">
|
||||||
<img
|
<img
|
||||||
src={iconUrl}
|
src={iconUrl}
|
||||||
alt={t('app.iconAlt')}
|
alt={t('app.iconAlt')}
|
||||||
className="character-sheet-icon"
|
className="character-sheet-icon"
|
||||||
/>
|
/>
|
||||||
<h1>{t('app.title')}</h1>
|
<h1>{t('app.title')}</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{/* Grundinformationen */}
|
{/* Grundinformationen */}
|
||||||
<BasicInfo character={character} setCharacter={setCharacter} />
|
<BasicInfo character={character} setCharacter={setCharacter}/>
|
||||||
|
|
||||||
{/* Eigenschaften */}
|
{/* Eigenschaften */}
|
||||||
<Attributes character={character} setCharacter={setCharacter} />
|
<Attributes character={character} setCharacter={setCharacter}/>
|
||||||
|
|
||||||
{/* Kampfwerte */}
|
{/* Kampfwerte */}
|
||||||
<CombatValues character={character} setCharacter={setCharacter} />
|
<CombatValues character={character} setCharacter={setCharacter}/>
|
||||||
|
|
||||||
{/* Fertigkeiten */}
|
{/* Fertigkeiten */}
|
||||||
<Skills character={character} setCharacter={setCharacter} />
|
<Skills character={character} setCharacter={setCharacter}/>
|
||||||
|
|
||||||
{/* Würfel-Integration - kommt nach Skills */}
|
{/* Zauber - nur anzeigen wenn Astralenergie > 0 oder explizit gewünscht */}
|
||||||
<DSADiceRoller character={character} />
|
{(isSpellcaster || Object.keys(character.astral.spells).length > 0) && (
|
||||||
|
<Spells character={character} setCharacter={setCharacter}/>
|
||||||
{/* Zauber - nur anzeigen wenn Astralenergie > 0 oder explizit gewünscht */}
|
)}
|
||||||
{(isSpellcaster || Object.keys(character.spells).length > 0) && (
|
|
||||||
<Spells character={character} setCharacter={setCharacter} />
|
{/* Button zum Hinzufügen von Zaubern falls noch kein Zauberer */}
|
||||||
)}
|
{!isSpellcaster && Object.keys(character.astral.spells).length === 0 && (
|
||||||
|
<div className="add-magic-section">
|
||||||
{/* Button zum Hinzufügen von Zaubern falls noch kein Zauberer */}
|
<button
|
||||||
{!isSpellcaster && Object.keys(character.spells).length === 0 && (
|
className="add-magic-button"
|
||||||
<div className="add-magic-section">
|
onClick={() => setCharacter(prev => ({
|
||||||
<button
|
...prev,
|
||||||
className="add-magic-button"
|
astralEnergy: {max: 20, current: 20}
|
||||||
onClick={() => setCharacter(prev => ({
|
}))}
|
||||||
...prev,
|
>
|
||||||
astralEnergy: { max: 20, current: 20 }
|
{t('spells.addMagic')}
|
||||||
}))}
|
</button>
|
||||||
>
|
</div>
|
||||||
{t('spells.addMagic')}
|
)}
|
||||||
</button>
|
</div>
|
||||||
</div>
|
);
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default CharacterSheet;
|
export default CharacterSheet;
|
||||||
|
@@ -7,7 +7,7 @@ interface CombatValuesProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const CombatValues: React.FC<CombatValuesProps> = ({ character, setCharacter }) => {
|
const CombatValues: React.FC<CombatValuesProps> = ({ character, setCharacter }) => {
|
||||||
const updateCombatValue = (category: 'lifePoints' | 'stamina' | 'astralEnergy',
|
const updateCombatValue = (category: 'lifePoints' | 'astralEnergy',
|
||||||
field: 'max' | 'current',
|
field: 'max' | 'current',
|
||||||
value: number) => {
|
value: number) => {
|
||||||
setCharacter(prev => ({
|
setCharacter(prev => ({
|
||||||
@@ -62,32 +62,6 @@ const CombatValues: React.FC<CombatValuesProps> = ({ character, setCharacter })
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="combat-group">
|
|
||||||
<h3>Stamina</h3>
|
|
||||||
<div className="value-pair">
|
|
||||||
<div>
|
|
||||||
<label htmlFor="stamina-current">Current</label>
|
|
||||||
<input
|
|
||||||
id="stamina-current"
|
|
||||||
type="number"
|
|
||||||
value={character.combat.stamina.current}
|
|
||||||
onChange={(e) => updateCombatValue('stamina', 'current', parseInt(e.target.value) || 0)}
|
|
||||||
min="0"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<label htmlFor="stamina-max">Maximum</label>
|
|
||||||
<input
|
|
||||||
id="stamina-max"
|
|
||||||
type="number"
|
|
||||||
value={character.combat.stamina.max}
|
|
||||||
onChange={(e) => updateCombatValue('stamina', 'max', parseInt(e.target.value) || 0)}
|
|
||||||
min="0"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="combat-simple">
|
<div className="combat-simple">
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="initiative">Initiative</label>
|
<label htmlFor="initiative">Initiative</label>
|
||||||
|
@@ -1,199 +0,0 @@
|
|||||||
import React, { useState } from 'react';
|
|
||||||
import type { DSACharacter, DSASkill, DSASpell } from '../types/character';
|
|
||||||
import { useTaleSpireDice } from '../hooks/useTaleSpireDice';
|
|
||||||
|
|
||||||
interface DSADiceRollerProps {
|
|
||||||
character: DSACharacter;
|
|
||||||
}
|
|
||||||
|
|
||||||
const DSADiceRoller: React.FC<DSADiceRollerProps> = ({ character }) => {
|
|
||||||
const { rollDSACheck, rollSimpleDice, isAvailable } = useTaleSpireDice();
|
|
||||||
const [modifier, setModifier] = useState(0);
|
|
||||||
const [lastResult, setLastResult] = useState<any>(null);
|
|
||||||
|
|
||||||
const rollAttributeCheck = async (attributeKey: keyof typeof character.attributes) => {
|
|
||||||
const attributeValue = character.attributes[attributeKey];
|
|
||||||
try {
|
|
||||||
const result = await rollDSACheck(
|
|
||||||
[attributeValue, attributeValue, attributeValue],
|
|
||||||
0,
|
|
||||||
modifier,
|
|
||||||
`${attributeKey.toUpperCase()} Probe`
|
|
||||||
);
|
|
||||||
setLastResult(result);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Dice roll failed:', error);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const rollSkillCheck = async (skill: DSASkill) => {
|
|
||||||
const [attr1, attr2, attr3] = skill.attributes;
|
|
||||||
const attributes: [number, number, number] = [
|
|
||||||
character.attributes[attr1],
|
|
||||||
character.attributes[attr2],
|
|
||||||
character.attributes[attr3]
|
|
||||||
];
|
|
||||||
|
|
||||||
try {
|
|
||||||
const result = await rollDSACheck(
|
|
||||||
attributes,
|
|
||||||
skill.value,
|
|
||||||
modifier,
|
|
||||||
`${skill.name} Probe`
|
|
||||||
);
|
|
||||||
setLastResult(result);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Skill roll failed:', error);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const rollSpellCheck = async (spell: DSASpell) => {
|
|
||||||
const [attr1, attr2, attr3] = spell.attributes;
|
|
||||||
const attributes: [number, number, number] = [
|
|
||||||
character.attributes[attr1],
|
|
||||||
character.attributes[attr2],
|
|
||||||
character.attributes[attr3]
|
|
||||||
];
|
|
||||||
|
|
||||||
try {
|
|
||||||
const result = await rollDSACheck(
|
|
||||||
attributes,
|
|
||||||
spell.skillValue,
|
|
||||||
modifier + spell.difficulty,
|
|
||||||
`${spell.name} Zauberprobe`
|
|
||||||
);
|
|
||||||
setLastResult(result);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Spell roll failed:', error);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const rollInitiative = async () => {
|
|
||||||
try {
|
|
||||||
const result = await rollSimpleDice('1d6', 'Initiative');
|
|
||||||
const total = result.total + character.combat.initiative;
|
|
||||||
setLastResult({ ...result, total, type: 'initiative' });
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Initiative roll failed:', error);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="dsa-dice-roller section">
|
|
||||||
<h2>🎲 Würfelproben</h2>
|
|
||||||
|
|
||||||
{!isAvailable && (
|
|
||||||
<div className="dice-warning">
|
|
||||||
⚠️ TaleSpire Dice API nicht verfügbar - Development Mode aktiv
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Modifikator */}
|
|
||||||
<div className="modifier-section">
|
|
||||||
<label htmlFor="modifier">Modifikator:</label>
|
|
||||||
<input
|
|
||||||
id="modifier"
|
|
||||||
type="number"
|
|
||||||
value={modifier}
|
|
||||||
onChange={(e) => setModifier(parseInt(e.target.value) || 0)}
|
|
||||||
min="-10"
|
|
||||||
max="10"
|
|
||||||
className="modifier-input"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Letztes Ergebnis */}
|
|
||||||
{lastResult && (
|
|
||||||
<div className={`last-result ${lastResult.success ? 'success' : 'failure'}`}>
|
|
||||||
<h3>Letztes Ergebnis:</h3>
|
|
||||||
<div className="result-details">
|
|
||||||
<div>Würfel: {lastResult.dice?.join(', ')}</div>
|
|
||||||
{lastResult.type === 'initiative' ? (
|
|
||||||
<div>Initiative: {lastResult.total}</div>
|
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<div>{lastResult.success ? '✅ Erfolg' : '❌ Fehlschlag'}</div>
|
|
||||||
{lastResult.success && (
|
|
||||||
<div>Qualitätsstufe: {lastResult.qualityLevel}</div>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Eigenschaften */}
|
|
||||||
<div className="dice-section">
|
|
||||||
<h3>Eigenschaftsproben</h3>
|
|
||||||
<div className="dice-buttons">
|
|
||||||
{Object.entries(character.attributes).map(([key, value]) => (
|
|
||||||
<button
|
|
||||||
key={key}
|
|
||||||
onClick={() => rollAttributeCheck(key as keyof typeof character.attributes)}
|
|
||||||
className="dice-button attribute-button"
|
|
||||||
>
|
|
||||||
{key.substring(0, 2).toUpperCase()} ({value})
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Fertigkeiten */}
|
|
||||||
{Object.keys(character.skills).length > 0 && (
|
|
||||||
<div className="dice-section">
|
|
||||||
<h3>Fertigkeitsproben</h3>
|
|
||||||
<div className="dice-buttons">
|
|
||||||
{Object.values(character.skills).slice(0, 6).map((skill) => (
|
|
||||||
<button
|
|
||||||
key={skill.name}
|
|
||||||
onClick={() => rollSkillCheck(skill)}
|
|
||||||
className="dice-button skill-button"
|
|
||||||
>
|
|
||||||
{skill.name} (FW {skill.value})
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Zauberproben */}
|
|
||||||
{Object.keys(character.spells).length > 0 && (
|
|
||||||
<div className="dice-section">
|
|
||||||
<h3>Zauberproben</h3>
|
|
||||||
<div className="dice-buttons">
|
|
||||||
{Object.values(character.spells).slice(0, 4).map((spell) => (
|
|
||||||
<button
|
|
||||||
key={spell.name}
|
|
||||||
onClick={() => rollSpellCheck(spell)}
|
|
||||||
className="dice-button spell-button"
|
|
||||||
>
|
|
||||||
{spell.name} (FW {spell.skillValue})
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Kampf */}
|
|
||||||
<div className="dice-section">
|
|
||||||
<h3>Kampfwürfe</h3>
|
|
||||||
<div className="dice-buttons">
|
|
||||||
<button
|
|
||||||
onClick={rollInitiative}
|
|
||||||
className="dice-button combat-button"
|
|
||||||
>
|
|
||||||
Initiative (INI {character.combat.initiative})
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
onClick={() => rollSimpleDice('1d6', 'Schaden')}
|
|
||||||
className="dice-button combat-button"
|
|
||||||
>
|
|
||||||
Schaden (1W6)
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default DSADiceRoller;
|
|
91
src/data/combattechniques.json
Normal file
91
src/data/combattechniques.json
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
{
|
||||||
|
"combat_techniques": {
|
||||||
|
"page_ref": "p. 214-231",
|
||||||
|
"techniques": [
|
||||||
|
{
|
||||||
|
"name": "Bows",
|
||||||
|
"primary": ["DEX"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "ranged"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Brawling",
|
||||||
|
"primary": ["AGI", "STR"],
|
||||||
|
"improvement": "B",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Chain Weapons",
|
||||||
|
"primary": ["STR"],
|
||||||
|
"improvement": "B",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Crossbows",
|
||||||
|
"primary": ["DEX"],
|
||||||
|
"improvement": "B",
|
||||||
|
"type": "ranged"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Daggers",
|
||||||
|
"primary": ["AGI"],
|
||||||
|
"improvement": "B",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fencing Weapons",
|
||||||
|
"primary": ["AGI"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Impact Weapons",
|
||||||
|
"primary": ["STR"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Lances",
|
||||||
|
"primary": ["STR"],
|
||||||
|
"improvement": "B",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Pole Weapons",
|
||||||
|
"primary": ["AGI", "STR"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Shields",
|
||||||
|
"primary": ["STR"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "defensive"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Swords",
|
||||||
|
"primary": ["AGI", "STR"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Thrown Weapons",
|
||||||
|
"primary": ["DEX"],
|
||||||
|
"improvement": "B",
|
||||||
|
"type": "ranged"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Two-Handed Impact Weapons",
|
||||||
|
"primary": ["STR"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "melee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Two-Handed Swords",
|
||||||
|
"primary": ["STR"],
|
||||||
|
"improvement": "C",
|
||||||
|
"type": "melee"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
87
src/data/improvementcosttable.json
Normal file
87
src/data/improvementcosttable.json
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
{
|
||||||
|
"A": {
|
||||||
|
"0": 1,
|
||||||
|
"1-12": 1,
|
||||||
|
"13": 2,
|
||||||
|
"14": 3,
|
||||||
|
"15": 4,
|
||||||
|
"16": 5,
|
||||||
|
"17": 6,
|
||||||
|
"18": 7,
|
||||||
|
"19": 8,
|
||||||
|
"20": 9,
|
||||||
|
"21": 10,
|
||||||
|
"22": 11,
|
||||||
|
"23": 12,
|
||||||
|
"24": 13,
|
||||||
|
"25": 14
|
||||||
|
},
|
||||||
|
"B": {
|
||||||
|
"0": 2,
|
||||||
|
"1-12": 2,
|
||||||
|
"13": 4,
|
||||||
|
"14": 6,
|
||||||
|
"15": 8,
|
||||||
|
"16": 10,
|
||||||
|
"17": 12,
|
||||||
|
"18": 14,
|
||||||
|
"19": 16,
|
||||||
|
"20": 18,
|
||||||
|
"21": 20,
|
||||||
|
"22": 22,
|
||||||
|
"23": 24,
|
||||||
|
"24": 26,
|
||||||
|
"25": 28
|
||||||
|
},
|
||||||
|
"C": {
|
||||||
|
"0": 3,
|
||||||
|
"1-12": 3,
|
||||||
|
"13": 6,
|
||||||
|
"14": 9,
|
||||||
|
"15": 12,
|
||||||
|
"16": 15,
|
||||||
|
"17": 18,
|
||||||
|
"18": 21,
|
||||||
|
"19": 24,
|
||||||
|
"20": 27,
|
||||||
|
"21": 30,
|
||||||
|
"22": 33,
|
||||||
|
"23": 36,
|
||||||
|
"24": 39,
|
||||||
|
"25": 42
|
||||||
|
},
|
||||||
|
"D": {
|
||||||
|
"0": 4,
|
||||||
|
"1-12": 4,
|
||||||
|
"13": 8,
|
||||||
|
"14": 12,
|
||||||
|
"15": 16,
|
||||||
|
"16": 20,
|
||||||
|
"17": 24,
|
||||||
|
"18": 28,
|
||||||
|
"19": 32,
|
||||||
|
"20": 36,
|
||||||
|
"21": 40,
|
||||||
|
"22": 44,
|
||||||
|
"23": 48,
|
||||||
|
"24": 52,
|
||||||
|
"25": 56
|
||||||
|
},
|
||||||
|
"E": {
|
||||||
|
"0": null,
|
||||||
|
"1-12": 15,
|
||||||
|
"13": 15,
|
||||||
|
"14": 15,
|
||||||
|
"15": 30,
|
||||||
|
"16": 45,
|
||||||
|
"17": 60,
|
||||||
|
"18": 75,
|
||||||
|
"19": 90,
|
||||||
|
"20": 105,
|
||||||
|
"21": 120,
|
||||||
|
"22": 135,
|
||||||
|
"23": 150,
|
||||||
|
"24": 165,
|
||||||
|
"25": 180
|
||||||
|
}
|
||||||
|
}
|
381
src/data/skills.json
Normal file
381
src/data/skills.json
Normal file
@@ -0,0 +1,381 @@
|
|||||||
|
{
|
||||||
|
"physical_skills": {
|
||||||
|
"page_ref": "p. 188-192",
|
||||||
|
"skills": [
|
||||||
|
{
|
||||||
|
"name": "Body Control",
|
||||||
|
"check": ["AGI", "AGI", "CON"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "D"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Carousing",
|
||||||
|
"check": ["SGC", "CON", "STR"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Climbing",
|
||||||
|
"check": ["COU", "AGI", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Dancing",
|
||||||
|
"check": ["SGC", "CHA", "AGI"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Feat of Strength",
|
||||||
|
"check": ["COU", "STR", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Flying",
|
||||||
|
"check": ["COU", "INT", "AGI"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Gaukelei",
|
||||||
|
"check": ["COU", "CHA", "DEX"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Perception",
|
||||||
|
"check": ["SGC", "INT", "INT"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "D"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Pickpocket",
|
||||||
|
"check": ["COU", "DEX", "AGI"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Riding",
|
||||||
|
"check": ["CHA", "AGI", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Self-Control",
|
||||||
|
"check": ["COU", "COU", "CON"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "D"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Singing",
|
||||||
|
"check": ["SGC", "CHA", "CON"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Stealth",
|
||||||
|
"check": ["COU", "INT", "AGI"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Swimming",
|
||||||
|
"check": ["AGI", "CON", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"social_skills": {
|
||||||
|
"page_ref": "p. 193-197",
|
||||||
|
"skills": [
|
||||||
|
{
|
||||||
|
"name": "Disguise",
|
||||||
|
"check": ["INT", "CHA", "AGI"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Empathy",
|
||||||
|
"check": ["SGC", "INT", "CHA"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Etiquette",
|
||||||
|
"check": ["SGC", "INT", "CHA"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fast-Talk",
|
||||||
|
"check": ["COU", "INT", "CHA"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Intimidation",
|
||||||
|
"check": ["COU", "INT", "CHA"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Persuasion",
|
||||||
|
"check": ["COU", "SGC", "CHA"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Seduction",
|
||||||
|
"check": ["COU", "CHA", "CHA"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Streetwise",
|
||||||
|
"check": ["SGC", "INT", "CHA"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Willpower",
|
||||||
|
"check": ["COU", "INT", "CHA"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "D"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"knowledge_skills": {
|
||||||
|
"page_ref": "p. 201-205",
|
||||||
|
"skills": [
|
||||||
|
{
|
||||||
|
"name": "Astronomy",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Gambling",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Geography",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "History",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Law",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Magical Lore",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Math",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Mechanics",
|
||||||
|
"check": ["SGC", "SGC", "DEX"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Myths & Legends",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Religions",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sphere Lore",
|
||||||
|
"check": ["SGC", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Warfare",
|
||||||
|
"check": ["COU", "SGC", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"nature_skills": {
|
||||||
|
"page_ref": "p. 198-200",
|
||||||
|
"skills": [
|
||||||
|
{
|
||||||
|
"name": "Animal Lore",
|
||||||
|
"check": ["COU", "COU", "CHA"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fishing",
|
||||||
|
"check": ["DEX", "AGI", "CON"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Orienting",
|
||||||
|
"check": ["SGC", "INT", "INT"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Plant Lore",
|
||||||
|
"check": ["SGC", "DEX", "CON"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Ropes",
|
||||||
|
"check": ["SGC", "DEX", "STR"],
|
||||||
|
"enc": "maybe",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Survival",
|
||||||
|
"check": ["COU", "AGI", "CON"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Tracking",
|
||||||
|
"check": ["COU", "INT", "AGI"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "C"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"craft_skills": {
|
||||||
|
"page_ref": "p. 206-213",
|
||||||
|
"skills": [
|
||||||
|
{
|
||||||
|
"name": "Alchemy",
|
||||||
|
"check": ["COU", "SGC", "DEX"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Artistic Ability",
|
||||||
|
"check": ["INT", "DEX", "DEX"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Clothworking",
|
||||||
|
"check": ["SGC", "DEX", "DEX"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Commerce",
|
||||||
|
"check": ["SGC", "INT", "CHA"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Driving",
|
||||||
|
"check": ["CHA", "DEX", "CON"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Earthencraft",
|
||||||
|
"check": ["DEX", "DEX", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Leatherworking",
|
||||||
|
"check": ["DEX", "AGI", "CON"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Metalworking",
|
||||||
|
"check": ["DEX", "CON", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Music",
|
||||||
|
"check": ["CHA", "DEX", "CON"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Pick Locks",
|
||||||
|
"check": ["INT", "DEX", "DEX"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "C"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Prepare Food",
|
||||||
|
"check": ["INT", "DEX", "DEX"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "A"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sailing",
|
||||||
|
"check": ["DEX", "AGI", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Treat Disease",
|
||||||
|
"check": ["COU", "INT", "CON"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Treat Poison",
|
||||||
|
"check": ["COU", "SGC", "INT"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Treat Soul",
|
||||||
|
"check": ["INT", "CHA", "CON"],
|
||||||
|
"enc": "no",
|
||||||
|
"improvement": "B"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Treat Wounds",
|
||||||
|
"check": ["SGC", "DEX", "DEX"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "D"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Woodworking",
|
||||||
|
"check": ["DEX", "AGI", "STR"],
|
||||||
|
"enc": "yes",
|
||||||
|
"improvement": "B"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@@ -14,6 +14,12 @@
|
|||||||
"culturePlaceholder": "z.B. Mittelländisch, Thorwalsch",
|
"culturePlaceholder": "z.B. Mittelländisch, Thorwalsch",
|
||||||
"profession": "Profession",
|
"profession": "Profession",
|
||||||
"professionPlaceholder": "z.B. Krieger, Magier, Kundschafter",
|
"professionPlaceholder": "z.B. Krieger, Magier, Kundschafter",
|
||||||
|
"socialstatus": "Sozialstatus",
|
||||||
|
"socialstatusPlaceholder": "z.B. Unfrei, Bürger, Adel",
|
||||||
|
"hometown": "Heimatort",
|
||||||
|
"hometownPlaceholder": "Geburts- oder Heimatort",
|
||||||
|
"family": "Familie",
|
||||||
|
"familyPlaceholder": "Familienstand und Verwandtschaft",
|
||||||
"experienceLevel": "Erfahrungsstufe",
|
"experienceLevel": "Erfahrungsstufe",
|
||||||
"experienceLevels": {
|
"experienceLevels": {
|
||||||
"inexperienced": "Unerfahren",
|
"inexperienced": "Unerfahren",
|
||||||
@@ -25,6 +31,21 @@
|
|||||||
"legendary": "Legendär"
|
"legendary": "Legendär"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"appearance": {
|
||||||
|
"title": "Aussehen",
|
||||||
|
"age": "Alter",
|
||||||
|
"agePlaceholder": "Alter in Jahren",
|
||||||
|
"haircolor": "Haarfarbe",
|
||||||
|
"haircolorPlaceholder": "z.B. Braun, Blond, Schwarz",
|
||||||
|
"eyecolor": "Augenfarbe",
|
||||||
|
"eyecolorPlaceholder": "z.B. Braun, Blau, Grün",
|
||||||
|
"height": "Größe",
|
||||||
|
"heightPlaceholder": "Größe in cm",
|
||||||
|
"weight": "Gewicht",
|
||||||
|
"weightPlaceholder": "Gewicht in kg",
|
||||||
|
"characteristics": "Besondere Merkmale",
|
||||||
|
"characteristicsPlaceholder": "Narben, Tätowierungen, etc."
|
||||||
|
},
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"title": "Eigenschaften",
|
"title": "Eigenschaften",
|
||||||
"courage": "MU - Mut",
|
"courage": "MU - Mut",
|
||||||
@@ -39,16 +60,62 @@
|
|||||||
"combat": {
|
"combat": {
|
||||||
"title": "Kampfwerte",
|
"title": "Kampfwerte",
|
||||||
"lifePoints": "Lebenspunkte",
|
"lifePoints": "Lebenspunkte",
|
||||||
"stamina": "Ausdauer",
|
"astralEnergy": "Astralpunkte",
|
||||||
"initiative": "Initiative",
|
"initiative": "Initiative",
|
||||||
"speed": "Geschwindigkeit"
|
"speed": "Geschwindigkeit",
|
||||||
|
"max": "Max",
|
||||||
|
"current": "Aktuell"
|
||||||
},
|
},
|
||||||
"skills": {
|
"skills": {
|
||||||
"title": "Fertigkeiten"
|
"title": "Fertigkeiten",
|
||||||
|
"skillValue": "FW",
|
||||||
|
"addSkill": "Fertigkeit hinzufügen"
|
||||||
|
},
|
||||||
|
"advantages": {
|
||||||
|
"title": "Vorteile",
|
||||||
|
"addAdvantage": "Vorteil hinzufügen"
|
||||||
|
},
|
||||||
|
"disadvantages": {
|
||||||
|
"title": "Nachteile",
|
||||||
|
"addDisadvantage": "Nachteil hinzufügen"
|
||||||
|
},
|
||||||
|
"equipment": {
|
||||||
|
"title": "Ausrüstung",
|
||||||
|
"addEquipment": "Ausrüstung hinzufügen"
|
||||||
},
|
},
|
||||||
"spells": {
|
"spells": {
|
||||||
"title": "Zauber",
|
"title": "Zauber",
|
||||||
"addMagic": "🪄 Zauberfähigkeiten hinzufügen"
|
"addMagic": "Zauberfähigkeiten hinzufügen",
|
||||||
|
"addSpell": "Zauber hinzufügen",
|
||||||
|
"magicalTraditions": "Magische Traditionen",
|
||||||
|
"tradition": "Tradition",
|
||||||
|
"skillValue": "ZfW - Zauberfertigkeit",
|
||||||
|
"aspCost": "AsP-Kosten",
|
||||||
|
"castingTime": "Zauberdauer",
|
||||||
|
"range": "Reichweite",
|
||||||
|
"duration": "Wirkungsdauer",
|
||||||
|
"difficulty": "Erschwernis",
|
||||||
|
"description": "Beschreibung",
|
||||||
|
"effect": "Wirkung",
|
||||||
|
"traditions": {
|
||||||
|
"gildenmagier": "Gildenmagier",
|
||||||
|
"hexe": "Hexe",
|
||||||
|
"druide": "Druide",
|
||||||
|
"elf": "Elf",
|
||||||
|
"scharlatane": "Scharlatane",
|
||||||
|
"zauberbarde": "Zauberbarde",
|
||||||
|
"zaubertänzer": "Zaubertänzer",
|
||||||
|
"intuitivezauberer": "Intuitive Zauberer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"common": {
|
||||||
|
"save": "Speichern",
|
||||||
|
"cancel": "Abbrechen",
|
||||||
|
"edit": "Bearbeiten",
|
||||||
|
"delete": "Löschen",
|
||||||
|
"add": "Hinzufügen",
|
||||||
|
"close": "Schließen",
|
||||||
|
"confirm": "Bestätigen"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -48,7 +48,7 @@
|
|||||||
},
|
},
|
||||||
"spells": {
|
"spells": {
|
||||||
"title": "Spells",
|
"title": "Spells",
|
||||||
"addMagic": "🪄 Add Magic Abilities"
|
"addMagic": "Add Magic Abilities"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
36
src/types/abilities.ts
Normal file
36
src/types/abilities.ts
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
import type {DSAAttributes} from "./baseCharacter.ts";
|
||||||
|
import type {DSABelastungen, DSAImprovements} from "./baseDSA.ts";
|
||||||
|
|
||||||
|
export interface DSABaseAbility {
|
||||||
|
name: string
|
||||||
|
steigerungsfaktor: DSAImprovements
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSASkill extends DSABaseAbility {
|
||||||
|
attributes: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes]
|
||||||
|
fertigkeitswert: number
|
||||||
|
belastung: DSABelastungen
|
||||||
|
anmerkung: string
|
||||||
|
routineProbe: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSACombatTechnique extends DSABaseAbility {
|
||||||
|
primaryAttribute: keyof DSAAttributes
|
||||||
|
kampftechnikwert: number
|
||||||
|
hitcheck: number
|
||||||
|
paradecheck: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSASpell {
|
||||||
|
name: string
|
||||||
|
check: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes]
|
||||||
|
skilllevel: number
|
||||||
|
cost: number
|
||||||
|
timeInSec: number
|
||||||
|
range: number
|
||||||
|
duration: number
|
||||||
|
property: string
|
||||||
|
improvement: DSAImprovements
|
||||||
|
effect: string[]
|
||||||
|
special: boolean
|
||||||
|
}
|
55
src/types/baseCharacter.ts
Normal file
55
src/types/baseCharacter.ts
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
import type {DSABelastungen, DSACalculatedValue} from "./baseDSA.ts";
|
||||||
|
|
||||||
|
export interface DSAAttributes {
|
||||||
|
courage: number;
|
||||||
|
cleverness: number;
|
||||||
|
intuition: number;
|
||||||
|
charisma: number;
|
||||||
|
dexterity: number;
|
||||||
|
agility: number;
|
||||||
|
constitution: number;
|
||||||
|
strength: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAPersonalData {
|
||||||
|
name: string;
|
||||||
|
sex?: 'm' | 'w' | 'd';
|
||||||
|
species: string;
|
||||||
|
culture: string;
|
||||||
|
profession: string;
|
||||||
|
socialStanding: string;
|
||||||
|
hometown: string;
|
||||||
|
placeOfBirth?: string;
|
||||||
|
family: string;
|
||||||
|
age: string;
|
||||||
|
birthdate?: string;
|
||||||
|
hairColor?: string;
|
||||||
|
eyeColor?: string;
|
||||||
|
height?: string;
|
||||||
|
weight?: string;
|
||||||
|
characteristics?: string[];
|
||||||
|
image?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAStats {
|
||||||
|
lifePoints: {
|
||||||
|
value: DSACalculatedValue;
|
||||||
|
pain: number;
|
||||||
|
fatigue: number;
|
||||||
|
}
|
||||||
|
conditions?: string[];
|
||||||
|
astralEnergy?: DSACalculatedValue;
|
||||||
|
karmaEnergy?: DSACalculatedValue;
|
||||||
|
spirit: DSACalculatedValue;
|
||||||
|
thoughness: DSACalculatedValue;
|
||||||
|
dodge: DSACalculatedValue;
|
||||||
|
initiative: number; //TODO function?
|
||||||
|
movement: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAExperienceLevel {
|
||||||
|
current: "Unerfahren" | "Durchschnittlich" | "Erfahren" | "Kompetent" | "Meisterlich" | "Brillant" | "Legendär"
|
||||||
|
apTotal: number
|
||||||
|
apAvailable: number
|
||||||
|
apSpent: number
|
||||||
|
}
|
11
src/types/baseDSA.ts
Normal file
11
src/types/baseDSA.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
export interface DSACalculatedValue {
|
||||||
|
base: number;
|
||||||
|
modifier: number;
|
||||||
|
purchased?: number;
|
||||||
|
max: number;
|
||||||
|
current: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DSAImprovements = 'A' | 'B' | 'C' | 'D' | 'E' | 'other'
|
||||||
|
|
||||||
|
export type DSABelastungen = 'JA' | 'NEIN' | 'EVTL';
|
11
src/types/baseEquiment.ts
Normal file
11
src/types/baseEquiment.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
export interface DSABaseEquiment {
|
||||||
|
name: string;
|
||||||
|
weight: number;
|
||||||
|
carriedWhere: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSABaseWeapon extends DSABaseEquiment {
|
||||||
|
technique: string;
|
||||||
|
tp: number;
|
||||||
|
range: number;
|
||||||
|
}
|
@@ -1,69 +1,80 @@
|
|||||||
export interface DSAAttributes {
|
import type {DSAAttributes, DSAHealth, DSAPersonalData, DSAResistances} from "./baseCharacter.ts";
|
||||||
courage: number; // Mut
|
import type {DSAArmor, DSAMeleeWeapon, DSARangedWeapon, DSAShield} from "./equiment.ts";
|
||||||
cleverness: number; // Klugheit
|
import type {DSACombatTechnique} from "./abilities.ts";
|
||||||
intuition: number; // Intuition
|
import type {DSAFatePoints} from "./fatepoints.ts";
|
||||||
charisma: number; // Charisma
|
import type {DSABelastungen, DSAImprovements} from "./baseDSA.ts";
|
||||||
dexterity: number; // Fingerfertigkeit
|
|
||||||
agility: number; // Gewandtheit
|
|
||||||
constitution: number; // Konstitution
|
|
||||||
strength: number; // Körperkraft
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DSASkill {
|
export interface DSASkill {
|
||||||
name: string;
|
name: string
|
||||||
attributes: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes];
|
attributes: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes]
|
||||||
value: number;
|
fertigkeitswert: number
|
||||||
|
belastung: DSABelastungen
|
||||||
|
steigerungsfaktor: DSAImprovements
|
||||||
|
anmerkung: string
|
||||||
|
routineProbe: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DSACombatValues {
|
export interface DSACombatValues {
|
||||||
lifePoints: {
|
initiative: number;
|
||||||
max: number;
|
speed: number;
|
||||||
current: number;
|
dodge: number;
|
||||||
};
|
unarmedAttack: number;
|
||||||
stamina: {
|
unarmedParry: number;
|
||||||
max: number;
|
meleeWeapons: DSAMeleeWeapon[];
|
||||||
current: number;
|
rangedWeapons: DSARangedWeapon[];
|
||||||
};
|
armor: DSAArmor[];
|
||||||
|
shield: DSAShield[];
|
||||||
|
combatAbilities: Record<string, DSACombatTechnique>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAAstral {
|
||||||
astralEnergy?: {
|
astralEnergy?: {
|
||||||
max: number;
|
max: number;
|
||||||
current: number;
|
current: number;
|
||||||
};
|
};
|
||||||
initiative: number;
|
spells: Record<string, DSASpell>;
|
||||||
speed: number;
|
traditions: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAKarmal {
|
||||||
|
karmalEnergy?: {
|
||||||
|
max: number;
|
||||||
|
current: number;
|
||||||
|
}
|
||||||
|
spells: Record<string, DSASpell>;
|
||||||
|
traditions: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DSASpell {
|
export interface DSASpell {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
tradition: string[]; // Gildenmagier, Hexe, Druide, etc.
|
tradition: string[];
|
||||||
attributes: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes];
|
attributes: [keyof DSAAttributes, keyof DSAAttributes, keyof DSAAttributes];
|
||||||
skillValue: number; // FW - Fertigkeitswert
|
skillValue: number;
|
||||||
aspCost: string; // "4 AsP", "2 AsP pro Stufe"
|
aspCost: string;
|
||||||
castingTime: string; // "2 Aktionen", "5 Minuten"
|
castingTime: string;
|
||||||
range: string; // "Berührung", "7 Meter"
|
range: string;
|
||||||
duration: string; // "Sofort", "5 Minuten"
|
duration: string;
|
||||||
difficulty: number; // Erschwernis/Erleichterung
|
difficulty: number;
|
||||||
description: string;
|
description: string;
|
||||||
effect: string;
|
effect: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DSACharacter {
|
export interface DSACharacter {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
personalData: DSAPersonalData;
|
||||||
species: string; // Spezies
|
experienceLevel: string;
|
||||||
culture: string; // Kultur
|
|
||||||
profession: string; // Profession
|
|
||||||
experienceLevel: string; // Erfahrungsgrad
|
|
||||||
attributes: DSAAttributes;
|
attributes: DSAAttributes;
|
||||||
|
health: DSAHealth;
|
||||||
|
resistances: DSAResistances;
|
||||||
skills: Record<string, DSASkill>;
|
skills: Record<string, DSASkill>;
|
||||||
combat: DSACombatValues;
|
combat: DSACombatValues;
|
||||||
advantages: string[]; // Vorteile
|
advantages: string[];
|
||||||
disadvantages: string[]; // Nachteile
|
disadvantages: string[];
|
||||||
equipment: string[]; // Ausrüstung
|
equipment: string[];
|
||||||
astralEnergy?: {
|
hasMagic: boolean;
|
||||||
max: number;
|
astral: DSAAstral;
|
||||||
current: number;
|
hasKarmal: boolean;
|
||||||
};
|
karmal: DSAKarmal;
|
||||||
spells: Record<string, DSASpell>;
|
fatepoints: DSAFatePoints;
|
||||||
magicalTraditions: string[];
|
|
||||||
}
|
}
|
||||||
|
4
src/types/condition.ts
Normal file
4
src/types/condition.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export interface DSACondition {
|
||||||
|
condition: "confusion" | "encumbrance" | "fear" | "pain" | "paralysis" | "rapture" | "stupor";
|
||||||
|
level: 1 | 2 | 3 | 4;
|
||||||
|
}
|
32
src/types/equiment.ts
Normal file
32
src/types/equiment.ts
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import type {DSABaseEquiment, DSABaseWeapon} from "./baseEquiment.ts";
|
||||||
|
import type {DSACalculatedValue} from "./baseDSA.ts";
|
||||||
|
|
||||||
|
|
||||||
|
export interface DSAAmmonution extends DSABaseEquiment {
|
||||||
|
perUse: number;
|
||||||
|
count: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAMeleeWeapon extends DSABaseWeapon{
|
||||||
|
atpamod: number;
|
||||||
|
damagebonus: number;
|
||||||
|
at: number;
|
||||||
|
pa: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSARangedWeapon extends DSABaseWeapon{
|
||||||
|
reloaddur: number;
|
||||||
|
ammo: DSAAmmonution;
|
||||||
|
rangedCombat: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAArmor extends DSABaseEquiment{
|
||||||
|
protection: number;
|
||||||
|
encumbrance: number;
|
||||||
|
penalties: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DSAShieldParryWeapon extends DSABaseEquiment {
|
||||||
|
structure: DSACalculatedValue;
|
||||||
|
atpamod: number;
|
||||||
|
}
|
6
src/types/fatepoints.ts
Normal file
6
src/types/fatepoints.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export interface DSAFatePoints {
|
||||||
|
stats: number;
|
||||||
|
bonus: number;
|
||||||
|
max: number;
|
||||||
|
current: number;
|
||||||
|
}
|
Reference in New Issue
Block a user