mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 16:32:40 +00:00
Combine .gen files together, add Center mask
This commit is contained in:
@@ -173,13 +173,13 @@ module.exports = [
|
|||||||
{
|
{
|
||||||
name : 'Cover Page',
|
name : 'Cover Page',
|
||||||
icon : 'fac book-front-cover',
|
icon : 'fac book-front-cover',
|
||||||
gen : CoverPageGen,
|
gen : CoverPageGen.front,
|
||||||
experimental : true
|
experimental : true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Inside Cover Page',
|
name : 'Inside Cover Page',
|
||||||
icon : 'fac book-front-cover',
|
icon : 'fac book-front-cover',
|
||||||
gen : InsideCoverPageGen,
|
gen : CoverPageGen.inside,
|
||||||
experimental : true
|
experimental : true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,23 +68,42 @@ const footnote = [
|
|||||||
'In an amazing kingdom, in an age of sorcery and lost souls, eight space pirates quest for freedom.'
|
'In an amazing kingdom, in an age of sorcery and lost souls, eight space pirates quest for freedom.'
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = ()=>{
|
module.exports = {
|
||||||
return dedent`
|
|
||||||
{{coverPage }}
|
|
||||||
|
|
||||||
{{logo }}
|
front : function() {
|
||||||
|
return dedent`
|
||||||
|
{{coverPage }}
|
||||||
|
|
||||||
# ${_.sample(titles)}
|
{{logo }}
|
||||||
## ${_.sample(subtitles)}
|
|
||||||
__________
|
|
||||||
|
|
||||||
{{banner HOMEBREW}}
|
# ${_.sample(titles)}
|
||||||
|
## ${_.sample(subtitles)}
|
||||||
|
__________
|
||||||
|
|
||||||
{{footnote
|
{{banner HOMEBREW}}
|
||||||
${_.sample(footnote)}
|
|
||||||
}}
|
|
||||||
|
|
||||||

|
{{footnote
|
||||||
|
${_.sample(footnote)}
|
||||||
|
}}
|
||||||
|
|
||||||
\page`;
|

|
||||||
|
|
||||||
|
\page`;
|
||||||
|
},
|
||||||
|
|
||||||
|
inside : function() {
|
||||||
|
return dedent`
|
||||||
|
{{insideCover}}
|
||||||
|
|
||||||
|
# ${_.sample(titles)}
|
||||||
|
___
|
||||||
|
|
||||||
|
{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0;
|
||||||
|
{height:100%}
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{logo }}
|
||||||
|
|
||||||
|
\page`;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
|
||||||
___
|
|
||||||
|
|
||||||
 {}
|
|
||||||
|
|
||||||
{{logo }}
|
|
||||||
\page`;
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user