Talk:Fisherman's Belt: Difference between revisions
From HorizonXI Wiki
(Created page with "''' -1 Bite Time is not attached to enchantment '''<br> Below is a code snippet from ASB that indicates the belt must only be equipped to get the -1 bite time. I updated the wiki to more plainly state this feature. <pre> uint16 GetHookTime(CCharEntity* PChar) { uint16 waitTime = 13; uint8 moonPhase = GetMoonPhase(); uint8 hour = (uint8)CVanaTime::getInstance()->getHour(); fishing_gear_t gear = Get...") |
(No difference)
|
Latest revision as of 03:06, 7 January 2025
-1 Bite Time is not attached to enchantment
Below is a code snippet from ASB that indicates the belt must only be equipped to get the -1 bite time. I updated the wiki to more plainly state this feature.
uint16 GetHookTime(CCharEntity* PChar)
{
uint16 waitTime = 13;
uint8 moonPhase = GetMoonPhase();
uint8 hour = (uint8)CVanaTime::getInstance()->getHour();
fishing_gear_t gear = GetFishingGear(PChar);
if (moonPhase == MOONPHASE_NEW || moonPhase == MOONPHASE_FULL)
{
waitTime -= 4;
}
if (hour == 5 || hour == 17)
{
waitTime -= 1;
}
if (gear.waist == FISHERMANS_BELT)
{
waitTime -= 1;
}
return std::max<uint16>(7, waitTime);
}
Thanks to Liljack (Discord ajland) in HXI Discord Fishing channel for the info! --Raegn (talk) 03:05, 7 January 2025 (UTC)
