mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-09-22 07:36:58 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fc2f91834 | |||
| 05cfce240b | |||
| d49ed5abcc | |||
| ea01c9ef15 | |||
| 315f6bb4f1 | |||
| fd9618f184 |
@@ -14,6 +14,16 @@ You play the best class, now you have the best companion for it (and its not you
|
||||
- MetaHunt is fully compatible with QUIVER <3, and is not a replacement for it.
|
||||
- The addon purposely disable itself on all Capycraft/Ravencraft Realms, following the DDOS attacks they conducted on other servers.
|
||||
|
||||
|
||||
### Installation (READ THIS!) ⚠️⚠️⚠️
|
||||
|
||||
After you download the zip, you have a manual action to do because of Gitea behaviour.
|
||||
|
||||
When you unzip, you will find a "metahunt" root folder, you SHOULD rename it as exactly "MetaHunt", and then move that folder in your \Interface\AddOns\ directory. If you dont restore the capital letters in the folder name, the addon will be broken.
|
||||
|
||||
This is [a known issue from Gitea/Forgejo](https://codeberg.org/forgejo/forgejo/issues/800) when the system creates zip files, and there's nothing add-on devs can do to overcome it.
|
||||
|
||||
|
||||
## Twow Data
|
||||
|
||||
MetaHunt ships with large twow datastores, and notably:
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
local MTH_LT_Frame = nil
|
||||
local MTH_LT_PendingPetCheck = false
|
||||
local MTH_LT_SuppressUntil = 0
|
||||
|
||||
local MTH_LT_HunterLines = {
|
||||
[1] = "You can now track beasts. Revolutionary: look for the things you intend to shoot.",
|
||||
@@ -293,6 +294,13 @@ local function MTH_LT_HandlePetState()
|
||||
store.pet = state
|
||||
return
|
||||
end
|
||||
-- Just after a loading screen the pet's real level/loyalty can arrive a beat
|
||||
-- late; record them as the baseline silently so we never announce progress
|
||||
-- that actually happened in an earlier session (e.g. a fresh install).
|
||||
if type(GetTime) == "function" and MTH_LT_SuppressUntil > 0 and GetTime() < MTH_LT_SuppressUntil then
|
||||
store.pet = state
|
||||
return
|
||||
end
|
||||
if state.level > (tonumber(pet.level) or 0) then
|
||||
local line = MTH_LT_NextLine(store, "petLine", MTH_LT_PetLines)
|
||||
if MTH_LT_MessageEnabled("petLevelUp", true) then MTH:Print(state.name .. " reached level " .. state.level .. ". " .. line) end
|
||||
@@ -368,6 +376,7 @@ function MTH_LevelTracker_Initialize()
|
||||
if event == "PLAYER_ENTERING_WORLD" then
|
||||
local level = type(UnitLevel) == "function" and tonumber(UnitLevel("player")) or nil
|
||||
if level then MTH_LT_Store().hunterLevel = level end
|
||||
if type(GetTime) == "function" then MTH_LT_SuppressUntil = GetTime() + 8 end
|
||||
MTH_LT_RequestPetCheck()
|
||||
elseif event == "PLAYER_LEVEL_UP" then
|
||||
MTH_LT_HandleHunterLevel(tonumber(arg1) or tonumber(UnitLevel("player")) or 1)
|
||||
|
||||
Reference in New Issue
Block a user