[Quest API] Add GetClassPlural() and GetRacePlural() to Perl/Lua (#3468)

* [Quest API] Add GetClassPlural() and GetRacePlural() to Perl/Lua

# Perl
- Add `$mob->GetClassPlural()`.
- Add `$mob->GetRacePlural()`.

# Lua
- Add `mob:GetClassPlural()`.
- Add `mob:GetRacePlural()`.

# Notes
- Allows operators to get the plural of a player class or race, example being `Warrior` as `Warriors` or `Dark Elf` as `Dark Elves`.

* Update mob.cpp
This commit is contained in:
Alex King
2023-07-03 01:08:04 -04:00
committed by GitHub
parent 5519c3e781
commit a633784f78
7 changed files with 111 additions and 83 deletions
+2
View File
@@ -554,6 +554,8 @@ public:
Lua_Mob_List GetCloseMobList();
Lua_Mob_List GetCloseMobList(float distance);
Lua_Mob_List GetCloseMobList(float distance, bool ignore_self);
std::string GetClassPlural();
std::string GetRacePlural();
};
#endif