export const SYSTEM_ID = "fvtt-hellborn"

export const ASCII = `
░▒█░▒█░▒█▀▀▀░▒█░░░░▒█░░░░▒█▀▀▄░▒█▀▀▀█░▒█▀▀▄░▒█▄░▒█
░▒█▀▀█░▒█▀▀▀░▒█░░░░▒█░░░░▒█▀▀▄░▒█░░▒█░▒█▄▄▀░▒█▒█▒█
░▒█░▒█░▒█▄▄▄░▒█▄▄█░▒█▄▄█░▒█▄▄█░▒█▄▄▄█░▒█░▒█░▒█░░▀█

`

export const PERK_ROLES = {
  "abbetor": { id: "abbetor", label: "Abbetor" },
  "blade": { id: "blade", label: "Blade" },
  "gunner": { id: "gunner", label: "Gunner" },
  "malefic": { id: "malefic", label: "Malefic" },
  "mastermind": { id: "mastermind", label: "Mastermind" },
  "sentinel": { id: "sentinel", label: "Sentinel" },
  "slayer": { id: "slayer", label: "Slayer" },
  "wretch": { id: "wretch", label: "Wretch" },
}

export const MALEFICA_DOMAINS = {
  "adfectus": { id: "adfectus", label: "Adfectus" },
  "divinus": { id: "divinus", label: "Divinus" },
  "ignis": { id: "ignis", label: "Ignis" },
  "iunctio": { id: "iunctio", label: "Iunctio" },
  "speculo": { id: "speculo", label: "Speculo" },
  "vinculum": { id: "vinculum", label: "Vinculum" },
  "vita": { id: "vita", label: "Vita" },
}

export const PERK_LEVELS = {
  "1": { id: "1", label: "Level 1" },
  "2": { id: "2", label: "Level 2" },
  "3": { id: "3", label: "Level 3" },
  "mastery": { id: "mastery", label: "Mastery" },
}

export const MALEFICA_LEVELS = {
  "1": { id: "1", label: "Level 1" },
  "2": { id: "2", label: "Level 2" },
  "3": { id: "3", label: "Level 3" },
  "highpowers": { id: "highpowers", label: "High Powers" },
}

export const WEAPON_TYPES = {
  "melee": { id: "melee", label: "Melee" },
  "ranged": { id: "ranged", label: "Ranged" },
}

export const RANGED_SUBTYPES = {
  "pistols": { id: "pistols", label: "Pistols" },
  "rifles": { id: "rifles", label: "Rifles" },
  "shotguns": { id: "shotguns", label: "Shotguns" },
  "submachineguns": { id: "submachineguns ", label: "Sub machine guns" },
  "grenades": { id: "grenades", label: "Grenades" },
  "heavy": { id: "heavy", label: "Heavy Weapons" },
}

export const ATTACK_MODIFIERS = {
  "two-attacks": -1,
  "aiming": 1,
  "dim": -1,
  "darkness": -2,
  "prone": -1,
  "cover": -2,
  "recoil-first": -1,
  "recoil-third": -2,
  "aware": -1
}

export const TRIAGE_RESULTS = {
  "none": { id: "none", dice:0, label: "HELLBORN.TriageResults.None" },
  "death": { id: "death", dice:3, label: "HELLBORN.TriageResults.Death" },
  "critical": { id: "critical", dice:4, label: "HELLBORN.TriageResults.Critical" },
  "severe": { id: "severe", dice:7, label: "HELLBORN.TriageResults.Severe" },
  "moderate": { id: "moderate", dice:10, label: "HELLBORN.TriageResults.Moderate" },
  "fleshwound": { id: "fleshwound", dice:12, label: "HELLBORN.TriageResults.FleshWound" }
}

