File size: 8,115 Bytes
760ff9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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',
	'A New Beginning',                        'Evil Lake of the Merfolk',
	'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',                          'Blue Greatness III',
	'Yellow Divinity',                        'Zidane\'s Ghost'
];

const subtitles = [
	'Tomb of Shadows',                        'Dragon\'s Lair',
	'Lost Caverns',                           'The Necromancer',
	'Mystic Forest',                          'Cursed Ruins',
	'The Dark Abyss',                         'Enchanted Maze',
	'Haunted Castle',                         'Sands of Fate',
	'Dragon\'s Hoard',                        'Undead Menace',
	'Lost City Ruins',                        'Goblin Ambush',
	'Enchanted Forest',                       'Darkness Rising',
	'Quest for Glory',                        'Ancient Prophecy',
	'Shadowy Depths',                         'Mystic Isles'
];

const footnote = [
	'In an ominous universe, a botanist opposes terrorism.',
	'In a demon-haunted city, in an age of lies and hate, a physicist tries to find an ancient treasure and battles a mob of aliens.',
	'In a land of corruption, two cyberneticists and a dungeon delver search for freedom.',
	'In an evil empire of horror, two rangers battle the forces of hell.',
	'In a lost city, in an age of sorcery, a librarian quests for revenge.',
	'In a universe of illusions and danger, three time travellers and an adventurer search for justice.',
	'In a forgotten universe of barbarism, in an era of terror and mysticism, a virtual reality programmer and a spy try to find vengance and battle crime.',
	'In a universe of demons, in an era of insanity and ghosts, three bodyguards and a bodyguard try to find vengance.',
	'In a kingdom of corruption and battle, seven artificial intelligences try to save the last living fertile woman.',
	'In a universe of virutal reality and agony, in an age of ghosts and ghosts, a fortune-teller and a wanderer try to avert the apocalypse.',
	'In a crime-infested kingdom, three martial artists quest for the truth and oppose evil.',
	'In a terrifying universe of lost souls, in an era of lost souls, eight dancers fight evil.',
	'In a galaxy of confusion and insanity, three martial artists and a duke battle a mob of psychics.',
	'In an amazing kingdom, a wizard and a secretary hope to prevent the destruction of mankind.',
	'In a kingdom of deception, a reporter searches for fame.',
	'In a hellish empire, a swordswoman and a duke try to find the ultimate weapon and battle a conspiracy.',
	'In an evil galaxy of illusion, in a time of technology and misery, seven psychiatrists battle crime.',
	'In a dark city of confusion, three swordswomen and a singer battle lawlessness.',
	'In an ominous empire, in an age of hate, two philosophers and a student try to find justice and battle a mob of mages intent on stealing the souls of the innocent.',
	'In a kingdom of panic, six adventurers oppose lawlessness.',
	'In a land of dreams and hopelessness, three hackers and a cyborg search for justice.',
	'On a planet of mysticism, three travelers and a fire fighter quest for the ultimate weapon and oppose evil.',
	'In a wicked universe, five seers fight lawlessness.',
	'In a kingdom of death, in an era of illusion and blood, four colonists search for fame.',
	'In an amazing kingdom, in an age of sorcery and lost souls, eight space pirates quest for freedom.'
];

const coverText = [
	'Embark on a thrilling journey across a vast and varied world, where magic and mystery await you at every turn. Encounter strange creatures and ancient secrets, and forge your own destiny with your choices. The world is yours to shape and explore.',
	'Join a band of brave adventurers and set out to explore the unknown lands beyond the horizon. Along the way, you’ll face perilous challenges, make new friends and enemies, and uncover a plot that threatens to destroy everything you hold dear. The fate of the world rests in your hands.',
	'Create your own character and enter a realm of endless possibilities, where you can be whoever you want to be. Whether you prefer to fight, sneak, charm, or craft your way through the game, you’ll find a style that suits you. The only limit is your imagination.',
	'Experience a rich and immersive story that adapts to your actions and decisions. Every choice you make has consequences, for good or ill. Will you be a hero or a villain? A leader or a follower? A friend or a foe? The choice is yours.',
	'Dive into a world of epic fantasy and adventure, where you can explore ancient civilizations, dark dungeons, and hidden secrets. Along the way, you’ll meet colorful characters, collect powerful items, and learn new skills. The more you play, the more you’ll discover.',
	'Explore a vast and dynamic world that changes according to your actions. You can shape the environment, influence the politics, and alter the history of the game world. But be careful, as every change has a ripple effect that may have unforeseen consequences.',
	'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 = {

	front : function() {
		return dedent`
		  {{frontCover}}

		  {{logo ![](/assets/naturalCritLogoRed.svg)}}

		  # ${_.sample(titles)}
		  ## ${_.sample(subtitles)}
		  ___

		  {{banner HOMEBREW}}

		  {{footnote
		    ${_.sample(footnote)}
		  }}

		  ![background image](https://i.imgur.com/IwHRrbF.jpg){position:absolute,bottom:0,left:0,height:100%}

		  \page`;
	},

	inside : function() {
		return dedent`
			{{insideCover}}

			# ${_.sample(titles)}
			## ${_.sample(subtitles)}
			___

			{{imageMaskCenter${_.random(1, 16)},--offsetX:0%,--offsetY:0%,--rotation:0
			  ![background image](https://i.imgur.com/IsfUnFR.jpg){position:absolute,bottom:0,left:0,height:100%}
			}}

			{{logo ![](/assets/naturalCritLogoRed.svg)}}

			\page`;
	},

	part : function() {
		return dedent`
			{{partCover}}

			# PART X
			## ${_.sample(subtitles)}

			{{imageMaskEdge${_.random(1, 8)},--offset:10cm,--rotation:180
			  ![Background image](https://i.imgur.com/9TU96xY.jpg){position:absolute,bottom:0,left:0,height:100%}
			}}

			\page`;
	},

	back : function() {
		return dedent`
			{{backCover}}

			# ${_.sample(subtitles)}

			${_.sampleSize(coverText, 3).join('\n:\n')}
			___

			For use with any fantasy roleplaying ruleset. Play the best game of your life!

			![background image](https://i.imgur.com/MJ4YHu7.jpg){position:absolute,bottom:0,left:0,height:100%}

			{{logo
			![](/assets/naturalCritLogoWhite.svg)

			Homebrewery.Naturalcrit.com
			}}

			\page`;
	}
};