27 lines
668 B
TypeScript
27 lines
668 B
TypeScript
|
// SPDX-FileCopyrightText: 2022 Johannes Loher
|
||
|
//
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
import { DS4 } from "../../config";
|
||
|
import {
|
||
|
DS4ItemDataSourceDataBase,
|
||
|
DS4ItemDataSourceDataEquipable,
|
||
|
DS4ItemDataSourceDataPhysical,
|
||
|
} from "../item-data-source-base";
|
||
|
|
||
|
export interface DS4WeaponDataSource {
|
||
|
type: "weapon";
|
||
|
data: DS4WeaponDataSourceData;
|
||
|
}
|
||
|
|
||
|
export interface DS4WeaponDataSourceData
|
||
|
extends DS4ItemDataSourceDataBase,
|
||
|
DS4ItemDataSourceDataPhysical,
|
||
|
DS4ItemDataSourceDataEquipable {
|
||
|
attackType: AttackType;
|
||
|
weaponBonus: number;
|
||
|
opponentDefense: number;
|
||
|
}
|
||
|
|
||
|
export type AttackType = keyof typeof DS4.i18n.attackTypes;
|