2020-12-23 16:52:20 +01:00
|
|
|
export const DS4 = {
|
|
|
|
// ASCII Artwork
|
2020-12-28 12:46:39 +01:00
|
|
|
ASCII: String.raw`_____________________________________________________________________________________________
|
|
|
|
____ _ _ _ _ ____ _____ ___ _ _ ____ _ _ __ _______ ____ ____ _ _
|
|
|
|
| _ \| | | | \ | |/ ___| ____/ _ \| \ | / ___|| | / \\ \ / / ____| _ \/ ___| | || |
|
|
|
|
| | | | | | | \| | | _| _|| | | | \| \___ \| | / _ \\ V /| _| | |_) \___ \ | || |_
|
|
|
|
| |_| | |_| | |\ | |_| | |__| |_| | |\ |___) | |___ / ___ \| | | |___| _ < ___) | |__ _|
|
|
|
|
|____/ \___/|_| \_|\____|_____\___/|_| \_|____/|_____/_/ \_\_| |_____|_| \_\____/ |_|
|
2020-12-23 16:52:20 +01:00
|
|
|
=============================================================================================`,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the set of acttack types that can be performed with weapon items
|
|
|
|
*/
|
|
|
|
attackTypes: {
|
|
|
|
melee: "DS4.AttackTypeMelee",
|
|
|
|
ranged: "DS4.AttackTypeRanged",
|
|
|
|
meleeRanged: "DS4.AttackTypeMeleeRanged",
|
|
|
|
},
|
|
|
|
|
2020-12-30 01:03:06 +01:00
|
|
|
/**
|
2020-12-29 22:44:56 +01:00
|
|
|
* Define the file paths to icon images
|
2020-12-30 01:03:06 +01:00
|
|
|
*/
|
|
|
|
attackTypesIcons: {
|
2021-01-21 18:07:08 +01:00
|
|
|
melee: "systems/ds4/assets/icons/official/combat-values/melee-attack.png",
|
|
|
|
meleeRanged: "systems/ds4/assets/icons/official/combat-values/melee-ranged-attack.png",
|
|
|
|
ranged: "systems/ds4/assets/icons/official/combat-values/ranged-attack.png",
|
2020-12-30 01:03:06 +01:00
|
|
|
},
|
|
|
|
|
2021-01-09 23:39:35 +01:00
|
|
|
/**
|
|
|
|
* Define the file paths to icon images
|
|
|
|
*/
|
|
|
|
spellTypesIcons: {
|
2021-01-21 18:07:08 +01:00
|
|
|
spellcasting: "systems/ds4/assets/icons/official/DS4-SPC.png",
|
|
|
|
targetedSpellcasting: "systems/ds4/assets/icons/official/DS4-TSC.png",
|
2021-01-09 23:39:35 +01:00
|
|
|
},
|
|
|
|
|
2020-12-23 16:52:20 +01:00
|
|
|
/**
|
|
|
|
* Define the set of item availabilties
|
|
|
|
*/
|
|
|
|
itemAvailabilities: {
|
2020-12-28 21:44:47 +01:00
|
|
|
unset: "DS4.ItemAvailabilityUnset",
|
2020-12-23 16:52:20 +01:00
|
|
|
hamlet: "DS4.ItemAvailabilityHamlet",
|
|
|
|
village: "DS4.ItemAvailabilityVilage",
|
|
|
|
city: "DS4.ItemAvailabilityCity",
|
|
|
|
elves: "DS4.ItemAvailabilityElves",
|
|
|
|
dwarves: "DS4.ItemAvailabilityDwarves",
|
2020-12-28 21:50:45 +01:00
|
|
|
nowhere: "DS4.ItemAvailabilityNowhere",
|
2020-12-23 16:52:20 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2020-12-29 22:44:56 +01:00
|
|
|
* Define the set of item types
|
2020-12-23 16:52:20 +01:00
|
|
|
*/
|
|
|
|
itemTypes: {
|
|
|
|
weapon: "DS4.ItemTypeWeapon",
|
|
|
|
armor: "DS4.ItemTypeArmor",
|
|
|
|
shield: "DS4.ItemTypeShield",
|
2021-01-09 14:09:21 +01:00
|
|
|
spell: "DS4.ItemTypeSpell",
|
2020-12-23 16:52:20 +01:00
|
|
|
trinket: "DS4.ItemTypeTrinket",
|
|
|
|
equipment: "DS4.ItemTypeEquipment",
|
2021-01-06 01:24:37 +01:00
|
|
|
talent: "DS4.ItemTypeTalent",
|
2021-01-07 20:20:40 +01:00
|
|
|
racialAbility: "DS4.ItemTypeRacialAbility",
|
2021-01-08 23:23:53 +01:00
|
|
|
language: "DS4.ItemTypeLanguage",
|
2021-01-08 23:54:41 +01:00
|
|
|
alphabet: "DS4.ItemTypeAlphabet",
|
2021-01-11 00:55:49 +01:00
|
|
|
specialCreatureAbility: "DS4.ItemTypeSpecialCreatureAbility",
|
2020-12-23 16:52:20 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2020-12-29 22:44:56 +01:00
|
|
|
* Define the set of armor types, a character may only wear one item of each at any given time
|
2020-12-23 16:52:20 +01:00
|
|
|
*/
|
|
|
|
armorTypes: {
|
|
|
|
body: "DS4.ArmorTypeBody",
|
2020-12-28 18:24:13 +01:00
|
|
|
helmet: "DS4.ArmorTypeHelmet",
|
2020-12-23 16:52:20 +01:00
|
|
|
vambrace: "DS4.ArmorTypeVambrace",
|
|
|
|
greaves: "DS4.ArmorTypeGreaves",
|
|
|
|
vambraceGreaves: "DS4.ArmorTypeVambraceGreaves",
|
|
|
|
},
|
|
|
|
|
2020-12-30 01:03:06 +01:00
|
|
|
/**
|
2020-12-29 22:44:56 +01:00
|
|
|
* Define abbreviations for the armor types
|
2020-12-30 01:03:06 +01:00
|
|
|
*/
|
|
|
|
armorTypesAbbr: {
|
|
|
|
body: "DS4.ArmorTypeBodyAbbr",
|
|
|
|
helmet: "DS4.ArmorTypeHelmetAbbr",
|
|
|
|
vambrace: "DS4.ArmorTypeVambraceAbbr",
|
|
|
|
greaves: "DS4.ArmorTypeGreavesAbbr",
|
|
|
|
vambraceGreaves: "DS4.ArmorTypeVambraceGreavesAbbr",
|
|
|
|
},
|
|
|
|
|
2020-12-23 16:52:20 +01:00
|
|
|
/**
|
2020-12-29 22:44:56 +01:00
|
|
|
* Define the set of armor materials, used to determine if a characer may wear the armor without additional penalties
|
2020-12-23 16:52:20 +01:00
|
|
|
*/
|
|
|
|
armorMaterialTypes: {
|
|
|
|
cloth: "DS4.ArmorMaterialTypeCloth",
|
|
|
|
leather: "DS4.ArmorMaterialTypeLeather",
|
|
|
|
chain: "DS4.ArmorMaterialTypeChain",
|
|
|
|
plate: "DS4.ArmorMaterialTypePlate",
|
|
|
|
},
|
2020-12-30 00:01:41 +01:00
|
|
|
|
|
|
|
/**
|
2020-12-29 22:44:56 +01:00
|
|
|
* Define the abbreviations of armor materials
|
2020-12-30 00:01:41 +01:00
|
|
|
*/
|
2020-12-30 01:03:06 +01:00
|
|
|
armorMaterialTypesAbbr: {
|
|
|
|
cloth: "DS4.ArmorMaterialTypeClothAbbr",
|
|
|
|
leather: "DS4.ArmorMaterialTypeLeatherAbbr",
|
|
|
|
chain: "DS4.ArmorMaterialTypeChainAbbr",
|
|
|
|
plate: "DS4.ArmorMaterialTypePlateAbbr",
|
2020-12-30 00:01:41 +01:00
|
|
|
},
|
2020-12-29 22:44:56 +01:00
|
|
|
|
2021-01-09 18:25:30 +01:00
|
|
|
spellTypes: {
|
2021-01-09 14:09:21 +01:00
|
|
|
spellcasting: "DS4.SpellTypeSpellcasting",
|
2021-01-10 00:30:51 +01:00
|
|
|
targetedSpellcasting: "DS4.SpellTypeTargetedSpellcasting",
|
2021-01-09 14:09:21 +01:00
|
|
|
},
|
|
|
|
|
2021-01-09 18:25:30 +01:00
|
|
|
spellCategories: {
|
2021-01-09 14:09:21 +01:00
|
|
|
healing: "DS4.SpellCategoryHealing",
|
|
|
|
fire: "DS4.SpellCategoryFire",
|
|
|
|
ice: "DS4.SpellCategoryIce",
|
|
|
|
light: "DS4.SpellCategoryLight",
|
|
|
|
darkness: "DS4.SpellCategoryDarkness",
|
|
|
|
mindAffecting: "DS4.SpellCategoryMindAffecting",
|
|
|
|
electricity: "DS4.SpellCategoryElectricity",
|
2021-01-10 21:04:18 +01:00
|
|
|
none: "DS4.SpellCategoryNone",
|
2021-01-10 21:18:33 +01:00
|
|
|
unset: "DS4.SpellCategoryUnset",
|
2021-01-09 14:09:21 +01:00
|
|
|
},
|
|
|
|
|
2021-01-10 02:35:48 +01:00
|
|
|
/**
|
|
|
|
* Define the set of actor types
|
|
|
|
*/
|
|
|
|
actorTypes: {
|
|
|
|
character: "DS4.ActorTypeCharacter",
|
|
|
|
creature: "DS4.ActorTypeCreature",
|
|
|
|
},
|
|
|
|
|
2020-12-29 22:44:56 +01:00
|
|
|
/**
|
2021-01-09 22:51:46 +01:00
|
|
|
* Define the set of attributes an actor has
|
2020-12-29 22:44:56 +01:00
|
|
|
*/
|
|
|
|
attributes: {
|
|
|
|
body: "DS4.AttributeBody",
|
|
|
|
mobility: "DS4.AttributeMobility",
|
|
|
|
mind: "DS4.AttributeMind",
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2021-01-09 22:51:46 +01:00
|
|
|
* Define the set of traits an actor has
|
2020-12-29 22:44:56 +01:00
|
|
|
*/
|
|
|
|
traits: {
|
|
|
|
strength: "DS4.TraitStrength",
|
|
|
|
agility: "DS4.TraitAgility",
|
|
|
|
intellect: "DS4.TraitIntellect",
|
2021-01-04 00:55:44 +01:00
|
|
|
constitution: "DS4.TraitConstitution",
|
|
|
|
dexterity: "DS4.TraitDexterity",
|
2020-12-29 22:44:56 +01:00
|
|
|
aura: "DS4.TraitAura",
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2021-01-09 22:51:46 +01:00
|
|
|
* Define the set of combat values an actor has
|
2020-12-29 22:44:56 +01:00
|
|
|
*/
|
|
|
|
combatValues: {
|
|
|
|
hitPoints: "DS4.CombatValuesHitPoints",
|
|
|
|
defense: "DS4.CombatValuesDefense",
|
|
|
|
initiative: "DS4.CombatValuesInitiative",
|
|
|
|
movement: "DS4.CombatValuesMovement",
|
|
|
|
meleeAttack: "DS4.CombatValuesMeleeAttack",
|
|
|
|
rangedAttack: "DS4.CombatValuesRangedAttack",
|
|
|
|
spellcasting: "DS4.CombatValuesSpellcasting",
|
|
|
|
targetedSpellcasting: "DS4.CombatValuesTargetedSpellcasting",
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the base info of a character
|
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
characterBaseInfo: {
|
|
|
|
race: "DS4.CharacterBaseInfoRace",
|
|
|
|
class: "DS4.CharacterBaseInfoClass",
|
|
|
|
heroClass: "DS4.CharacterBaseInfoHeroClass",
|
|
|
|
culture: "DS4.CharacterBaseInfoCulture",
|
2020-12-29 22:44:56 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2021-01-03 20:37:30 +01:00
|
|
|
* Define the progression info of a character
|
2020-12-29 22:44:56 +01:00
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
characterProgression: {
|
|
|
|
level: "DS4.CharacterProgressionLevel",
|
|
|
|
experiencePoints: "DS4.CharacterProgressionExperiencePoints",
|
|
|
|
talentPoints: "DS4.CharacterProgressionTalentPoints",
|
|
|
|
progressPoints: "DS4.CharacterProgressionProgressPoints",
|
2020-12-29 22:44:56 +01:00
|
|
|
},
|
2021-01-03 20:37:30 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the language info of a character
|
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
characterLanguage: {
|
|
|
|
languages: "DS4.CharacterLanguageLanguages",
|
|
|
|
alphabets: "DS4.CharacterLanguageAlphabets",
|
2021-01-03 20:37:30 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the profile info of a character
|
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
characterProfile: {
|
2021-01-10 02:05:30 +01:00
|
|
|
biography: "DS4.CharacterProfileBiography",
|
2021-01-09 22:51:46 +01:00
|
|
|
gender: "DS4.CharacterProfileGender",
|
|
|
|
birthday: "DS4.CharacterProfileBirthday",
|
|
|
|
birthplace: "DS4.CharacterProfileBirthplace",
|
|
|
|
age: "DS4.CharacterProfileAge",
|
|
|
|
height: "DS4.CharacterProfileHeight",
|
2021-01-18 19:48:07 +01:00
|
|
|
hairColor: "DS4.CharacterProfileHairColor",
|
2021-01-09 22:51:46 +01:00
|
|
|
weight: "DS4.CharacterProfileWeight",
|
|
|
|
eyeColor: "DS4.CharacterProfileEyeColor",
|
|
|
|
specialCharacteristics: "DS4.CharacterProfileSpecialCharacteristics",
|
2021-01-03 20:37:30 +01:00
|
|
|
},
|
2021-01-03 23:26:31 +01:00
|
|
|
|
|
|
|
/**
|
2021-01-13 18:02:22 +01:00
|
|
|
* Define the profile info types for handlebars of a character
|
2021-01-03 23:26:31 +01:00
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
characterProfileDTypes: {
|
2021-01-10 02:05:30 +01:00
|
|
|
biography: "String",
|
2021-01-03 23:26:31 +01:00
|
|
|
gender: "String",
|
|
|
|
birthday: "String",
|
|
|
|
birthplace: "String",
|
|
|
|
age: "Number",
|
|
|
|
height: "Number",
|
|
|
|
hairColor: "String",
|
|
|
|
weight: "Number",
|
|
|
|
eyeColor: "String",
|
|
|
|
specialCharacteristics: "String",
|
|
|
|
},
|
2021-01-10 19:32:10 +01:00
|
|
|
|
2021-01-10 19:33:55 +01:00
|
|
|
/**
|
2021-01-16 14:59:54 +01:00
|
|
|
* Define currency elements of a character
|
2021-01-10 19:33:55 +01:00
|
|
|
*/
|
2021-01-18 19:48:07 +01:00
|
|
|
characterCurrency: {
|
|
|
|
gold: "DS4.CharacterCurrencyGold",
|
|
|
|
silver: "DS4.CharacterCurrencySilver",
|
|
|
|
copper: "DS4.CharacterCurrencyCopper",
|
|
|
|
},
|
|
|
|
|
2021-01-09 22:54:44 +01:00
|
|
|
/**
|
|
|
|
* Define the different creature types a creature can be
|
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
creatureTypes: {
|
|
|
|
animal: "DS4.CreatureTypeAnimal",
|
|
|
|
construct: "DS4.CreatureTypeConstruct",
|
|
|
|
humanoid: "DS4.CreatureTypeHumanoid",
|
|
|
|
magicalEntity: "DS4.CreatureTypeMagicalEntity",
|
|
|
|
plantBeing: "DS4.CreatureTypePlantBeing",
|
|
|
|
undead: "DS4.CreatureTypeUndead",
|
|
|
|
},
|
|
|
|
|
2021-01-09 22:54:44 +01:00
|
|
|
/**
|
2021-01-18 19:11:13 +01:00
|
|
|
* Define the different size categories creatures fall into
|
2021-01-09 22:54:44 +01:00
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
creatureSizeCategories: {
|
|
|
|
tiny: "DS4.CreatureSizeCategoryTiny",
|
|
|
|
small: "DS4.CreatureSizeCategorySmall",
|
|
|
|
normal: "DS4.CreatureSizeCategoryNormal",
|
|
|
|
large: "DS4.CreatureSizeCategoryLarge",
|
|
|
|
huge: "DS4.CreatureSizeCategoryHuge",
|
|
|
|
colossal: "DS4.CreatureSizeCategoryColossal",
|
|
|
|
},
|
|
|
|
|
2021-01-09 22:54:44 +01:00
|
|
|
/**
|
|
|
|
* Define the base info of a creature
|
|
|
|
*/
|
2021-01-09 22:51:46 +01:00
|
|
|
creatureBaseInfo: {
|
|
|
|
loot: "DS4.CreatureBaseInfoLoot",
|
|
|
|
foeFactor: "DS4.CreatureBaseInfoFoeFactor",
|
|
|
|
creatureType: "DS4.CreatureBaseInfoCreatureType",
|
|
|
|
sizeCategory: "DS4.CreatureBaseInfoSizeCategory",
|
|
|
|
experiencePoints: "DS4.CreatureBaseInfoExperiencePoints",
|
2021-01-10 02:05:30 +01:00
|
|
|
description: "DS4.CreatureBaseInfoDescription",
|
2021-01-09 22:51:46 +01:00
|
|
|
},
|
2021-01-10 00:41:20 +01:00
|
|
|
|
2021-01-09 14:09:21 +01:00
|
|
|
/**
|
2021-01-09 18:25:30 +01:00
|
|
|
* Define translations for available distance units
|
2021-01-09 14:09:21 +01:00
|
|
|
*/
|
2021-01-09 18:25:30 +01:00
|
|
|
distanceUnits: {
|
|
|
|
meter: "DS4.UnitMeters",
|
|
|
|
kilometer: "DS4.UnitKilometers",
|
|
|
|
custom: "DS4.UnitCustom",
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* Define abbreviations for available distance units
|
|
|
|
*/
|
|
|
|
distanceUnitsAbbr: {
|
|
|
|
meter: "DS4.UnitMetersAbbr",
|
|
|
|
kilometer: "DS4.UnitKilometersAbbr",
|
|
|
|
custom: "DS4.UnitCustomAbbr",
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define translations for available distance units
|
|
|
|
*/
|
|
|
|
temporalUnits: {
|
2021-01-09 14:09:21 +01:00
|
|
|
rounds: "DS4.UnitRounds",
|
|
|
|
minutes: "DS4.UnitMinutes",
|
|
|
|
hours: "DS4.UnitHours",
|
2021-01-09 18:25:30 +01:00
|
|
|
days: "DS4.UnitDays",
|
2021-01-09 14:09:21 +01:00
|
|
|
custom: "DS4.UnitCustom",
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define abbreviations for available units
|
|
|
|
*/
|
2021-01-09 18:25:30 +01:00
|
|
|
temporalUnitsAbbr: {
|
2021-01-09 14:09:21 +01:00
|
|
|
rounds: "DS4.UnitRoundsAbbr",
|
|
|
|
minutes: "DS4.UnitMinutesAbbr",
|
|
|
|
hours: "DS4.UnitHoursAbbr",
|
2021-01-09 18:25:30 +01:00
|
|
|
days: "DS4.UnitDaysAbbr",
|
2021-01-09 14:09:21 +01:00
|
|
|
custom: "DS4.UnitCustomAbbr",
|
|
|
|
},
|
2021-01-13 18:32:47 +01:00
|
|
|
|
2021-01-13 18:02:22 +01:00
|
|
|
/**
|
|
|
|
* Define localization strings for Chat Visibility
|
|
|
|
*/
|
|
|
|
chatVisibilities: {
|
|
|
|
roll: "DS4.ChatVisibilityRoll",
|
|
|
|
gmroll: "DS4.ChatVisibilityGmRoll",
|
|
|
|
blindroll: "DS4.ChatVisibilityBlindRoll",
|
|
|
|
selfroll: "DS4.ChatVisibilitySelfRoll",
|
2021-01-10 19:32:10 +01:00
|
|
|
},
|
2020-12-23 16:52:20 +01:00
|
|
|
};
|