0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 01:22:44 +00:00

Update wide monster snippet to use {{

This commit is contained in:
Trevor Buckner
2021-04-04 00:16:29 -04:00
parent c8c1966b8a
commit 0b54bc046d

View File

@@ -141,33 +141,30 @@ const genAction = function(){
module.exports = { module.exports = {
full : function(){ full : function(){
return `${[ return dedent`
'___', {{monster,frame,wide
'___', ## ${getMonsterName()}
`> ## ${getMonsterName()}`, *${getType()}, ${getAlignment()}*
`>*${getType()}, ${getAlignment()}*`, ___
'> ___', : **Armor Class** : ${_.random(10, 20)} (chain mail, shield)
`> - **Armor Class** ${_.random(10, 20)}`, : **Hit Points** : ${_.random(1, 150)}(1d4 + 5)
`> - **Hit Points** ${_.random(1, 150)}(1d4 + 5)`, : **Speed** : ${_.random(0, 50)}ft.
`> - **Speed** ${_.random(0, 50)}ft.`, ___
'>___', | STR | DEX | CON | INT | WIS | CHA |
'>|STR|DEX|CON|INT|WIS|CHA|', |:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|
'>|:---:|:---:|:---:|:---:|:---:|:---:|', ${getStats()}
getStats(), ___
'>___', : **Condition Immunities** : ${genList(['groggy', 'swagged', 'weak-kneed', 'buzzed', 'groovy', 'melancholy', 'drunk'], 3)}
`> - **Condition Immunities** ${genList(['groggy', 'swagged', 'weak-kneed', 'buzzed', 'groovy', 'melancholy', 'drunk'], 3)}`, : **Senses** : darkvision 60 ft., passive Perception ${_.random(3, 20)}
`> - **Senses** passive Perception ${_.random(3, 20)}`, : **Languages** : ${genList(['Common', 'Pottymouth', 'Gibberish', 'Latin', 'Jive'], 2)}
`> - **Languages** ${genList(['Common', 'Pottymouth', 'Gibberish', 'Latin', 'Jive'], 2)}`, : **Challenge** : ${_.random(0, 15)} (${_.random(10, 10000)} XP)
`> - **Challenge** ${_.random(0, 15)} (${_.random(10, 10000)} XP)`, ___
'> ___', :
_.times(_.random(3, 6), function(){ ${_.times(_.random(3, 6), function(){return genAbilities();}).join('\n\t\t\t\n\t\t\t')}
return genAbilities(); :
}).join('\n>\n'), ### Actions
'> ### Actions', ${_.times(_.random(4, 6), function(){return genAction();}).join('\n\t\t\t\n\t\t\t')}
_.times(_.random(4, 6), function(){ }}`;
return genAction();
}).join('\n>\n'),
].join('\n')}\n\n\n`;
}, },
half : function(){ half : function(){