0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Combine .gen files together, add Center mask

This commit is contained in:
Trevor Buckner
2023-03-24 19:06:06 -04:00
parent 5b2aa452c0
commit a92f5d0694
3 changed files with 34 additions and 55 deletions

View File

@@ -173,13 +173,13 @@ module.exports = [
{
name : 'Cover Page',
icon : 'fac book-front-cover',
gen : CoverPageGen,
gen : CoverPageGen.front,
experimental : true
},
{
name : 'Inside Cover Page',
icon : 'fac book-front-cover',
gen : InsideCoverPageGen,
gen : CoverPageGen.inside,
experimental : true
},
{

View File

@@ -68,23 +68,42 @@ const footnote = [
'In an amazing kingdom, in an age of sorcery and lost souls, eight space pirates quest for freedom.'
];
module.exports = ()=>{
return dedent`
{{coverPage }}
module.exports = {
{{logo ![](/assets/naturalCritLogo.svg)}}
front : function() {
return dedent`
{{coverPage }}
# ${_.sample(titles)}
## ${_.sample(subtitles)}
__________
{{logo ![](/assets/naturalCritLogo.svg)}}
{{banner HOMEBREW}}
# ${_.sample(titles)}
## ${_.sample(subtitles)}
__________
{{footnote
${_.sample(footnote)}
}}
{{banner HOMEBREW}}
![background image](https://i.imgur.com/Mqx8Vf7.png)
{{footnote
${_.sample(footnote)}
}}
\page`;
![background image](https://i.imgur.com/Mqx8Vf7.png)
\page`;
},
inside : function() {
return dedent`
{{insideCover}}
# ${_.sample(titles)}
___
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0;
![](https://i.imgur.com/GZfjDWV.png){height:100%}
}}
{{logo ![](/assets/naturalCritLogo.svg)}}
\page`;
}
};

View File

@@ -1,40 +0,0 @@
const _ = require('lodash');
const dedent = require('dedent-tabs').default;
const titles = [
'The Burning Gallows', 'The Ring of Nenlast',
'Below the Blind Tavern', 'Below the Hungering River',
'Before Bahamut\'s Land', 'The Cruel Grave from Within',
'The Strength of Trade Road', 'Through The Raven Queen\'s Worlds',
'Within the Settlement', 'The Crown from Within',
'The Merchant Within the Battlefield', 'Ioun\'s Fading Traveler',
'The Legion Ingredient', 'The Explorer Lure',
'Before the Charming Badlands', 'Vecna\'s Hidden Sage',
'The Living Dead Above the Fearful Cage', 'Bahamut\'s Demonspawn',
'Across Gruumsh\'s Elemental Chaos', 'The Blade of Orcus',
'Beyond Revenge', 'Brain of Insanity',
'Breed Battle!, A New Beginning', 'Evil Lake, A New Beginning',
'Invasion of the Gigantic Cat, Part II', 'Kraken War 2020',
'The Body Whisperers', 'The Doctor from Heaven',
'The Diabolical Tales of the Ape-Women', 'The Doctor Immortal',
'Core of Heaven: Guardian of Amazement', 'The Graveyard',
'Guardian: Skies of the Dark Wizard', 'Lute of Eternity',
'Mercury\'s Planet: Brave Evolution', 'Azure Core',
'Sky of Zelda: The Thunder of Force', 'Core Battle',
'Ruby of Atlantis: The Quake of Peace', 'Deadly Amazement III',
'Dry Chaos IX', 'Gate Thunder',
'Vyse\'s Skies', 'White Greatness III',
'Yellow Divinity', 'Zidane\'s Ghost'
];
module.exports = ()=>{
return dedent`{{insideCover}}
# Player's Hand book
___
![image](https://i.imgur.com/dpg5qPT.png) {}
{{logo ![](/assets/naturalCritLogo.svg)}}
\page`;
};