From b82aac4a5a41935121134bc3439fcea0fe548fe1 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Mon, 4 Feb 2019 11:26:37 -0500 Subject: [PATCH] Make Monster Blocks always generate "abilities" Originally had a random chance to generate no abilities, which a user might not know how to insert with the proper formatting. Also added some new abilities to select randomly when generated. Also fixes #836 . --- .../editor/snippetbar/snippets/monsterblock.gen.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js b/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js index d80024735..1e8a0eebd 100644 --- a/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js +++ b/client/homebrew/editor/snippetbar/snippets/monsterblock.gen.js @@ -96,7 +96,11 @@ const getStats = function(){ const genAbilities = function(){ return _.sample([ '> ***Pack Tactics.*** These guys work together. Like super well, you don\'t even know.', - '> ***False Appearance. *** While the armor reamin motionless, it is indistinguishable from a normal suit of armor.', + '> ***Fowl Appearance.*** While the creature remains motionless, it is indistinguishable from a normal chicken.', + '> ***Onion Stench.*** Any creatures within 5 feet of this thing develops an irrational craving for onion rings.', + '> ***Enormous Nose.*** This creature gains advantage on any check involving putting things in its nose.', + '> ***Sassiness.*** When questioned, this creature will talk back instead of answering.', + '> ***Big Jerk.*** Thinks he is just *waaaay* better than you.', ]); }; @@ -184,7 +188,7 @@ module.exports = { `> - **Languages** ${genList(['Common', 'Pottymouth', 'Gibberish', 'Latin', 'Jive'], 2)}`, `> - **Challenge** ${_.random(0, 15)} (${_.random(10, 10000)} XP)`, '> ___', - _.times(_.random(0, 2), function(){ + _.times(_.random(2, 3), function(){ return genAbilities(); }).join('\n>\n'), '> ### Actions',