mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* Restructured all the files * Moved build/daggerheart.js to ./daggerheart.js. Changed rollup to use the css file instead of the less * Restored build/ folder * Mvoed config out form under application * Moved roll.mjs to module/dice and renamed to dhRolls.mjs * Update module/canvas/placeables/_module.mjs Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com> * Le massive export update * Removed unncessary import --------- Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com>
64 lines
1.6 KiB
JavaScript
64 lines
1.6 KiB
JavaScript
import { range } from '../config/generalConfig.mjs';
|
|
|
|
export const valueTypes = {
|
|
numberString: {
|
|
id: 'numberString'
|
|
},
|
|
select: {
|
|
id: 'select'
|
|
}
|
|
};
|
|
|
|
export const parseTypes = {
|
|
string: {
|
|
id: 'string'
|
|
},
|
|
number: {
|
|
id: 'number'
|
|
}
|
|
};
|
|
|
|
export const applyLocations = {
|
|
attackRoll: {
|
|
id: 'attackRoll',
|
|
name: 'DAGGERHEART.Effects.ApplyLocations.AttackRoll.Name'
|
|
},
|
|
damageRoll: {
|
|
id: 'damageRoll',
|
|
name: 'DAGGERHEART.Effects.ApplyLocations.DamageRoll.Name'
|
|
}
|
|
};
|
|
|
|
export const effectTypes = {
|
|
health: {
|
|
id: 'health',
|
|
name: 'DAGGERHEART.Effects.Types.Health.Name',
|
|
values: [],
|
|
valueType: valueTypes.numberString.id,
|
|
parseType: parseTypes.number.id
|
|
},
|
|
stress: {
|
|
id: 'stress',
|
|
name: 'DAGGERHEART.Effects.Types.Stress.Name',
|
|
valueType: valueTypes.numberString.id,
|
|
parseType: parseTypes.number.id
|
|
},
|
|
reach: {
|
|
id: 'reach',
|
|
name: 'DAGGERHEART.Effects.Types.Reach.Name',
|
|
valueType: valueTypes.select.id,
|
|
parseType: parseTypes.string.id,
|
|
options: Object.keys(range).map(x => ({ name: range[x].name, value: x }))
|
|
},
|
|
damage: {
|
|
id: 'damage',
|
|
name: 'DAGGERHEART.Effects.Types.Damage.Name',
|
|
valueType: valueTypes.numberString.id,
|
|
parseType: parseTypes.string.id,
|
|
appliesOn: applyLocations.damageRoll.id,
|
|
applyLocationChoices: {
|
|
[applyLocations.damageRoll.id]: applyLocations.damageRoll.name,
|
|
[applyLocations.attackRoll.id]: applyLocations.attackRoll.name
|
|
}
|
|
}
|
|
};
|