[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 authored and GitHub committed 2023-07-03 00:08:04 -05:00
1 parent 5519c3e781
commit a633784f78
7 files changed
+111 -83

No files matched your search

+3
View File
@@ -1331,6 +1331,9 @@ public:
bool HasSpellEffect(int effect_id);
std::string GetRacePlural();
std::string GetClassPlural();
//Command #Tune functions
void TuneGetStats(Mob* defender, Mob *attacker);
void TuneGetACByPctMitigation(Mob* defender, Mob *attacker, float pct_mitigation, int interval = 10, int max_loop = 1000, int atk_override = 0, int Msg = 0);