[Quest API] Add Lua_Mob::GetShuffledHateList (#1381)

This returns the hate list but in a random order. This is useful to
prevent repeated (potentially infinite ...) calls to GetHateRandom()
This commit is contained in:
Michael Cook (mackal)
2021-06-11 14:28:35 -04:00
committed by GitHub
parent 854a09fc84
commit 02526072f3
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -199,6 +199,7 @@ public:
Lua_Mob GetPet();
Lua_Mob GetOwner();
Lua_HateList GetHateList();
Lua_HateList GetShuffledHateList();
Lua_HateList GetHateListByDistance();
Lua_HateList GetHateListByDistance(int distance);
Lua_Mob GetHateTop();