Corrected pet bonuses not applying (#4292)
* Fixes #4283. * Corrected pet bonuses not applying on intimacy changes. * Removed pet_equip_min_friendly battle config as bonuses are determined on intimacy in the bonus script. Thanks to @teededung!
This commit is contained in:
@@ -600,17 +600,13 @@ int pet_hungry_val(struct pet_data *pd)
|
||||
*/
|
||||
void pet_set_intimate(struct pet_data *pd, int value)
|
||||
{
|
||||
int intimate;
|
||||
struct map_session_data *sd;
|
||||
|
||||
nullpo_retv(pd);
|
||||
|
||||
intimate = pd->pet.intimate;
|
||||
sd = pd->master;
|
||||
|
||||
pd->pet.intimate = min(value, PET_INTIMATE_MAX);
|
||||
|
||||
if( sd && ((intimate >= battle_config.pet_equip_min_friendly && pd->pet.intimate < battle_config.pet_equip_min_friendly) || (intimate < battle_config.pet_equip_min_friendly && pd->pet.intimate >= battle_config.pet_equip_min_friendly)) )
|
||||
struct map_session_data *sd = pd->master;
|
||||
|
||||
if (sd)
|
||||
status_calc_pc(sd,SCO_NONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user