mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 19:41:30 +00:00
Fix NPC chance on fishing (100 = 100% chance now)
This commit is contained in:
parent
0f3fbc3883
commit
e594b7eac6
@ -278,7 +278,7 @@ void Client::GoFish()
|
|||||||
|
|
||||||
//check for add NPC
|
//check for add NPC
|
||||||
if (npc_chance > 0 && npc_id) {
|
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);
|
const NPCType *tmp = database.LoadNPCTypesData(npc_id);
|
||||||
if (tmp != nullptr) {
|
if (tmp != nullptr) {
|
||||||
auto positionNPC = GetPosition();
|
auto positionNPC = GetPosition();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user