import { Component } from "../core/world";
import { component } from "../utils/decorators";
import { Stat } from "./stat";

@component
export class Defense extends Stat<{ damageType: string }> { }

@component
export class Damage extends Stat<{ damageType: string, minDamage?: number, variance?: number }> { }

@component
export class Crit extends Stat<{ chance: number }> { }

@component
export class Attacked extends Component<{ attackerId: string; sourceId: string | null }> { }