-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing magic item snippet from Issue 671.
- Loading branch information
1 parent
2839846
commit 9335608
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
client/homebrew/editor/snippetbar/snippets/magicitem.gen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const _ = require('lodash'); | ||
|
||
const itemNames = [ | ||
'Doorknob of Niceness' | ||
]; | ||
|
||
module.exports = { | ||
|
||
return [ | ||
`#### ${_.sample(itemNames)}`, | ||
`*${_.sample(['Wondrous item', 'Armor', 'Weapon'])}, ${_.sample(['Common', 'Uncommon', 'Rare', 'Very Rare', 'Legendary', 'Artifact'])} (requires attunement)*`, | ||
`<div style='margin-top:-2px'></div>`, | ||
`This knob is pretty nice. It opens the door you put it on.` | ||
`*${_.sample(level)}-level ${_.sample(spellSchools)}*` | ||
].join('\n'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters