diff options
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/map/status.c b/src/map/status.c index bad818b74..9fbda4b59 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -11569,6 +11569,16 @@ void status_get_matk_sub(struct block_list *bl, int flag, unsigned short *matk_m } /** +* Gets a random matk value depending on min matk and max matk +**/ +unsigned short status_get_rand_matk(unsigned short matk_max, unsigned short matk_min) { + if ( matk_max > matk_min ) + return matk_min + rnd() % (matk_max - matk_min); + else + return matk_min; +} + +/** * Get bl's matk value depending on flag * @param flag [malufett] * 1 - Get MATK w/o SC bonuses @@ -11630,16 +11640,6 @@ void status_update_matk(struct block_list *bl) { return; } -/** - * Gets a random matk value depending on min matk and max matk - **/ -unsigned short status_get_rand_matk( unsigned short matk_max, unsigned short matk_min ) { - if( matk_max > matk_min ) - return matk_min + rnd()%(matk_max - matk_min); - else - return matk_min; -} - /*========================================== * Clears buffs/debuffs of a character. * type&1 -> buffs, type&2 -> debuffs |