0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-27 13:53:09 +00:00

fix module.exports

This commit is contained in:
Víctor Losada Hernández
2026-01-20 19:56:37 +01:00
parent bfe2c11548
commit 0d6c3c7e33
90 changed files with 148 additions and 194 deletions

View File

@@ -1,7 +1,7 @@
const _ = require('lodash');
const dedent = require('dedent-tabs').default;
module.exports = function(classname){
export default function(classname){
classname = _.sample(['archivist', 'fancyman', 'linguist', 'fletcher',
'notary', 'berserker-typist', 'fishmongerer', 'manicurist', 'haberdasher', 'concierge']);

View File

@@ -18,7 +18,7 @@ const classnames = [
'Haberdasher', 'Manicurist', 'Netrunner', 'Weirkeeper'
];
module.exports = {
export default {
non : function(snippetClasses){
return dedent`
{{${snippetClasses}

View File

@@ -78,7 +78,7 @@ const coverText = [
'Enter a world of wonder and danger, where you can find allies and enemies among the various races and factions that inhabit it. You can choose to join or oppose any of them, or forge your own path. The game world is alive and responsive to your actions.'
];
module.exports = {
export default {
front : function() {
return dedent`

View File

@@ -4,7 +4,7 @@ const ClassFeatureGen = require('./classfeature.gen.js');
const ClassTableGen = require('./classtable.gen.js');
module.exports = function(){
export default function(){
const classname = _.sample(['Archivist', 'Fancyman', 'Linguist', 'Fletcher',
'Notary', 'Berserker-Typist', 'Fishmongerer', 'Manicurist', 'Haberdasher', 'Concierge']);

View File

@@ -54,7 +54,7 @@ const itemNames = [
'Staff of Endless Confetti',
];
module.exports = {
export default {
spellList : function(){
const levels = ['Cantrips (0 Level)', '1st Level', '2nd Level', '3rd Level', '4th Level', '5th Level', '6th Level', '7th Level', '8th Level', '9th Level'];

View File

@@ -152,7 +152,7 @@ const genAction = function(){
};
module.exports = {
export default {
monster : function(classes, genLines){
return dedent`

View File

@@ -40,7 +40,7 @@ const books = [
'Frost and Fury',
];
module.exports = ()=>{
export default ()=>{
return `
{{quote
${_.sample(quotes)}

View File

@@ -1,7 +1,7 @@
const _ = require('lodash');
const dedent = require('dedent-tabs').default;
module.exports = {
export default {
dwarvish : ()=>{
return dedent `##### Dwarvish Runes: Sample Alphabet
{{runeTable,wide,frame,font-family:Davek

View File

@@ -1,5 +1,5 @@
const _ = require('lodash');
module.exports = ()=>{
export default ()=>{
return `{{watercolor${_.random(1, 12)},top:20px,left:30px,width:300px,background-color:#BBAD82,opacity:80%}}\n\n`;
};