Skip to content

Commit

Permalink
Initialze atk%, def% etc to 100 for all bl types
Browse files Browse the repository at this point in the history
  • Loading branch information
skyleo committed May 2, 2024
1 parent a2d8e27 commit 2cd2abb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/map/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -3884,6 +3884,11 @@ static void status_calc_misc(struct block_list *bl, struct status_data *st, int
st->mdef2 += st->int_ + (st->vit >> 1);
#endif // RENEWAL

st->atk_percent = 100
st->matk_percent = 100;
st->def_percent = 100;
st->mdef_percent = 100;

if ( bl->type&battle_config.enable_critical )
st->cri += 10 + (st->luk * 10 / 3); // (every 1 luk = +0.33 critical -> 3 luk = +1 critical)
else
Expand Down

0 comments on commit 2cd2abb

Please sign in to comment.