import { Profession } from './profession';
-
+import { Stat } from './stats';
import { SkillDefinition, Skill } from './skills';
export type Player = {
gold: number;
hp: number;
city_id: number;
+ stat_points: number;
}
export type PlayerWithSkills = Player & {
}
}
+
+export type StatDisplay = {
+ id: Stat,
+ display: string;
+ abbrv: string;
+}
+
+export const StatDef: Map<Stat, StatDisplay> = new Map<Stat, StatDisplay>();
+
+StatDef.set(Stat.strength, {
+ id: Stat.strength,
+ display: 'Strength',
+ abbrv: 'STR'
+});
+
+StatDef.set(Stat.constitution, {
+ id: Stat.constitution,
+ display: 'Constitution',
+ abbrv: 'CON'
+});
+
+StatDef.set(Stat.dexterity, {
+ id: Stat.dexterity,
+ display: 'Dexterity',
+ abbrv: 'DEX'
+});
+
+StatDef.set(Stat.intelligence, {
+ id: Stat.intelligence,
+ display: 'Intelligence',
+ abbrv: 'INT'
+});
-export type Stats = 'strength' | 'constitution' | 'intelligence' | 'dexterity';
+export enum Stat {
+ strength = 'strength',
+ constitution = 'constitution',
+ dexterity = 'dexterity',
+ intelligence = 'intelligence'
+};