summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-01-18 11:57:42 -0200
committershennetsind <ind@henn.et>2015-01-18 11:57:42 -0200
commitca3f103a32221eda0929927563e4f9961472afdf (patch)
tree515c6310199ae4f5ac60a35b57332cdcd52dcf61 /src/map/skill.c
parentdf961e808a5256031ad3697650ab5f4ba5ddbe16 (diff)
downloadhercules-ca3f103a32221eda0929927563e4f9961472afdf.tar.gz
hercules-ca3f103a32221eda0929927563e4f9961472afdf.tar.bz2
hercules-ca3f103a32221eda0929927563e4f9961472afdf.tar.xz
hercules-ca3f103a32221eda0929927563e4f9961472afdf.zip
Replacing rand leftovers with the mt19937ar
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 6b0c99522..05cb887f9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1219,9 +1219,9 @@ int skill_additional_effect(struct block_list* src, struct block_list *bl, uint1
case LG_HESPERUSLIT:
if ( sc && sc->data[SC_BANDING] ) {
if ( sc->data[SC_BANDING]->val2 == 4 ) // 4 banding RGs: Targets will be stunned at 100% chance for 4 ~ 8 seconds, irreducible by STAT.
- status->change_start(src, bl, SC_STUN, 10000, skill_lv, 0, 0, 0, 1000*(4+rand()%4), SCFLAG_FIXEDTICK);
+ status->change_start(src, bl, SC_STUN, 10000, skill_lv, 0, 0, 0, 1000*(4+rnd()%4), SCFLAG_FIXEDTICK);
else if ( sc->data[SC_BANDING]->val2 == 6 ) // 6 banding RGs: activate Pinpoint Attack Lv1-5
- skill->castend_damage_id(src,bl,LG_PINPOINTATTACK,1+rand()%5,tick,0);
+ skill->castend_damage_id(src,bl,LG_PINPOINTATTACK,1+rnd()%5,tick,0);
}
break;
case LG_PINPOINTATTACK:
@@ -2677,7 +2677,7 @@ int skill_attack(int attack_type, struct block_list* src, struct block_list *dsr
// This ensures the storm randomly pushes instead of exactly a cell backwards per official mechanics.
case WZ_STORMGUST:
if(!battle_config.stormgust_knockback)
- dir = rand()%8;
+ dir = rnd()%8;
break;
case WL_CRIMSONROCK:
dir = map->calc_dir(bl,skill->area_temp[4],skill->area_temp[5]);
@@ -9663,7 +9663,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
case KO_JYUSATSU:
if( dstsd && tsc && !tsc->data[type]
- && rand()%100 < (10 * (5 * skill_lv - status_get_int(bl) / 2 + 45 + 5 * skill_lv))
+ && rnd()%100 < (10 * (5 * skill_lv - status_get_int(bl) / 2 + 45 + 5 * skill_lv))
) {
clif->skill_nodamage(src, bl, skill_id, skill_lv,
status->change_start(src, bl, type, 10000, skill_lv, 0, 0, 0, skill->get_time(skill_id, skill_lv), SCFLAG_NOAVOID));