Files
foundry-Slamother/module/settings.js
T
Martin Jencka 045d9bad2a Mothership 1e Support - 0.2.0
First version of the module that supports mothership 1e. Please backup your saves before moving to this version.

There is a settings toggle for 0e play.
2022-01-09 19:15:43 -07:00

82 lines
3.0 KiB
JavaScript

export const registerSettings = function () {
game.settings.register('mosh', 'firstEdition', {
name: "1e Rules",
hint: "Use the 1st edition rules and character sheet.",
default: true,
scope: 'world',
type: Boolean,
config: true,
onChange: value => { // A callback function which triggers when the setting is changed
console.log("newArmorandCombat set to " + value)
}
});
game.settings.register('mosh', 'panicTable', {
name: "Panic Table",
hint: "Where is our panic table located?",
default: "mosh.tables",
scope: 'world',
type: String,
config: true,
onChange: value => { // A callback function which triggers when the setting is changed
console.log("panicTable set to " + value)
}
});
// game.settings.register('mosh', 'newArmor', {
// name: "1e Armor System",
// hint: "Use the 1st edition Armor system.",
// default: true,
// scope: 'world',
// type: Boolean,
// config: true,
// onChange: value => { // A callback function which triggers when the setting is changed
// console.log("newArmorandCombat set to " + value)
// }
// });
// game.settings.register('mosh', 'newStress', {
// name: "1e Stress System",
// hint: "Use the 1st edition stress system with the roll under d20 and stress table.",
// default: true,
// scope: 'world',
// type: Boolean,
// config: true,
// onChange: value => { // A callback function which triggers when the setting is changed
// console.log("newStress set to " + value)
// }
// });
// game.settings.register('mosh', 'newWounds', {
// name: "1e Wound System",
// hint: "[Instead of the 0e health system, use the 1e wounds and health system.",
// default: true,
// scope: 'world',
// type: Boolean,
// config: true,
// onChange: value => { // A callback function which triggers when the setting is changed
// console.log("newWounds set to " + value)
// }
// });
game.settings.register('mosh', 'hideWeight', {
name: "Hide Weight",
hint: "Hide weight in the items list for players and ships?",
default: false,
scope: 'world',
type: Boolean,
config: true,
onChange: value => { // A callback function which triggers when the setting is changed
console.log("hideWeight set to " + value)
}
});
game.settings.register('mosh', 'useCalm', {
name: "Use Calm?",
hint: "Uses the traaa.sh Calm system instead of Stress.",
default: false,
scope: 'world',
type: Boolean,
config: true,
onChange: value => { // A callback function which triggers when the setting is changed
console.log("useCalm set to " + value)
}
});
};