mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-12-17 07:30:47 +00:00
WIP bestiaire
This commit is contained in:
parent
bde611ae9b
commit
510db9f858
58 changed files with 29311 additions and 365 deletions
15
docs/.vuepress/theme/util/magicItemHelpers.js
Normal file
15
docs/.vuepress/theme/util/magicItemHelpers.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
export function displayItemMeta (item, short = false) {
|
||||
let result = item.type
|
||||
if (item.subtype) {
|
||||
result += ' (' + item.subtype + ')'
|
||||
}
|
||||
result += ', ' + item.rarity
|
||||
if (item.attunement) {
|
||||
if (short) {
|
||||
result += ' (harmonisation requise)'
|
||||
} else {
|
||||
result += ' (' + item.attunement + ')'
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue