mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-29 04:12:24 +00:00
Merge pull request #578 from noudess/master
Add fish names to fishing messages as per live for non junk items,
This commit is contained in:
commit
ab0f883191
@ -306,7 +306,13 @@ void Client::GoFish()
|
|||||||
|
|
||||||
const EQEmu::ItemData* food_item = database.GetItem(food_id);
|
const EQEmu::ItemData* food_item = database.GetItem(food_id);
|
||||||
|
|
||||||
Message_StringID(MT_Skills, FISHING_SUCCESS);
|
if (food_item->ItemType != EQEmu::item::ItemTypeFood) {
|
||||||
|
Message_StringID(MT_Skills, FISHING_SUCCESS);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Message_StringID(MT_Skills, FISHING_SUCCESS_FISH_NAME, food_item->Name);
|
||||||
|
}
|
||||||
|
|
||||||
EQEmu::ItemInstance* inst = database.CreateItem(food_item, 1);
|
EQEmu::ItemInstance* inst = database.CreateItem(food_item, 1);
|
||||||
if(inst != nullptr) {
|
if(inst != nullptr) {
|
||||||
if(CheckLoreConflict(inst->GetItem()))
|
if(CheckLoreConflict(inst->GetItem()))
|
||||||
|
|||||||
@ -46,6 +46,7 @@
|
|||||||
#define FISHING_FAILED 168 //You didn't catch anything.
|
#define FISHING_FAILED 168 //You didn't catch anything.
|
||||||
#define FISHING_POLE_BROKE 169 //Your fishing pole broke!
|
#define FISHING_POLE_BROKE 169 //Your fishing pole broke!
|
||||||
#define FISHING_SUCCESS 170 //You caught, something...
|
#define FISHING_SUCCESS 170 //You caught, something...
|
||||||
|
#define FISHING_SUCCESS_FISH_NAME 421 //You caught %1!
|
||||||
#define FISHING_SPILL_BEER 171 //You spill your beer while bringing in your line.
|
#define FISHING_SPILL_BEER 171 //You spill your beer while bringing in your line.
|
||||||
#define FISHING_LOST_BAIT 172 //You lost your bait!
|
#define FISHING_LOST_BAIT 172 //You lost your bait!
|
||||||
#define SPELL_FIZZLE 173 //Your spell fizzles!
|
#define SPELL_FIZZLE 173 //Your spell fizzles!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user