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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix special skills lua description
  • Loading branch information
nekiro committed Jun 23, 2022
1 parent 3a35b3f commit e85bbcd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/luascript.cpp
Expand Up @@ -11814,6 +11814,14 @@ int LuaScriptInterface::luaItemTypeGetAbilities(lua_State* L)
}
lua_setfield(L, -2, "skills");

// Special skills
lua_createtable(L, 0, SPECIALSKILL_LAST + 1);
for (int32_t i = SPECIALSKILL_FIRST; i <= SPECIALSKILL_LAST; i++) {
lua_pushnumber(L, abilities.specialSkills[i]);
lua_rawseti(L, -2, i + 1);
}
lua_setfield(L, -2, "specialSkills");

// Field absorb percent
lua_createtable(L, 0, COMBAT_COUNT);
for (int32_t i = 0; i < COMBAT_COUNT; i++) {
Expand Down

0 comments on commit e85bbcd

Please sign in to comment.