summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-12-10 01:07:18 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-12-10 01:07:18 +0800
commitff145549f389e63be01234ddf778905700883d20 (patch)
tree080202382e0b87055104c66a1ccb985909542b69 /src/map
parent8faef4ff7ef37f52f24ac6e1e026a418b19db1fe (diff)
downloadhercules-ff145549f389e63be01234ddf778905700883d20.tar.gz
hercules-ff145549f389e63be01234ddf778905700883d20.tar.bz2
hercules-ff145549f389e63be01234ddf778905700883d20.tar.xz
hercules-ff145549f389e63be01234ddf778905700883d20.zip
Follow up 8faef4ff7ef37f52f24ac6e1e026a418b19db1fe
-oops.compile warning.. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/status.c20
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