2022-02-17 00:17:59 +01:00
|
|
|
// SPDX-FileCopyrightText: 2022 Johannes Loher
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-02-17 00:55:22 +01:00
|
|
|
import type { DS4 } from "../../config";
|
|
|
|
import type {
|
2022-02-17 00:17:59 +01:00
|
|
|
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;
|