Skip to content

Commit

Permalink
[Scripting] Item.maxDamage
Browse files Browse the repository at this point in the history
  • Loading branch information
Imrglop committed Dec 1, 2024
1 parent 1648283 commit b814bc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/script/class/impl/game/JsItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class JsItem : public JsWrapperClass<SDK::Item> {
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;
}

Expand Down

0 comments on commit b814bc2

Please sign in to comment.