This commit is contained in:
@@ -99,6 +99,12 @@ export const AMMO_TYPES = {
|
||||
"tesla": { id: "tesla", label: "Tesla" },
|
||||
}
|
||||
|
||||
export const ENEMY_TYPES = {
|
||||
"mook": { id: "mook", label: "Mook" },
|
||||
"elite": { id: "elite", label: "Elite" },
|
||||
"legendary": { id: "legendary", label: "Legendary" }
|
||||
}
|
||||
|
||||
/**
|
||||
* Include all constant definitions within the SYSTEM global export
|
||||
* @type {Object}
|
||||
@@ -106,6 +112,7 @@ export const AMMO_TYPES = {
|
||||
export const SYSTEM = {
|
||||
id: SYSTEM_ID,
|
||||
AILMENTS,
|
||||
ENEMY_TYPES,
|
||||
STATS,
|
||||
PERK_ROLES,
|
||||
PERK_LEVELS,
|
||||
|
||||
@@ -8,6 +8,12 @@ export default class HellbornEnemy extends foundry.abstract.TypeDataModel {
|
||||
const requiredInteger = { required: true, nullable: false, integer: true }
|
||||
const schema = {}
|
||||
|
||||
schema.enemyType = new fields.StringField({
|
||||
required: true,
|
||||
initial: "mook",
|
||||
choices: SYSTEM.ENEMY_TYPES
|
||||
})
|
||||
|
||||
const statField = (label) => {
|
||||
const schema = {
|
||||
label: new fields.StringField({ required: true, initial: label }),
|
||||
|
||||
Reference in New Issue
Block a user