+import { TimePeriod } from './time';
+
export type Monster = {
- id: string;
+ id: number;
name: string;
strength: number;
dexterity: number;
armsAp: number;
legsAp: number;
maxHp: number;
+ location_id: number;
+ faction_id: number;
+ time_period: TimePeriod;
}
export type MonsterForList = {
- id: string;
+ id: number;
name: string;
level: number;
}
+export type FightTrigger = 'explore' | 'travel';
+
+export type Fight = Omit<Monster, 'id' | 'faction_id' | 'location_id'> & {
+ id: string,
+ player_id: string,
+ ref_id: number
+ fight_trigger: FightTrigger
+};
+
+export type MonsterWithFaction = Fight & {
+ faction_id: string;
+ faction_name: string;
+}
+
export type MonsterForFight = {
- id: string;
- name: string;
- level: number;
+ id: number | string;
hp: number;
maxHp: number;
+ name: string;
+ level: number;
+ fight_trigger: FightTrigger;
}
-
-export type Fight = Monster & { player_id: string };