added item display, item rolling

This commit is contained in:
Lyle hayhurst
2021-06-04 09:02:52 -05:00
parent 9ffa796eeb
commit ec207fa658
3 changed files with 17 additions and 3 deletions

View File

@@ -127,7 +127,13 @@ export class wfrp4e {
getItemUses(item) {
return {available: item.data.data.quantity};
console.log("getItemUses(" , item , ")")
if ( item.type == 'ammunition') {
return {available: item.data.data.quantity.value};
}
else {
return {};
}
}
/**