export const CREATURE_TERRAIN_TYPES = {
  "cave": { id: "cave", label: "HELLBORN.Creature.Terrain.Cave", niche:0, size: 0 },
  "coast": { id: "coast", label: "HELLBORN.Creature.Terrain.Coast", niche:1, size: 0 },
  "desert": { id: "desert", label: "HELLBORN.Creature.Terrain.Desert", niche:-1, size: -1 },
  "forest": { id: "forest", label: "HELLBORN.Creature.Terrain.Forest", niche:1, size: 1 },
  "jungle": { id: "jungle", label: "HELLBORN.Creature.Terrain.Jungle", niche:1, size: 1 },
  "mixed": { id: "mixed", label: "HELLBORN.Creature.Terrain.Mixed", niche:0, size: 0 },
  "mountain": { id: "mountain", label: "HELLBORN.Creature.Terrain.Mountain", niche:-1, size: -1 },
  "ocean": { id: "ocean", label: "HELLBORN.Creature.Terrain.Ocean", niche:-1, size: 1 },
  "river": { id: "river", label: "HELLBORN.Creature.Terrain.River", niche:1, size: 0 },
  "ruins": { id: "ruins", label: "HELLBORN.Creature.Terrain.Ruins", niche:0, size: 1 },
  "savannah": { id: "savannah", label: "HELLBORN.Creature.Terrain.Savannah", niche:0, size: 1 },
  "shallows": { id: "shallows", label: "HELLBORN.Creature.Terrain.Shallows", niche:1, size: 0 },
  "swamp": { id: "swamp", label: "HELLBORN.Creature.Terrain.Swamp", niche:1, size: 1 }
}

export const CREATURE_NICHES = {
  "prey": { id: "prey", label: "HELLBORN.Creature.Niche.Prey" },
  "opportunist": { id: "opportunist", label: "HELLBORN.Creature.Niche.Opportunist" },
  "herbivore": { id: "herbivore", label: "HELLBORN.Creature.Niche.Herbivore" },
  "predator": { id: "predator", label: "HELLBORN.Creature.Niche.Predator" }
}

export const CREATURE_SIZES = {
  "tiny": { id: "tiny", label: "HELLBORN.Creature.Size.Tiny" },
  "small": { id: "small", label: "HELLBORN.Creature.Size.Small" },
  "medium": { id: "medium", label: "HELLBORN.Creature.Size.Medium" },
  "large": { id: "large", label: "HELLBORN.Creature.Size.Large" },
  "giant": { id: "giant", label: "HELLBORN.Creature.Size.Giant" },
  "titanic": { id: "titanic", label: "HELLBORN.Creature.Size.Titanic" }
}

export const MODIFIER_CHOICES = {
  "easy": { id: "easy", label: "HELLBORN.Label.Easy", value :"1" },
  "moderate": { id: "moderate", label: "HELLBORN.Label.Moderate", value: "0" },
  "difficult": { id: "difficult", label: "HELLBORN.Label.Difficult", value: "-1" },
  "formidable": { id: "formidable", label: "HELLBORN.Label.Formidable", value: "-2" },
  "impossible": { id: "impossible", label: "HELLBORN.Label.Impossible", value: "-4" }
}

export const STARSHIP_HULL = {
  "pod": { id: "pod", label: "HELLBORN.Starship.Hull.Pod" },
  "micro": { id: "micro", label: "HELLBORN.Starship.Hull.Micro" },
  "small": { id: "small", label: "HELLBORN.Starship.Hull.Small" },
  "scout": { id: "scout", label: "HELLBORN.Starship.Hull.Scout" },
  "picket": { id: "picket", label: "HELLBORN.Starship.Hull.Picket" },
  "destroyer": { id: "destroyer", label: "HELLBORN.Starship.Hull.Destroyer" },
  "cruiser": { id: "cruiser", label: "HELLBORN.Starship.Hull.Cruiser" },
  "battleship": { id: "battleship", label: "HELLBORN.Starship.Hull.Battleship" },
  "carrier": { id: "carrier", label: "HELLBORN.Starship.Hull.Carrier" }
}

/**
 * Include all constant definitions within the SYSTEM global export
 * @type {Object}
 */
export const SYSTEM = {
  id: SYSTEM_ID,
  PERK_ROLES,
  PERK_LEVELS,
  MALEFICA_LEVELS,
  MALEFICA_DOMAINS,
  MODIFIER_CHOICES,
  ATTACK_MODIFIERS,
  WEAPON_TYPES,
  RANGED_SUBTYPES,
  TRIAGE_RESULTS,
  CREATURE_TERRAIN_TYPES,
  CREATURE_SIZES,
  CREATURE_NICHES,
  STARSHIP_HULL,
  ASCII
}
