1
0
Fork 0
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:
Maxime Moraine 2020-04-10 16:37:48 +02:00
parent bde611ae9b
commit 510db9f858
58 changed files with 29311 additions and 365 deletions

View 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
}