Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

NaN Value for light weapons with special material. #3

Open
Lexaj-dev opened this issue Aug 16, 2021 · 1 comment
Open

NaN Value for light weapons with special material. #3

Lexaj-dev opened this issue Aug 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Lexaj-dev
Copy link

If in the "Create Item" window a light item is given a special material there is no value given in preview and in the final item the Value is set as NaN.

@Lexaj-dev Lexaj-dev added the bug Something isn't working label Aug 16, 2021
@Lexaj-dev
Copy link
Author

Lexaj-dev commented Aug 16, 2021

This is probably because the value is calculated
weapon price + flat material price + material price per bulk * bulk
and if bulk is a char instead of a number it returns the calculation as Not a Number.

Edit: just found your function for that, but nonetheless something appears to go wrong with it, because the problem occurs under the current version and 2 different instances of foundry

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant