mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Add check for fishing pole expendable using new subtype field.
This commit is contained in:
parent
c799267c86
commit
94606504af
@ -368,7 +368,8 @@ void Client::GoFish()
|
||||
//chance to break fishing pole...
|
||||
//this is potentially exploitable in that they can fish
|
||||
//and then swap out items in primary slot... too lazy to fix right now
|
||||
if (zone->random.Int(0, 49) == 1) {
|
||||
const EQEmu::ItemInstance* Pole = m_inv[EQEmu::invslot::slotPrimary];
|
||||
if (Pole && Pole->GetItem()->SubType == 1 && zone->random.Int(0, 49) == 1) {
|
||||
MessageString(Chat::Skills, FISHING_POLE_BROKE); //Your fishing pole broke!
|
||||
DeleteItemInInventory(EQEmu::invslot::slotPrimary, 0, true);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user