Fix NPC chance on fishing (100 = 100% chance now)

This commit is contained in:
Michael Cook (mackal) 2018-03-29 18:28:36 -04:00
parent 0f3fbc3883
commit e594b7eac6

View File

@ -278,7 +278,7 @@ void Client::GoFish()
//check for add NPC
if (npc_chance > 0 && npc_id) {
if (npc_chance < zone->random.Int(0, 99)) {
if (zone->random.Roll(npc_chance)) {
const NPCType *tmp = database.LoadNPCTypesData(npc_id);
if (tmp != nullptr) {
auto positionNPC = GetPosition();