Thread: Forage oddness
View Single Post
  #8  
Old 04-19-2015, 11:36 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,604
Default

Check forage.cpp, the defaults are stored here:
Code:
uint32 common_food_ids[MAX_COMMON_FOOD_IDS] = {
    13046, // Fruit
    13045, // Berries
    13419, // Vegetables
    13048, // Rabbit Meat
    13047, // Roots
    13044, // Pod Of Water
    14905, // mushroom
    13106 // Fishing Grubs
};
So you can remove that and remove this:
Code:
if(foragedfood == 0) {
    uint8 index = 0;
    index = zone->random.Int(0, MAX_COMMON_FOOD_IDS-1);
    foragedfood = common_food_ids[index];
}
Reply With Quote