Follow up to 083cf5d
- Fixed compile warnings.
This commit is contained in:
parent
083cf5d962
commit
769a27287f
@ -2156,9 +2156,9 @@ unsigned int status_weapon_atk(struct weapon_atk wa, struct status_data *status)
|
|||||||
unsigned short status_base_matk_max(const struct status_data* status) { return status->int_ + (status->int_ / 5) * (status->int_ / 5); }
|
unsigned short status_base_matk_max(const struct status_data* status) { return status->int_ + (status->int_ / 5) * (status->int_ / 5); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef RENEWAL
|
||||||
unsigned short status_base_matk(struct block_list *bl, const struct status_data* status, int level)
|
unsigned short status_base_matk(struct block_list *bl, const struct status_data* status, int level)
|
||||||
{
|
{
|
||||||
#ifdef RENEWAL
|
|
||||||
switch (bl->type) {
|
switch (bl->type) {
|
||||||
case BL_MOB:
|
case BL_MOB:
|
||||||
return status->int_ + level;
|
return status->int_ + level;
|
||||||
@ -2168,10 +2168,8 @@ unsigned short status_base_matk(struct block_list *bl, const struct status_data*
|
|||||||
default:
|
default:
|
||||||
return status->int_ + (status->int_ / 2) + (status->dex / 5) + (status->luk / 3) + (level / 4);
|
return status->int_ + (status->int_ / 2) + (status->dex / 5) + (status->luk / 3) + (level / 4);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fills in the misc data that can be calculated from the other status info (except for level)
|
* Fills in the misc data that can be calculated from the other status info (except for level)
|
||||||
|
@ -2060,10 +2060,10 @@ int status_change_spread( struct block_list *src, struct block_list *bl );
|
|||||||
unsigned short status_base_matk_max(const struct status_data* status);
|
unsigned short status_base_matk_max(const struct status_data* status);
|
||||||
#else
|
#else
|
||||||
unsigned int status_weapon_atk(struct weapon_atk wa, struct status_data *status);
|
unsigned int status_weapon_atk(struct weapon_atk wa, struct status_data *status);
|
||||||
|
unsigned short status_base_matk(struct block_list *bl, const struct status_data* status, int level);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned short status_base_atk(const struct block_list *bl, const struct status_data *status);
|
unsigned short status_base_atk(const struct block_list *bl, const struct status_data *status);
|
||||||
unsigned short status_base_matk(struct block_list *bl, const struct status_data* status, int level);
|
|
||||||
|
|
||||||
int status_readdb(void);
|
int status_readdb(void);
|
||||||
int do_init_status(void);
|
int do_init_status(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user