refine ranged combat

This commit is contained in:
2026-05-16 21:35:35 +02:00
parent 866c0a9f2d
commit 97ba4bf478
7 changed files with 183 additions and 91 deletions
+16 -6
View File
@@ -1,3 +1,5 @@
import type { RangedWeaponId } from '$lib/rules/weapons-ranged';
/** Abilities (Sonderfertigkeiten, extensible); modifiers for melee and ranged combat */
export type AbilityDef = {
id: string;
@@ -5,6 +7,8 @@ export type AbilityDef = {
at_mod: number;
pa_mod: number;
fk_mod: number;
/** Nur für Talentspezialisierung: FK-Mod gilt nur für diese Fernkampfwaffe */
weapon_type?: RangedWeaponId;
};
export const ABILITIES: AbilityDef[] = [
@@ -55,42 +59,48 @@ export const ABILITIES: AbilityDef[] = [
name: 'Talentspezialisierung Bogen (Elfenbogen)',
at_mod: 0,
pa_mod: 0,
fk_mod: 2
fk_mod: 2,
weapon_type: 'elven_bow'
},
{
id: 'specialize_composite_bow',
name: 'Talentspezialisierung Bogen (Kompositbogen)',
at_mod: 0,
pa_mod: 0,
fk_mod: 2
fk_mod: 2,
weapon_type: 'composite_bow'
},
{
id: 'specialize_warbow',
name: 'Talentspezialisierung Bogen (Kriegsbogen)',
at_mod: 0,
pa_mod: 0,
fk_mod: 2
fk_mod: 2,
weapon_type: 'warbow'
},
{
id: 'specialize_shortbow',
name: 'Talentspezialisierung Bogen (Kurzbogen)',
at_mod: 0,
pa_mod: 0,
fk_mod: 2
fk_mod: 2,
weapon_type: 'shortbow'
},
{
id: 'specialize_longbow',
name: 'Talentspezialisierung Bogen (Langbogen)',
at_mod: 0,
pa_mod: 0,
fk_mod: 2
fk_mod: 2,
weapon_type: 'longbow'
},
{
id: 'specialize_orc_bow',
name: 'Talentspezialisierung Bogen (Ork. Reiterbogen)',
at_mod: 0,
pa_mod: 0,
fk_mod: 2
fk_mod: 2,
weapon_type: 'orc_bow'
}
];