diff --git a/src/client/script/class/impl/game/JsItem.h b/src/client/script/class/impl/game/JsItem.h index a72eac68..e6db4317 100644 --- a/src/client/script/class/impl/game/JsItem.h +++ b/src/client/script/class/impl/game/JsItem.h @@ -32,6 +32,7 @@ class JsItem : public JsWrapperClass { JS::JsSetPrototype(obj, getPrototype()); Chakra::SetPropertyString(obj, XW("name"), util::StrToWStr(item->namespacedId.getString())); Chakra::SetPropertyString(obj, XW("translateName"), util::StrToWStr(item->translateName)); + Chakra::SetPropertyNumber(obj, XW("maxDamage"), item->getMaxDamage()); return obj; }