mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 07:09:53 +03:00
feat(glue): implement Script_GetHairCustomization
This commit is contained in:
1 file changed
+11
-1
@@ -181,7 +181,17 @@ int32_t Script_GetClassesForRace(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_GetHairCustomization(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
auto raceIndex = CCharacterCreation::s_raceIndex;
|
||||
auto raceID = raceIndex >= CCharacterCreation::s_races.Count() ? 0 : CCharacterCreation::s_races[raceIndex];
|
||||
auto raceRec = g_chrRacesDB.GetRecord(raceID);
|
||||
|
||||
if (raceRec) {
|
||||
lua_pushstring(L, raceRec->m_hairCustomization);
|
||||
} else {
|
||||
lua_pushstring(L, "NORMAL");
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t Script_GetFacialHairCustomization(lua_State* L) {
|
||||
|
||||
Reference in new issue
Block a user