04-27-2018, 09:18 AM
If I'm reading it right, that code would seem to be correct... 100 ticks / 20 tps = 5 seconds and 900 /20 tps = 45 seconds.
The enchantment even takes off the right amount of time. 100 ticks or 5 sec each level.
The tps of my server is always 19.99 something or 20 even. Is there any other code that might be affecting the fishing speed?
I just tested it again on a clear day with the sun directly overhead and I still got up to 1 minute 50 seconds (Which is more than double what it should be).
The enchantment even takes off the right amount of time. 100 ticks or 5 sec each level.
The tps of my server is always 19.99 something or 20 even. Is there any other code that might be affecting the fishing speed?
I just tested it again on a clear day with the sun directly overhead and I still got up to 1 minute 50 seconds (Which is more than double what it should be).
(04-26-2018, 04:33 PM)NiLSPACE Wrote: That's quite easy to fix. In this line
(Random.RandInt(100, 900) - static_cast<int>(a_Player->GetEquippedItem().m_Enchantments.GetLevel(cEnchantments::enchLure) * 100))should be changed to produce less ticks.