diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-13 08:29:47 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-04-05 21:20:35 +0200 |
commit | 09e291009156002e83566afe7a10b6509f5463f5 (patch) | |
tree | fd1d323198764c61892f9da7962e1442e2a86a1b /src/map/status.c | |
parent | 554e54afebf3eed9d6293a7891c66320af2586a0 (diff) | |
download | hercules-09e291009156002e83566afe7a10b6509f5463f5.tar.gz hercules-09e291009156002e83566afe7a10b6509f5463f5.tar.bz2 hercules-09e291009156002e83566afe7a10b6509f5463f5.tar.xz hercules-09e291009156002e83566afe7a10b6509f5463f5.zip |
Add enum for pet intimacy levels and use its constants
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index 4e7094569..bee5645ad 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2583,7 +2583,7 @@ static int status_calc_pc_(struct map_session_data *sd, enum e_status_calc_opt o struct pet_data *pd = sd->pd; if( pd && pd->petDB && pd->petDB->equip_script && pd->pet.intimate >= battle_config.pet_equip_min_friendly ) script->run(pd->petDB->equip_script,0,sd->bl.id,0); - if( pd && pd->pet.intimate > 0 && (!battle_config.pet_equip_required || pd->pet.equip > 0) && pd->state.skillbonus == 1 && pd->bonus ) + if (pd && pd->pet.intimate > PET_INTIMACY_NONE && (!battle_config.pet_equip_required || pd->pet.equip > 0) && pd->state.skillbonus == 1 && pd->bonus) pc->bonus(sd,pd->bonus->type, pd->bonus->val); } |