mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 02:27:21 +00:00
[forage rule feature] add a rule to disabled using common_food_ids from the list in forage.cpp. currently set to enabled. (#3796)
This commit is contained in:
1 parent
e06c7d7735
commit
267c280db8
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -456,7 +456,7 @@ void Client::ForageItem(bool guarantee) {
|
||||
}
|
||||
|
||||
//not an else in case theres no DB food
|
||||
if (foragedfood == 0) {
|
||||
if (foragedfood == 0 && RuleB(Character, UseForageCommonFood)) {
|
||||
uint8 index = 0;
|
||||
index = zone->random.Int(0, MAX_COMMON_FOOD_IDS-1);
|
||||
foragedfood = common_food_ids[index];
|
||||
|
||||
Reference in new issue
Block a user