diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-03-02 13:52:33 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-03-02 14:06:46 -0800 |
commit | a1a2711abfc594f2be1da51df95ddcd7071ddebd (patch) | |
tree | 9128237fc4794b917394a1c39221d08cc78c1b54 /src/map/battle.c | |
parent | 877018d1296c984afe72b79f076265d6d27c3a7c (diff) | |
download | tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.gz tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.bz2 tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.xz tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.zip |
Recode from SHIFT-JIS to unicode, then undo the conversion of backslashs and tildes.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 1258 |
1 files changed, 629 insertions, 629 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 9d868c7..f81aaf0 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -29,8 +29,8 @@ int attr_fix_table[4][10][10]; struct Battle_Config battle_config; /*========================================== - * ñ_ÔÌ£ðÔ· - * ßèÍ®Å0Èã + * äºç¹éã®è·é¢ãè¿ã + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ static int distance (int x0, int y0, int x1, int y1) @@ -43,8 +43,8 @@ static int distance (int x0, int y0, int x1, int y1) } /*========================================== - * ©ªðbNµÄ¢éÎÛÌðÔ·(Äp) - * ßèÍ®Å0Èã + * èªåãããã¯ããŠãã察象ã®æ°ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_counttargeted (struct block_list *bl, struct block_list *src, @@ -60,8 +60,8 @@ int battle_counttargeted (struct block_list *bl, struct block_list *src, } /*========================================== - * ÎÛÌClassðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Classãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_class (struct block_list *bl) @@ -76,8 +76,8 @@ int battle_get_class (struct block_list *bl) } /*========================================== - * ÎÛÌûüðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®æ¹åãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_dir (struct block_list *bl) @@ -92,8 +92,8 @@ int battle_get_dir (struct block_list *bl) } /*========================================== - * ÎÛÌxðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®ã¬ãã«ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_lv (struct block_list *bl) @@ -108,8 +108,8 @@ int battle_get_lv (struct block_list *bl) } /*========================================== - * ÎÛÌËöðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®å°çšãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_range (struct block_list *bl) @@ -124,8 +124,8 @@ int battle_get_range (struct block_list *bl) } /*========================================== - * ÎÛÌHPðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®HPãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_hp (struct block_list *bl) @@ -140,8 +140,8 @@ int battle_get_hp (struct block_list *bl) } /*========================================== - * ÎÛÌMHPðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MHPãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_max_hp (struct block_list *bl) @@ -183,8 +183,8 @@ int battle_get_max_hp (struct block_list *bl) } /*========================================== - * ÎÛÌStrðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Strãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_str (struct block_list *bl) @@ -205,15 +205,15 @@ int battle_get_str (struct block_list *bl) && bl->type != BL_PC) str += 4; if (sc_data[SC_BLESSING].timer != -1 && bl->type != BL_PC) - { // ubVO + { // ãã¬ãã·ã³ã° int race = battle_get_race (bl); if (battle_check_undead (race, battle_get_elem_type (bl)) || race == 6) - str >>= 1; // « /s + str >>= 1; // æª é/äžæ» else - str += sc_data[SC_BLESSING].val1; // »ÌŒ + str += sc_data[SC_BLESSING].val1; // ãã®ä» } - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã str += 5; } if (str < 0) @@ -222,8 +222,8 @@ int battle_get_str (struct block_list *bl) } /*========================================== - * ÎÛÌAgiðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Agiãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ @@ -241,19 +241,19 @@ int battle_get_agi (struct block_list *bl) if (sc_data) { - if (sc_data[SC_INCREASEAGI].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1 && bl->type != BL_PC) // ¬xÁ(PCÍpc.cÅ) + if (sc_data[SC_INCREASEAGI].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1 && bl->type != BL_PC) // é床å¢å (PCã¯pc.cã§) agi += 2 + sc_data[SC_INCREASEAGI].val1; if (sc_data[SC_CONCENTRATE].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && bl->type != BL_PC) agi += agi * (2 + sc_data[SC_CONCENTRATE].val1) / 100; - if (sc_data[SC_DECREASEAGI].timer != -1) // ¬xž + if (sc_data[SC_DECREASEAGI].timer != -1) // é床æžå° agi -= 2 + sc_data[SC_DECREASEAGI].val1; - if (sc_data[SC_QUAGMIRE].timer != -1) // N@O}CA + if (sc_data[SC_QUAGMIRE].timer != -1) // ã¯ã¡ã°ãã€ã¢ agi >>= 1; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã agi += 5; } if (agi < 0) @@ -262,8 +262,8 @@ int battle_get_agi (struct block_list *bl) } /*========================================== - * ÎÛÌVitðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Vitãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_vit (struct block_list *bl) @@ -281,7 +281,7 @@ int battle_get_vit (struct block_list *bl) { if (sc_data[SC_STRIPARMOR].timer != -1 && bl->type != BL_PC) vit = vit * 60 / 100; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã vit += 5; } @@ -291,8 +291,8 @@ int battle_get_vit (struct block_list *bl) } /*========================================== - * ÎÛÌIntðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Intãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_int (struct block_list *bl) @@ -310,17 +310,17 @@ int battle_get_int (struct block_list *bl) if (sc_data) { if (sc_data[SC_BLESSING].timer != -1 && bl->type != BL_PC) - { // ubVO + { // ãã¬ãã·ã³ã° int race = battle_get_race (bl); if (battle_check_undead (race, battle_get_elem_type (bl)) || race == 6) - int_ >>= 1; // « /s + int_ >>= 1; // æª é/äžæ» else - int_ += sc_data[SC_BLESSING].val1; // »ÌŒ + int_ += sc_data[SC_BLESSING].val1; // ãã®ä» } if (sc_data[SC_STRIPHELM].timer != -1 && bl->type != BL_PC) int_ = int_ * 60 / 100; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã int_ += 5; } if (int_ < 0) @@ -329,8 +329,8 @@ int battle_get_int (struct block_list *bl) } /*========================================== - * ÎÛÌDexðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Dexãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_dex (struct block_list *bl) @@ -352,18 +352,18 @@ int battle_get_dex (struct block_list *bl) dex += dex * (2 + sc_data[SC_CONCENTRATE].val1) / 100; if (sc_data[SC_BLESSING].timer != -1 && bl->type != BL_PC) - { // ubVO + { // ãã¬ãã·ã³ã° int race = battle_get_race (bl); if (battle_check_undead (race, battle_get_elem_type (bl)) || race == 6) - dex >>= 1; // « /s + dex >>= 1; // æª é/äžæ» else - dex += sc_data[SC_BLESSING].val1; // »ÌŒ + dex += sc_data[SC_BLESSING].val1; // ãã®ä» } - if (sc_data[SC_QUAGMIRE].timer != -1) // N@O}CA + if (sc_data[SC_QUAGMIRE].timer != -1) // ã¯ã¡ã°ãã€ã¢ dex >>= 1; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã dex += 5; } if (dex < 0) @@ -372,8 +372,8 @@ int battle_get_dex (struct block_list *bl) } /*========================================== - * ÎÛÌLukðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Lukãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_luk (struct block_list *bl) @@ -390,11 +390,11 @@ int battle_get_luk (struct block_list *bl) if (sc_data) { - if (sc_data[SC_GLORIA].timer != -1 && bl->type != BL_PC) // OA(PCÍpc.cÅ) + if (sc_data[SC_GLORIA].timer != -1 && bl->type != BL_PC) // ã°ããªã¢(PCã¯pc.cã§) luk += 30; - if (sc_data[SC_CURSE].timer != -1) // ô¢ + if (sc_data[SC_CURSE].timer != -1) // åªã luk = 0; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã luk += 5; } if (luk < 0) @@ -403,8 +403,8 @@ int battle_get_luk (struct block_list *bl) } /*========================================== - * ÎÛÌFleeðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®Fleeãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_flee (struct block_list *bl) @@ -427,9 +427,9 @@ int battle_get_flee (struct block_list *bl) (sc_data[SC_WHISTLE].val3 >> 16)) / 100; if (sc_data[SC_BLIND].timer != -1 && bl->type != BL_PC) flee -= flee * 25 / 100; - if (sc_data[SC_WINDWALK].timer != -1 && bl->type != BL_PC) // EBhEH[N + if (sc_data[SC_WINDWALK].timer != -1 && bl->type != BL_PC) // ãŠã£ã³ããŠã©ãŒã¯ flee += flee * (sc_data[SC_WINDWALK].val2) / 100; - if (sc_data[SC_SPIDERWEB].timer != -1 && bl->type != BL_PC) //XpC_[EFu + if (sc_data[SC_SPIDERWEB].timer != -1 && bl->type != BL_PC) //ã¹ãã€ããŒãŠã§ã flee -= flee * 50 / 100; if (battle_is_unarmed (bl)) @@ -442,8 +442,8 @@ int battle_get_flee (struct block_list *bl) } /*========================================== - * ÎÛÌHitðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®Hitãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_hit (struct block_list *bl) @@ -465,11 +465,11 @@ int battle_get_hit (struct block_list *bl) hit * (sc_data[SC_HUMMING].val1 * 2 + sc_data[SC_HUMMING].val2 + sc_data[SC_HUMMING].val3) / 100; - if (sc_data[SC_BLIND].timer != -1 && bl->type != BL_PC) // ô¢ + if (sc_data[SC_BLIND].timer != -1 && bl->type != BL_PC) // åªã hit -= hit * 25 / 100; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã hit += 3 * (sc_data[SC_TRUESIGHT].val1); - if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //RZg[V + if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ hit += (hit * (10 * (sc_data[SC_CONCENTRATION].val1))) / 100; if (battle_is_unarmed (bl)) @@ -481,8 +481,8 @@ int battle_get_hit (struct block_list *bl) } /*========================================== - * ÎÛÌ®SñððÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®å®å
šåé¿ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_flee2 (struct block_list *bl) @@ -518,8 +518,8 @@ int battle_get_flee2 (struct block_list *bl) } /*========================================== - * ÎÛÌNeBJðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®ã¯ãªãã£ã«ã«ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_critical (struct block_list *bl) @@ -547,7 +547,7 @@ int battle_get_critical (struct block_list *bl) sc_data[SC_FORTUNE].val3) * 10; if (sc_data[SC_EXPLOSIONSPIRITS].timer != -1 && bl->type != BL_PC) critical += sc_data[SC_EXPLOSIONSPIRITS].val2; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) //gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) //ãã¥ã«ãŒãµã€ã critical += critical * sc_data[SC_TRUESIGHT].val1 / 100; } if (critical < 1) @@ -556,8 +556,8 @@ int battle_get_critical (struct block_list *bl) } /*========================================== - * base_atkÌæŸ - * ßèÍ®Å1Èã + * base_atkã®ååŸ + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_baseatk (struct block_list *bl) @@ -568,31 +568,31 @@ int battle_get_baseatk (struct block_list *bl) nullpo_retr (1, bl); sc_data = battle_get_sc_data (bl); if (bl->type == BL_PC && (struct map_session_data *) bl) - batk = ((struct map_session_data *) bl)->base_atk; //Ýè³êÄ¢ébase_atk + batk = ((struct map_session_data *) bl)->base_atk; //èšå®ãããŠããbase_atk else - { //»êÈOÈç + { //ãã以å€ãªã int str, dstr; str = battle_get_str (bl); //STR dstr = str / 10; - batk = dstr * dstr + str; //base_atkðvZ·é + batk = dstr * dstr + str; //base_atkãèšç®ãã } if (sc_data) - { //óÔÙí è - if (sc_data[SC_PROVOKE].timer != -1 && bl->type != BL_PC) //PCÅv{bN(SM_PROVOKE)óÔ - batk = batk * (100 + 2 * sc_data[SC_PROVOKE].val1) / 100; //base_atkÁ - if (sc_data[SC_CURSE].timer != -1) //ôíêÄ¢œç - batk -= batk * 25 / 100; //base_atkª25%ž - if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //RZg[V + { //ç¶æ
ç°åžžãã + if (sc_data[SC_PROVOKE].timer != -1 && bl->type != BL_PC) //PCã§ããããã¯(SM_PROVOKE)ç¶æ
+ batk = batk * (100 + 2 * sc_data[SC_PROVOKE].val1) / 100; //base_atkå¢å + if (sc_data[SC_CURSE].timer != -1) //åªãããŠããã + batk -= batk * 25 / 100; //base_atkã25%æžå° + if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ batk += batk * (5 * sc_data[SC_CONCENTRATION].val1) / 100; } if (batk < 1) - batk = 1; //base_atkÍÅáÅà1 + batk = 1; //base_atkã¯æäœã§ã1 return batk; } /*========================================== - * ÎÛÌAtkðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Atkãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk (struct block_list *bl) @@ -613,7 +613,7 @@ int battle_get_atk (struct block_list *bl) atk = atk * (100 + 2 * sc_data[SC_PROVOKE].val1) / 100; if (sc_data[SC_CURSE].timer != -1) atk -= atk * 25 / 100; - if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //RZg[V + if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ atk += atk * (5 * sc_data[SC_CONCENTRATION].val1) / 100; } if (atk < 0) @@ -622,8 +622,8 @@ int battle_get_atk (struct block_list *bl) } /*========================================== - * ÎÛ̶èAtkðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®å·ŠæAtkãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk_ (struct block_list *bl) @@ -642,8 +642,8 @@ int battle_get_atk_ (struct block_list *bl) } /*========================================== - * ÎÛÌAtk2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Atk2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk2 (struct block_list *bl) @@ -672,7 +672,7 @@ int battle_get_atk2 (struct block_list *bl) atk2 += sc_data[SC_NIBELUNGEN].val2; if (sc_data[SC_STRIPWEAPON].timer != -1) atk2 = atk2 * 90 / 100; - if (sc_data[SC_CONCENTRATION].timer != -1) //RZg[V + if (sc_data[SC_CONCENTRATION].timer != -1) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ atk2 += atk2 * (5 * sc_data[SC_CONCENTRATION].val1) / 100; } @@ -684,8 +684,8 @@ int battle_get_atk2 (struct block_list *bl) } /*========================================== - * ÎÛ̶èAtk2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®å·ŠæAtk2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk_2 (struct block_list *bl) @@ -698,8 +698,8 @@ int battle_get_atk_2 (struct block_list *bl) } /*========================================== - * ÎÛÌMAtk1ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MAtk1ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_matk1 (struct block_list *bl) @@ -724,8 +724,8 @@ int battle_get_matk1 (struct block_list *bl) } /*========================================== - * ÎÛÌMAtk2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MAtk2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_matk2 (struct block_list *bl) @@ -749,8 +749,8 @@ int battle_get_matk2 (struct block_list *bl) } /*========================================== - * ÎÛÌDefðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Defãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_def (struct block_list *bl) @@ -777,38 +777,38 @@ int battle_get_def (struct block_list *bl) { if (sc_data) { - //L[sOÍDEF100 + //ããŒãã³ã°æã¯DEF100 if (sc_data[SC_KEEPING].timer != -1) def = 100; - //v{bNÍžZ + //ããããã¯æã¯æžç® if (sc_data[SC_PROVOKE].timer != -1 && bl->type != BL_PC) def = (def * (100 - 6 * sc_data[SC_PROVOKE].val1) + 50) / 100; - //íŸÛÌ¿«ÍÁZ + //æŠå€ªéŒã®é¿ãæã¯å ç® if (sc_data[SC_DRUMBATTLE].timer != -1 && bl->type != BL_PC) def += sc_data[SC_DRUMBATTLE].val3; - //ÅÉ©©ÁÄ¢éÍžZ + //æ¯ã«ããã£ãŠããæã¯æžç® if (sc_data[SC_POISON].timer != -1 && bl->type != BL_PC) def = def * 75 / 100; - //XgbvV[hÍžZ + //ã¹ããªããã·ãŒã«ãæã¯æžç® if (sc_data[SC_STRIPSHIELD].timer != -1 && bl->type != BL_PC) def = def * 85 / 100; - //VOiNVXÍžZ + //ã·ã°ãã ã¯ã«ã·ã¹æã¯æžç® if (sc_data[SC_SIGNUMCRUCIS].timer != -1 && bl->type != BL_PC) def = def * (100 - sc_data[SC_SIGNUMCRUCIS].val2) / 100; - //i̬×ÍDEF0ÉÈé + //æ°žé ã®æ··æ²æã¯DEF0ã«ãªã if (sc_data[SC_ETERNALCHAOS].timer != -1 && bl->type != BL_PC) def = 0; - //AλÍEVtg + //åçµãç³åæã¯å³ã·ãã if (sc_data[SC_FREEZE].timer != -1 || (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0)) def >>= 1; - //RZg[VÍžZ + //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³æã¯æžç® if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) def = (def * (100 - 5 * sc_data[SC_CONCENTRATION].val1)) / 100; } - //r¥Ír¥žZŠÉîâĞZ + //è© å±äžã¯è© å±ææžç®çã«åºã¥ããŠæžç® if (skilltimer != -1) { int def_rate = skill_get_castdef (skillid); @@ -822,8 +822,8 @@ int battle_get_def (struct block_list *bl) } /*========================================== - * ÎÛÌMDefðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MDefãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_mdef (struct block_list *bl) @@ -842,7 +842,7 @@ int battle_get_mdef (struct block_list *bl) { if (sc_data) { - //oA[óÔÍMDEF100 + //ããªã¢ãŒç¶æ
æã¯MDEF100 if (mdef < 90 && sc_data[SC_MBARRIER].timer != -1) { mdef += sc_data[SC_MBARRIER].val1; @@ -851,7 +851,7 @@ int battle_get_mdef (struct block_list *bl) } if (sc_data[SC_BARRIER].timer != -1) mdef = 100; - //AλÍ1.25{ + //åçµãç³åæã¯1.25å if (sc_data[SC_FREEZE].timer != -1 || (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0)) @@ -866,8 +866,8 @@ int battle_get_mdef (struct block_list *bl) } /*========================================== - * ÎÛÌDef2ðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®Def2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_def2 (struct block_list *bl) @@ -890,7 +890,7 @@ int battle_get_def2 (struct block_list *bl) def2 = (def2 * (100 - 6 * sc_data[SC_PROVOKE].val1) + 50) / 100; if (sc_data[SC_POISON].timer != -1 && bl->type != BL_PC) def2 = def2 * 75 / 100; - //RZg[VÍžZ + //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³æã¯æžç® if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) def2 = def2 * (100 - 5 * sc_data[SC_CONCENTRATION].val1) / 100; } @@ -900,8 +900,8 @@ int battle_get_def2 (struct block_list *bl) } /*========================================== - * ÎÛÌMDef2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MDef2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_mdef2 (struct block_list *bl) @@ -929,9 +929,9 @@ int battle_get_mdef2 (struct block_list *bl) } /*========================================== - * ÎÛÌSpeed(Ú®¬x)ðÔ·(Äp) - * ßèÍ®Å1Èã - * Speedͬ³¢Ù€ªÚ®¬xª¬¢ + * 察象ã®Speed(移åé床)ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž + * Speedã¯å°ããã»ãã移åé床ãéã *------------------------------------------ */ int battle_get_speed (struct block_list *bl) @@ -948,35 +948,35 @@ int battle_get_speed (struct block_list *bl) if (sc_data) { - //¬xÁÍ25%žZ + //é床å¢å æã¯25%æžç® if (sc_data[SC_INCREASEAGI].timer != -1 && sc_data[SC_DONTFORGETME].timer == -1) speed -= speed * 25 / 100; - //¬xžÍ25%ÁZ + //é床æžå°æã¯25%å ç® if (sc_data[SC_DECREASEAGI].timer != -1) speed = speed * 125 / 100; - //N@O}CAÍ50%ÁZ + //ã¯ã¡ã°ãã€ã¢æã¯50%å ç® if (sc_data[SC_QUAGMIRE].timer != -1) speed = speed * 3 / 2; - //ðYêÈ¢ÅcÍÁZ + //ç§ãå¿ããªãã§âŠæã¯å ç® if (sc_data[SC_DONTFORGETME].timer != -1) speed = speed * (100 + sc_data[SC_DONTFORGETME].val1 * 2 + sc_data[SC_DONTFORGETME].val2 + (sc_data[SC_DONTFORGETME].val3 & 0xffff)) / 100; - //àÍ25%ÁZ + //éåæã¯25%å ç® if (sc_data[SC_STEELBODY].timer != -1) speed = speed * 125 / 100; - //fBtF_[ÍÁZ + //ãã£ãã§ã³ããŒæã¯å ç® if (sc_data[SC_DEFENDER].timer != -1) speed = (speed * (155 - sc_data[SC_DEFENDER].val1 * 5)) / 100; - //xèóÔÍ4{x¢ + //èžãç¶æ
ã¯4åé
ã if (sc_data[SC_DANCING].timer != -1) speed *= 4; - //ô¢Í450ÁZ + //åªãæã¯450å ç® if (sc_data[SC_CURSE].timer != -1) speed = speed + 450; - //EBhEH[NÍLv*2%žZ + //ãŠã£ã³ããŠã©ãŒã¯æã¯Lv*2%æžç® if (sc_data[SC_WINDWALK].timer != -1) speed -= (speed * (sc_data[SC_WINDWALK].val1 * 2)) / 100; } @@ -989,8 +989,8 @@ int battle_get_speed (struct block_list *bl) } /*========================================== - * ÎÛÌaDelay(UfBC)ðÔ·(Äp) - * aDelayͬ³¢Ù€ªU¬xª¬¢ + * 察象ã®aDelay(æ»ææãã£ã¬ã€)ãè¿ã(æ±çš) + * aDelayã¯å°ããã»ããæ»æé床ãéã *------------------------------------------ */ int battle_get_adelay (struct block_list *bl) @@ -1007,28 +1007,28 @@ int battle_get_adelay (struct block_list *bl) if (sc_data) { - //c[nhNCbPgpÅN@O}CAÅàðYêÈ¢ÅcÅàÈ¢Í3žZ + //ããŒãã³ãã¯ã€ãã±ã³äœ¿çšæã§ã¯ã¡ã°ãã€ã¢ã§ãç§ãå¿ããªãã§âŠã§ããªãæã¯3å²æžç® if (sc_data[SC_TWOHANDQUICKEN].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // 2HQ aspd_rate -= 30; - //AhibV
gpÅc[nhNCbPÅàN@O}CAÅàðYêÈ¢ÅcÅàÈ¢Í + //ã¢ãã¬ããªã³ã©ãã·ã¥äœ¿çšæã§ããŒãã³ãã¯ã€ãã±ã³ã§ãã¯ã¡ã°ãã€ã¢ã§ãç§ãå¿ããªãã§âŠã§ããªãæ㯠if (sc_data[SC_ADRENALINE].timer != -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) - { // AhibV
- //gpÒÆp[eBo[Åi·ªoéÝèÅȯêÎ3žZ + { // ã¢ãã¬ããªã³ã©ãã·ã¥ + //䜿çšè
ãšããŒãã£ã¡ã³ããŒã§æ Œå·®ãåºãèšå®ã§ãªããã°3å²æžç® if (sc_data[SC_ADRENALINE].val2 || !battle_config.party_skill_penaly) aspd_rate -= 30; - //»€ÅȯêÎ2.5žZ + //ããã§ãªããã°2.5å²æžç® else aspd_rate -= 25; } - //XsANBbPÍžZ - if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // XsANBbP + //ã¹ãã¢ã¯ã£ãã±ã³æã¯æžç® + if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // ã¹ãã¢ã¯ã£ãã±ã³ aspd_rate -= sc_data[SC_SPEARSQUICKEN].val2; - //[úÌATVNXÍžZ - if (sc_data[SC_ASSNCROS].timer != -1 && // [zÌATVNX + //å€æ¥ã®ã¢ãµã·ã³ã¯ãã¹æã¯æžç® + if (sc_data[SC_ASSNCROS].timer != -1 && // å€éœã®ã¢ãµã·ã³ã¯ãã¹ sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_SPEARSQUICKEN].timer == -1 @@ -1036,16 +1036,16 @@ int battle_get_adelay (struct block_list *bl) aspd_rate -= 5 + sc_data[SC_ASSNCROS].val1 + sc_data[SC_ASSNCROS].val2 + sc_data[SC_ASSNCROS].val3; - //ðYêÈ¢ÅcÍÁZ - if (sc_data[SC_DONTFORGETME].timer != -1) // ðYêȢŠ+ //ç§ãå¿ããªãã§âŠæã¯å ç® + if (sc_data[SC_DONTFORGETME].timer != -1) // ç§ãå¿ããªã㧠aspd_rate += sc_data[SC_DONTFORGETME].val1 * 3 + sc_data[SC_DONTFORGETME].val2 + (sc_data[SC_DONTFORGETME].val3 >> 16); - //à25%ÁZ - if (sc_data[SC_STEELBODY].timer != -1) // à + //éåæ25%å ç® + if (sc_data[SC_STEELBODY].timer != -1) // éå aspd_rate += 25; - //¬|[VgpÍžZ + //å¢éããŒã·ã§ã³äœ¿çšæã¯æžç® if (sc_data[i = SC_SPEEDPOTION2].timer != -1 || sc_data[i = SC_SPEEDPOTION1].timer != -1 || sc_data[i = SC_SPEEDPOTION0].timer != -1) @@ -1053,7 +1053,7 @@ int battle_get_adelay (struct block_list *bl) // Fate's `haste' spell works the same as the above if (sc_data[SC_HASTE].timer != -1) aspd_rate -= sc_data[SC_HASTE].val1; - //fBtF_[ÍÁZ + //ãã£ãã§ã³ããŒæã¯å ç® if (sc_data[SC_DEFENDER].timer != -1) adelay += (1100 - sc_data[SC_DEFENDER].val1 * 100); } @@ -1087,16 +1087,16 @@ int battle_get_amotion (struct block_list *bl) && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) - { // AhibV
+ { // ã¢ãã¬ããªã³ã©ãã·ã¥ if (sc_data[SC_ADRENALINE].val2 || !battle_config.party_skill_penaly) aspd_rate -= 30; else aspd_rate -= 25; } - if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // XsANBbP + if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // ã¹ãã¢ã¯ã£ãã±ã³ aspd_rate -= sc_data[SC_SPEARSQUICKEN].val2; - if (sc_data[SC_ASSNCROS].timer != -1 && // [zÌATVNX + if (sc_data[SC_ASSNCROS].timer != -1 && // å€éœã®ã¢ãµã·ã³ã¯ãã¹ sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_SPEARSQUICKEN].timer == -1 @@ -1104,12 +1104,12 @@ int battle_get_amotion (struct block_list *bl) aspd_rate -= 5 + sc_data[SC_ASSNCROS].val1 + sc_data[SC_ASSNCROS].val2 + sc_data[SC_ASSNCROS].val3; - if (sc_data[SC_DONTFORGETME].timer != -1) // ðYêȢŠ+ if (sc_data[SC_DONTFORGETME].timer != -1) // ç§ãå¿ããªã㧠aspd_rate += sc_data[SC_DONTFORGETME].val1 * 3 + sc_data[SC_DONTFORGETME].val2 + (sc_data[SC_DONTFORGETME].val3 >> 16); - if (sc_data[SC_STEELBODY].timer != -1) // à + if (sc_data[SC_STEELBODY].timer != -1) // éå aspd_rate += 25; if (sc_data[i = SC_SPEEDPOTION2].timer != -1 || sc_data[i = SC_SPEEDPOTION1].timer != -1 @@ -1167,16 +1167,16 @@ int battle_get_element (struct block_list *bl) nullpo_retr (ret, bl); sc_data = battle_get_sc_data (bl); - if (bl->type == BL_MOB && (struct mob_data *) bl) // 10ÌÊLv*2APÌÊ®« + if (bl->type == BL_MOB && (struct mob_data *) bl) // 10ã®äœïŒLv*2ãïŒã®äœïŒå±æ§ ret = ((struct mob_data *) bl)->def_ele; else if (bl->type == BL_PC && (struct map_session_data *) bl) - ret = 20 + ((struct map_session_data *) bl)->def_ele; // h䮫Lv1 + ret = 20 + ((struct map_session_data *) bl)->def_ele; // é²åŸ¡å±æ§Lv1 if (sc_data) { - if (sc_data[SC_BENEDICTIO].timer != -1) // ¹Ì~ + if (sc_data[SC_BENEDICTIO].timer != -1) // èäœéçŠ ret = 26; - if (sc_data[SC_FREEZE].timer != -1) // + if (sc_data[SC_FREEZE].timer != -1) // åçµ ret = 21; if (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0) ret = 22; @@ -1198,17 +1198,17 @@ int battle_get_attack_element (struct block_list *bl) if (sc_data) { - if (sc_data[SC_FROSTWEAPON].timer != -1) // tXgEF| + if (sc_data[SC_FROSTWEAPON].timer != -1) // ããã¹ããŠã§ãã³ ret = 1; - if (sc_data[SC_SEISMICWEAPON].timer != -1) // TCY~bNEF| + if (sc_data[SC_SEISMICWEAPON].timer != -1) // ãµã€ãºããã¯ãŠã§ãã³ ret = 2; - if (sc_data[SC_FLAMELAUNCHER].timer != -1) // t[`[ + if (sc_data[SC_FLAMELAUNCHER].timer != -1) // ãã¬ãŒã ã©ã³ãã£ãŒ ret = 3; - if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // CgjO[_[ + if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // ã©ã€ããã³ã°ããŒã㌠ret = 4; - if (sc_data[SC_ENCPOISON].timer != -1) // G`g|CY + if (sc_data[SC_ENCPOISON].timer != -1) // ãšã³ãã£ã³ããã€ãºã³ ret = 5; - if (sc_data[SC_ASPERSIO].timer != -1) // AXyVI + if (sc_data[SC_ASPERSIO].timer != -1) // ã¢ã¹ãã«ã·ãª ret = 6; } @@ -1226,17 +1226,17 @@ int battle_get_attack_element2 (struct block_list *bl) if (sc_data) { - if (sc_data[SC_FROSTWEAPON].timer != -1) // tXgEF| + if (sc_data[SC_FROSTWEAPON].timer != -1) // ããã¹ããŠã§ãã³ ret = 1; - if (sc_data[SC_SEISMICWEAPON].timer != -1) // TCY~bNEF| + if (sc_data[SC_SEISMICWEAPON].timer != -1) // ãµã€ãºããã¯ãŠã§ãã³ ret = 2; - if (sc_data[SC_FLAMELAUNCHER].timer != -1) // t[`[ + if (sc_data[SC_FLAMELAUNCHER].timer != -1) // ãã¬ãŒã ã©ã³ãã£ãŒ ret = 3; - if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // CgjO[_[ + if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // ã©ã€ããã³ã°ããŒã㌠ret = 4; - if (sc_data[SC_ENCPOISON].timer != -1) // G`g|CY + if (sc_data[SC_ENCPOISON].timer != -1) // ãšã³ãã£ã³ããã€ãºã³ ret = 5; - if (sc_data[SC_ASPERSIO].timer != -1) // AXyVI + if (sc_data[SC_ASPERSIO].timer != -1) // ã¢ã¹ãã«ã·ãª ret = 6; } return ret; @@ -1303,7 +1303,7 @@ int battle_get_mode (struct block_list *bl) if (bl->type == BL_MOB && (struct mob_data *) bl) return mob_db[((struct mob_data *) bl)->class].mode; else - return 0x01; // Æè Šž®Æ¢€±ÆÅ1 + return 0x01; // ãšããããåããšããããšã§1 } int battle_get_mexp (struct block_list *bl) @@ -1345,7 +1345,7 @@ int battle_get_stat (int stat_id /* SP_VIT or similar */ , } } -// StatusChangenÌŸ +// StatusChangeç³»ã®æåŸ struct status_change *battle_get_sc_data (struct block_list *bl) { nullpo_retr (NULL, bl); @@ -1416,7 +1416,7 @@ short *battle_get_option (struct block_list *bl) //------------------------------------------------------------------- -// _[WÌx +// ãã¡ãŒãžã®é
延 struct battle_delay_damage_ { struct block_list *src, *target; @@ -1451,7 +1451,7 @@ int battle_delay_damage (unsigned int tick, struct block_list *src, return 0; } -// ÀÛÉHPðì +// å®éã«HPãæäœ int battle_damage (struct block_list *bl, struct block_list *target, int damage, int flag) { @@ -1460,7 +1460,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, short *sc_count; int i; - nullpo_retr (0, target); //blÍNULLÅÄÎêé±Æª éÌÅŒÅ`FbN + nullpo_retr (0, target); //blã¯NULLã§åŒã°ããããšãããã®ã§ä»ã§ãã§ã㯠if (damage == 0) return 0; @@ -1483,7 +1483,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, if (!flag && (sc_count = battle_get_sc_count (target)) != NULL && *sc_count > 0) { - // AλA°ðÁ + // åçµãç³åãç¡ç ãæ¶å» if (sc_data[SC_FREEZE].timer != -1) skill_status_change_end (target, SC_FREEZE, -1); if (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0) @@ -1495,7 +1495,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, if (target->type == BL_MOB) { // MOB struct mob_data *md = (struct mob_data *) target; - if (md && md->skilltimer != -1 && md->state.skillcastcancel) // r¥WQ + if (md && md->skilltimer != -1 && md->state.skillcastcancel) // è© å±åŠšå®³ skill_castcancel (target, 0); return mob_damage (bl, md, damage, 0); } @@ -1505,7 +1505,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, struct map_session_data *tsd = (struct map_session_data *) target; if (tsd && tsd->sc_data && tsd->sc_data[SC_DEVOTION].val1) - { // fB{[Vð©¯çêÄ¢é + { // ãã£ããŒã·ã§ã³ããããããŠãã struct map_session_data *md = map_id2sd (tsd->sc_data[SC_DEVOTION].val1); if (md && skill_devotion3 (&md->bl, target->id)) @@ -1525,8 +1525,8 @@ int battle_damage (struct block_list *bl, struct block_list *target, } if (tsd && tsd->skilltimer != -1) - { // r¥WQ - // tFJ[hâWQ³êÈ¢XL©Ìž + { // è© å±åŠšå®³ + // ãã§ã³ã«ãŒãã劚害ãããªãã¹ãã«ãã®æ€æ» if ((!tsd->special_state.no_castcancel || map[bl->m].flag.gvg) && tsd->state.skillcastcancel && !tsd->special_state.no_castcancel2) @@ -1545,7 +1545,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, int battle_heal (struct block_list *bl, struct block_list *target, int hp, int sp, int flag) { - nullpo_retr (0, target); //blÍNULLÅÄÎêé±Æª éÌÅŒÅ`FbN + nullpo_retr (0, target); //blã¯NULLã§åŒã°ããããšãããã®ã§ä»ã§ãã§ã㯠if (target->type == BL_PC && pc_isdead ((struct map_session_data *) target)) @@ -1563,7 +1563,7 @@ int battle_heal (struct block_list *bl, struct block_list *target, int hp, return 0; } -// Uâ~ +// æ»æåæ¢ int battle_stopattack (struct block_list *bl) { nullpo_retr (0, bl); @@ -1574,7 +1574,7 @@ int battle_stopattack (struct block_list *bl) return 0; } -// Ú®â~ +// 移ååæ¢ int battle_stopwalking (struct block_list *bl, int type) { nullpo_retr (0, bl); @@ -1586,7 +1586,7 @@ int battle_stopwalking (struct block_list *bl, int type) } /*========================================== - * _[WÌ®«C³ + * ãã¡ãŒãžã®å±æ§ä¿®æ£ *------------------------------------------ */ int battle_attr_fix (int damage, int atk_elem, int def_elem) @@ -1595,7 +1595,7 @@ int battle_attr_fix (int damage, int atk_elem, int def_elem) if (atk_elem < 0 || atk_elem > 9 || def_type < 0 || def_type > 9 || def_lv < 1 || def_lv > 4) - { // ® «lªš©µ¢ÌÅÆè Šž»ÌÜÜÔ· + { // å± æ§å€ãããããã®ã§ãšãããããã®ãŸãŸè¿ã if (battle_config.error_log) printf ("battle_attr_fix: unknown attr type: atk=%d def_type=%d def_lv=%d\n", @@ -1607,7 +1607,7 @@ int battle_attr_fix (int damage, int atk_elem, int def_elem) } /*========================================== - * _[WÅIvZ + * ãã¡ãŒãžæçµèšç® *------------------------------------------ */ int battle_calc_damage (struct block_list *src, struct block_list *bl, @@ -1638,37 +1638,37 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, && flag & BF_WEAPON && flag & BF_SHORT && skill_num != NPC_GUIDEDATTACK) { - // Z[teBEH[ + // ã»ãŒããã£ãŠã©ãŒã« struct skill_unit *unit = (struct skill_unit *) sc_data[SC_SAFETYWALL].val2; if (unit && unit->alive && (--unit->group->val2) <= 0) skill_delunit (unit); - skill_unit_move (bl, gettick (), 1); // dË|¯`FbN + skill_unit_move (bl, gettick (), 1); // éãæããã§ã㯠damage = 0; } if (sc_data[SC_PNEUMA].timer != -1 && damage > 0 && flag & BF_WEAPON && flag & BF_LONG && skill_num != NPC_GUIDEDATTACK) { - // j
[} + // ãã¥ãŒã damage = 0; } if (sc_data[SC_ROKISWEIL].timer != -1 && damage > 0 && flag & BF_MAGIC) { - // j
[} + // ãã¥ãŒã damage = 0; } if (sc_data[SC_AETERNA].timer != -1 && damage > 0) - { // bNXG[ei + { // ã¬ãã¯ã¹ãšãŒãã«ã damage <<= 1; skill_status_change_end (bl, SC_AETERNA, -1); } - //®«êÌ_[WÁ + //å±æ§å Žã®ãã¡ãŒãžå¢å if (sc_data[SC_VOLCANO].timer != -1) - { // {P[m + { // ãã«ã±ãŒã if (flag & BF_SKILL && skill_get_pl (skill_num) == 3) damage += damage * sc_data[SC_VOLCANO].val4 / 100; else if (!(flag & BF_SKILL) && (battle_get_attack_element (bl) == 3)) @@ -1676,7 +1676,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, } if (sc_data[SC_VIOLENTGALE].timer != -1) - { // oCIgQC + { // ãã€ãªã¬ã³ãã²ã€ã« if (flag & BF_SKILL && skill_get_pl (skill_num) == 4) damage += damage * sc_data[SC_VIOLENTGALE].val4 / 100; else if (!(flag & BF_SKILL) && (battle_get_attack_element (bl) == 4)) @@ -1684,7 +1684,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, } if (sc_data[SC_DELUGE].timer != -1) - { // f
[W + { // ããªã¥ãŒãž if (flag & BF_SKILL && skill_get_pl (skill_num) == 1) damage += damage * sc_data[SC_DELUGE].val4 / 100; else if (!(flag & BF_SKILL) && (battle_get_attack_element (bl) == 1)) @@ -1693,7 +1693,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, if (sc_data[SC_ENERGYCOAT].timer != -1 && damage > 0 && flag & BF_WEAPON) - { // GiW[R[g + { // ãšããžãŒã³ãŒã if (sd) { if (sd->status.sp > 0) @@ -1713,7 +1713,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, } if (sc_data[SC_KYRIE].timer != -1 && damage > 0) - { // LGGC\ + { // ããªãšãšã¬ã€ãœã³ sc = &sc_data[SC_KYRIE]; sc->val2 -= damage; if (flag & BF_WEAPON) @@ -1730,13 +1730,13 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, if (sc_data[SC_BASILICA].timer != -1 && damage > 0) { - // j
[} + // ãã¥ãŒã damage = 0; } if (sc_data[SC_LANDPROTECTOR].timer != -1 && damage > 0 && flag & BF_MAGIC) { - // j
[} + // ãã¥ãŒã damage = 0; } @@ -1766,7 +1766,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, sc_data[SC_PARRYING].val1, 1); } } - // WFNg\[h + // ãªãžã§ã¯ããœãŒã if (sc_data[SC_REJECTSWORD].timer != -1 && damage > 0 && flag & BF_WEAPON && @@ -1776,11 +1776,11 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, || src->type == BL_MOB)) { if (MRAND (100) < (10 + 5 * sc_data[SC_REJECTSWORD].val1)) - { //œËmŠÍ10+5*Lv + { //åå°ç¢ºçã¯10+5*Lv damage = damage * 50 / 100; battle_damage (bl, src, damage, 0); - //_[Wð^ŠœÌÍÇ¢ñŸªA±±©çÇ€µÄ\Š·éñŸ©í©ñË¥ - //GtFNgà±êÅ¢¢Ì©í©ñË¥ + //ãã¡ãŒãžãäžããã®ã¯è¯ããã ããããããã©ãããŠè¡šç€ºãããã ãããããã + //ãšãã§ã¯ããããã§ããã®ãããããã clif_skill_nodamage (bl, bl, ST_REJECTSWORD, sc_data[SC_REJECTSWORD].val1, 1); if ((--sc_data[SC_REJECTSWORD].val2) <= 0) @@ -1805,11 +1805,11 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, if (gc && agit_flag == 0 && class != 1288) // guardians cannot be damaged during non-woe [Valaris] damage = 0; // end woe check [Valaris] if (g == NULL) - damage = 0; //Mh¢ÁüÈç_[W³µ + damage = 0; //ã®ã«ãæªå å
¥ãªããã¡ãŒãžç¡ã else if ((gc != NULL) && guild_isallied (g, gc)) - damage = 0; //©èÌMhÌGyÈç_[W³µ + damage = 0; //èªå é ã®ã«ãã®ãšã³ããªããã¡ãŒãžç¡ã else if (g && guild_checkskill (g, GD_APPROVAL) <= 0) - damage = 0; //³KMh³FªÈ¢Æ_[W³µ + damage = 0; //æ£èŠã®ã«ãæ¿èªããªããšãã¡ãŒãžç¡ã else if (battle_config.guild_max_castles != 0 && guild_checkcastles (g) >= battle_config.guild_max_castles) @@ -1847,14 +1847,14 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, damage = 3; } - if (md != NULL && md->hp > 0 && damage > 0) // œÈÇÌMOBXL»è + if (md != NULL && md->hp > 0 && damage > 0) // åæãªã©ã®MOBã¹ãã«å€å® mobskill_event (md, flag); return damage; } /*========================================== - * Cû_[W + * 修緎ãã¡ãŒãž *------------------------------------------ */ int battle_addmastery (struct map_session_data *sd, struct block_list *target, @@ -1867,13 +1867,13 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, nullpo_retr (0, sd); - // f[xC(+3 ` +30) vs s or « (lÍÜßÈ¢H) + // ããŒã¢ã³ãã€ã³(+3 ã +30) vs äžæ» or æªé (æ»äººã¯å«ããªãïŒ) if ((skill = pc_checkskill (sd, AL_DEMONBANE)) > 0 && (battle_check_undead (race, battle_get_elem_type (target)) || race == 6)) damage += (skill * 3); - // r[XgxC(+4 ` +40) vs ®š or © + // ããŒã¹ããã€ã³(+4 ã +40) vs åç© or æè« if ((skill = pc_checkskill (sd, HT_BEASTBANE)) > 0 && (race == 2 || race == 4)) damage += (skill * 4); @@ -1884,10 +1884,10 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, weapon = sd->weapontype2; switch (weapon) { - case 0x01: // Z (Updated By AppleGirl) + case 0x01: // çå£ (Updated By AppleGirl) case 0x02: // 1HS { - // Cû(+4 ` +40) Ðè ZÜÞ + // å£ä¿®ç·Ž(+4 ã +40) çæå£ çå£å«ã if ((skill = pc_checkskill (sd, SM_SWORD)) > 0) { damage += (skill * 4); @@ -1896,7 +1896,7 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x03: // 2HS { - // ŒèCû(+4 ` +40) Œè + // äž¡æå£ä¿®ç·Ž(+4 ã +40) äž¡æå£ if ((skill = pc_checkskill (sd, SM_TWOHAND)) > 0) { damage += (skill * 4); @@ -1905,29 +1905,29 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x04: // 1HL { - // Cû(+4 ` +40,+5 ` +50) + // æ§ä¿®ç·Ž(+4 ã +40,+5 ã +50) æ§ if ((skill = pc_checkskill (sd, KN_SPEARMASTERY)) > 0) { if (!pc_isriding (sd)) - damage += (skill * 4); // yRÉæÁÄÈ¢ + damage += (skill * 4); // ãã³ã«ä¹ã£ãŠãªã else - damage += (skill * 5); // yRÉæÁÄé + damage += (skill * 5); // ãã³ã«ä¹ã£ãŠã } break; } case 0x05: // 2HL { - // Cû(+4 ` +40,+5 ` +50) + // æ§ä¿®ç·Ž(+4 ã +40,+5 ã +50) æ§ if ((skill = pc_checkskill (sd, KN_SPEARMASTERY)) > 0) { if (!pc_isriding (sd)) - damage += (skill * 4); // yRÉæÁÄÈ¢ + damage += (skill * 4); // ãã³ã«ä¹ã£ãŠãªã else - damage += (skill * 5); // yRÉæÁÄé + damage += (skill * 5); // ãã³ã«ä¹ã£ãŠã } break; } - case 0x06: // Ðè + case 0x06: // çææ§ { if ((skill = pc_checkskill (sd, AM_AXEMASTERY)) > 0) { @@ -1943,25 +1943,25 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } break; } - case 0x08: // CX + case 0x08: // ã¡ã€ã¹ { - // CXCû(+3 ` +30) CX + // ã¡ã€ã¹ä¿®ç·Ž(+3 ã +30) ã¡ã€ã¹ if ((skill = pc_checkskill (sd, PR_MACEMASTERY)) > 0) { damage += (skill * 3); } break; } - case 0x09: // ȵ? + case 0x09: // ãªã? break; - case 0x0a: // ñ + case 0x0a: // æ break; - case 0x0b: // | + case 0x0b: // åŒ break; - case 0x00: // fè + case 0x00: // çŽ æ case 0x0c: // Knuckles { - // S(+3 ` +30) fè,ibN + // éæ³(+3 ã +30) çŽ æ,ããã¯ã« if ((skill = pc_checkskill (sd, MO_IRONHAND)) > 0) { damage += (skill * 3); @@ -1970,7 +1970,7 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x0d: // Musical Instrument { - // yíÌûK(+3 ` +30) yí + // 楜åšã®ç·Žç¿(+3 ã +30) æ¥œåš if ((skill = pc_checkskill (sd, BA_MUSICALLESSON)) > 0) { damage += (skill * 3); @@ -1979,7 +1979,7 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x0e: // Dance Mastery { - // Dance Lesson Skill Effect(+3 damage for every lvl = +30) Ú + // Dance Lesson Skill Effect(+3 damage for every lvl = +30) é if ((skill = pc_checkskill (sd, DC_DANCINGLESSON)) > 0) { damage += (skill * 3); @@ -1997,10 +1997,10 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x10: // Katars { - // J^[Cû(+3 ` +30) J^[ + // ã«ã¿ãŒã«ä¿®ç·Ž(+3 ã +30) ã«ã¿ãŒã« if ((skill = pc_checkskill (sd, AS_KATAR)) > 0) { - //\jbNu[ÍÊi1Ét«1/8K) + //ãœããã¯ãããŒæã¯å¥åŠçïŒ1æã«ä»ã1/8é©å¿) damage += (skill * 3); } break; @@ -2031,7 +2031,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, short *sc_count; short *option, *opt1, *opt2; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (src == NULL || target == NULL || md == NULL) { nullpo_info (NLP_MARK); @@ -2047,7 +2047,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, opt1 = battle_get_opt1 (src); opt2 = battle_get_opt2 (src); - // ^[Qbg + // ã¿ãŒã²ãã if (target->type == BL_PC) tsd = (struct map_session_data *) target; else if (target->type == BL_MOB) @@ -2090,9 +2090,9 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, ac_flag = 1; } } - flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // UÌíÞÌÝè + flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // æ»æã®çš®é¡ã®èšå® - // ñðŠvZAñð»èÍãÅ + // åé¿çèšç®ãåé¿å€å®ã¯åŸã§ flee = battle_get_flee (target); if (battle_config.agi_penaly_type > 0 || battle_config.vit_penaly_type > 0) @@ -2131,7 +2131,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, else damage = 0; if (skill_num == HW_MAGICCRASHER) - { /* }WbNNbV[ÍMATKÅ£é */ + { /* ããžãã¯ã¯ã©ãã·ã£ãŒã¯MATKã§æ®Žã */ atkmin = battle_get_matk1 (src); atkmax = battle_get_matk2 (src); } @@ -2147,7 +2147,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, atkmin = atkmax; if (sc_data != NULL && sc_data[SC_MAXIMIZEPOWER].timer != -1) - { // }LV}CYp[ + { // ããã·ãã€ãºãã¯ãŒ atkmin = atkmax; } @@ -2159,7 +2159,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (cri < 1) cri = 1; } - if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // °ÍNeBJª{É + if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // ç¡ç äžã¯ã¯ãªãã£ã«ã«ãåã« cri <<= 1; if (ac_flag) @@ -2176,8 +2176,8 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (tsd && tsd->critical_def) cri = cri * (100 - tsd->critical_def) / 100; - if ((skill_num == 0 || skill_num == KN_AUTOCOUNTER) && skill_lv >= 0 && battle_config.enemy_critical && (MRAND (1000)) < cri) // »èiXLÌêͳj - // GÌ»è + if ((skill_num == 0 || skill_num == KN_AUTOCOUNTER) && skill_lv >= 0 && battle_config.enemy_critical && (MRAND (1000)) < cri) // å€å®ïŒã¹ãã«ã®å Žåã¯ç¡èŠïŒ + // æµã®å€å® { damage += atkmax; type = 0x0a; @@ -2190,20 +2190,20 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage += atkmin + MRAND ((atkmax - atkmin + 1)); else damage += atkmin; - // XLC³PiUÍ{»nj - // I[o[gXg(+5% ` +25%),ŒUnXLÌê±±Åâ³ - // obV
,}OiuCN, - // {[OobV
,XsAu[,ufBbV
XsA,XsAX^bu, - // }[iCg,J[g{
[V - // _uXgCtBO,A[V[,`[WA[, - // \jbNu[ + // ã¹ãã«ä¿®æ£ïŒïŒæ»æåååç³»ïŒ + // ãªãŒããŒãã©ã¹ã(+5% ã +25%),ä»æ»æç³»ã¹ãã«ã®å Žåããã§è£æ£ + // ããã·ã¥,ãã°ãã ãã¬ã€ã¯, + // ããŒãªã³ã°ããã·ã¥,ã¹ãã¢ããŒã¡ã©ã³,ãã©ã³ãã£ãã·ã¥ã¹ãã¢,ã¹ãã¢ã¹ã¿ãã, + // ã¡ããŒãã€ã,ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ + // ããã«ã¹ãã¬ã€ãã£ã³ã°,ã¢ããŒã·ã£ã¯ãŒ,ãã£ãŒãžã¢ããŒ, + // ãœããã¯ãã㌠if (sc_data) - { //óÔÙíÌ_[WÇÁ - if (sc_data[SC_OVERTHRUST].timer != -1) // I[o[gXg + { //ç¶æ
ç°åžžäžã®ãã¡ãŒãžè¿œå + if (sc_data[SC_OVERTHRUST].timer != -1) // ãªãŒããŒãã©ã¹ã damage += damage * (5 * sc_data[SC_OVERTHRUST].val1) / 100; - if (sc_data[SC_TRUESIGHT].timer != -1) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1) // ãã¥ã«ãŒãµã€ã damage += damage * (2 * sc_data[SC_TRUESIGHT].val1) / 100; - if (sc_data[SC_BERSERK].timer != -1) // o[T[N + if (sc_data[SC_BERSERK].timer != -1) // ããŒãµãŒã¯ damage += damage * 50 / 100; } @@ -2216,44 +2216,44 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, flag = (flag & ~BF_SKILLMASK) | BF_SKILL; switch (skill_num) { - case SM_BASH: // obV
+ case SM_BASH: // ããã·ã¥ damage = damage * (100 + 30 * skill_lv) / 100; hitrate = (hitrate * (100 + 5 * skill_lv)) / 100; break; - case SM_MAGNUM: // }OiuCN + case SM_MAGNUM: // ãã°ãã ãã¬ã€ã¯ damage = damage * (5 * skill_lv + (wflag) ? 65 : 115) / 100; break; - case MC_MAMMONITE: // }[iCg + case MC_MAMMONITE: // ã¡ããŒãã€ã damage = damage * (100 + 50 * skill_lv) / 100; break; - case AC_DOUBLE: // _uXgCtBO + case AC_DOUBLE: // ããã«ã¹ãã¬ã€ãã£ã³ã° damage = damage * (180 + 20 * skill_lv) / 100; div_ = 2; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case AC_SHOWER: // A[V[ + case AC_SHOWER: // ã¢ããŒã·ã£ã¯ãŒ damage = damage * (75 + 5 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case AC_CHARGEARROW: // `[WA[ + case AC_CHARGEARROW: // ãã£ãŒãžã¢ã㌠damage = damage * 150 / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case KN_PIERCE: // sA[X + case KN_PIERCE: // ãã¢ãŒã¹ damage = damage * (100 + 10 * skill_lv) / 100; hitrate = hitrate * (100 + 5 * skill_lv) / 100; div_ = t_size + 1; damage *= div_; break; - case KN_SPEARSTAB: // XsAX^u + case KN_SPEARSTAB: // ã¹ãã¢ã¹ã¿ã damage = damage * (100 + 15 * skill_lv) / 100; break; - case KN_SPEARBOOMERANG: // XsAu[ + case KN_SPEARBOOMERANG: // ã¹ãã¢ããŒã¡ã©ã³ damage = damage * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case KN_BRANDISHSPEAR: // ufBbV
XsA + case KN_BRANDISHSPEAR: // ãã©ã³ãã£ãã·ã¥ã¹ã㢠damage = damage * (100 + 20 * skill_lv) / 100; if (skill_lv > 3 && wflag == 1) damage2 += damage / 2; @@ -2270,7 +2270,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage += damage2; blewcount = 0; break; - case KN_BOWLINGBASH: // {EOobV
+ case KN_BOWLINGBASH: // ããŠãªã³ã°ããã·ã¥ damage = damage * (100 + 50 * skill_lv) / 100; blewcount = 0; break; @@ -2281,25 +2281,25 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, hitrate = 1000000; flag = (flag & ~BF_SKILLMASK) | BF_NORMAL; break; - case AS_SONICBLOW: // \jbNuE + case AS_SONICBLOW: // ãœããã¯ãã㊠damage = damage * (300 + 50 * skill_lv) / 100; div_ = 8; break; - case TF_SPRINKLESAND: // »Ü« + case TF_SPRINKLESAND: // ç ãŸã damage = damage * 125 / 100; break; - case MC_CARTREVOLUTION: // J[g{
[V + case MC_CARTREVOLUTION: // ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ damage = (damage * 150) / 100; break; - // ȺMOB - case NPC_COMBOATTACK: // œiU + // 以äžMOB + case NPC_COMBOATTACK: // å€æ®µæ»æ div_ = skill_get_num (skill_num, skill_lv); damage *= div_; break; - case NPC_RANDOMATTACK: // _ATKU + case NPC_RANDOMATTACK: // ã©ã³ãã ATKæ»æ damage = damage * (MPRAND (50, 150)) / 100; break; - // ®«UiKj + // å±æ§æ»æïŒé©åœïŒ case NPC_WATERATTACK: case NPC_GROUNDATTACK: case NPC_FIREATTACK: @@ -2319,46 +2319,46 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, case NPC_PIERCINGATT: flag = (flag & ~BF_RANGEMASK) | BF_SHORT; break; - case RG_BACKSTAP: // obNX^u + case RG_BACKSTAP: // ããã¯ã¹ã¿ã damage = damage * (300 + 40 * skill_lv) / 100; hitrate = 1000000; break; - case RG_RAID: // TvCYA^bN + case RG_RAID: // ãµãã©ã€ãºã¢ã¿ã㯠damage = damage * (100 + 40 * skill_lv) / 100; break; - case RG_INTIMIDATE: // CeB~fCg + case RG_INTIMIDATE: // ã€ã³ãã£ããã€ã damage = damage * (100 + 30 * skill_lv) / 100; break; - case CR_SHIELDCHARGE: // V[h`[W + case CR_SHIELDCHARGE: // ã·ãŒã«ããã£ãŒãž damage = damage * (100 + 20 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_SHORT; s_ele = 0; break; - case CR_SHIELDBOOMERANG: // V[hu[ + case CR_SHIELDBOOMERANG: // ã·ãŒã«ãããŒã¡ã©ã³ damage = damage * (100 + 30 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; s_ele = 0; break; - case CR_HOLYCROSS: // z[[NX + case CR_HOLYCROSS: // ããŒãªãŒã¯ãã¹ damage = damage * (100 + 35 * skill_lv) / 100; div_ = 2; break; case CR_GRANDCROSS: hitrate = 1000000; break; - case AM_DEMONSTRATION: // fXg[V + case AM_DEMONSTRATION: // ãã¢ã³ã¹ãã¬ãŒã·ã§ã³ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case AM_ACIDTERROR: // AVbhe[ + case AM_ACIDTERROR: // ã¢ã·ãããã©ãŒ damage = damage * (100 + 40 * skill_lv) / 100; damage2 = damage2 * (100 + 40 * skill_lv) / 100; break; - case MO_FINGEROFFENSIVE: //we + case MO_FINGEROFFENSIVE: //æ匟 damage = damage * (100 + 50 * skill_lv) / 100; div_ = 1; break; - case MO_INVESTIGATE: // € + case MO_INVESTIGATE: // çº å if (def1 < 1000000) damage = damage * (100 + 75 * skill_lv) / 100 * (def1 + @@ -2367,61 +2367,61 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, hitrate = 1000000; s_ele = 0; break; - case MO_EXTREMITYFIST: // ¢C
eP + case MO_EXTREMITYFIST: // é¿ä¿®çŸ
èŠé³³æ³ damage = damage * 8 + 250 + (skill_lv * 150); hitrate = 1000000; s_ele = 0; break; - case MO_CHAINCOMBO: // AŶ + case MO_CHAINCOMBO: // é£ææ damage = damage * (150 + 50 * skill_lv) / 100; div_ = 4; break; - case BA_MUSICALSTRIKE: // ~
[WJXgCN + case BA_MUSICALSTRIKE: // ãã¥ãŒãžã«ã«ã¹ãã©ã€ã¯ damage = damage * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case DC_THROWARROW: // î¿ + case DC_THROWARROW: // ç¢æã¡ damage = damage * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case MO_COMBOFINISH: // ÒŽ + case MO_COMBOFINISH: // çéŸæ³ damage = damage * (240 + 60 * skill_lv) / 100; break; - case CH_TIGERFIST: // Õ + case CH_TIGERFIST: // äŒèæ³ damage = damage * (100 + 20 * skill_lv) / 100; break; - case CH_CHAINCRUSH: // Aö + case CH_CHAINCRUSH: // é£æ±åŽ©æ damage = damage * (100 + 20 * skill_lv) / 100; div_ = skill_get_num (skill_num, skill_lv); break; - case CH_PALMSTRIKE: // ÒÕdhR + case CH_PALMSTRIKE: // çè硬掟山 damage = damage * (50 + 100 * skill_lv) / 100; break; - case LK_SPIRALPIERCE: /* XpCsA[X */ - damage = damage * (100 + 50 * skill_lv) / 100; //Áʪª©çÈ¢ÌÅKÉ + case LK_SPIRALPIERCE: /* ã¹ãã€ã©ã«ãã¢ãŒã¹ */ + damage = damage * (100 + 50 * skill_lv) / 100; //å¢å éãåãããªãã®ã§é©åœã« div_ = 5; if (tsd) tsd->canmove_tick = gettick () + 1000; else if (tmd) tmd->canmove_tick = gettick () + 1000; break; - case LK_HEADCRUSH: /* wbhNbV
*/ + case LK_HEADCRUSH: /* ãããã¯ã©ãã·ã¥ */ damage = damage * (100 + 20 * skill_lv) / 100; break; - case LK_JOINTBEAT: /* WCgr[g */ + case LK_JOINTBEAT: /* ãžã§ã€ã³ãããŒã */ damage = damage * (50 + 10 * skill_lv) / 100; break; - case ASC_METEORASSAULT: /* eIATg */ + case ASC_METEORASSAULT: /* ã¡ããªã¢ãµã«ã */ damage = damage * (40 + 40 * skill_lv) / 100; break; - case SN_SHARPSHOOTING: /* V[vV
[eBO */ + case SN_SHARPSHOOTING: /* ã·ã£ãŒãã·ã¥ãŒãã£ã³ã° */ damage += damage * (30 * skill_lv) / 100; break; - case CG_ARROWVULCAN: /* A[oJ */ + case CG_ARROWVULCAN: /* ã¢ããŒãã«ã«ã³ */ damage = damage * (160 + 40 * skill_lv) / 100; div_ = 9; break; - case AS_SPLASHER: /* xiXvbV[ */ + case AS_SPLASHER: /* ããã ã¹ãã©ãã·ã£ãŒ */ damage = damage * (200 + 20 * skill_lv) / 100; break; } @@ -2429,11 +2429,11 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (skill_num != NPC_CRITICALSLASH) { - // Î ÛÌhäÍÉæé_[WÌž - // fBoCveNVi±±Å¢¢Ì©ÈHj + // 察 象ã®é²åŸ¡åã«ãããã¡ãŒãžã®æžå° + // ãã£ãã€ã³ãããã¯ã·ã§ã³ïŒããã§ããã®ããªïŒïŒ if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST && skill_num != KN_AUTOCOUNTER && def1 < 1000000) - { //DEF, VIT³ + { //DEF, VITç¡èŠ int t_def; target_count = 1 + battle_counttargeted (target, src, @@ -2513,17 +2513,17 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, } } - // 0¢ŸÁœê1Éâ³ + // 0æªæºã ã£ãå Žå1ã«è£æ£ if (damage < 1) damage = 1; - // ñðC³ + // åé¿ä¿®æ£ if (hitrate < 1000000) hitrate = ((hitrate > 95) ? 95 : ((hitrate < 5) ? 5 : hitrate)); - if (hitrate < 1000000 && // KU - (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // °ÍK - t_sc_data[SC_STAN].timer != -1 || // X^ÍK - t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // ÍK + if (hitrate < 1000000 && // å¿
äžæ»æ + (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // ç¡ç ã¯å¿
äž + t_sc_data[SC_STAN].timer != -1 || // ã¹ã¿ã³ã¯å¿
äž + t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // åçµã¯å¿
äž hitrate = 1000000; if (type == 0 && MRAND (100) >= hitrate) { @@ -2538,8 +2538,8 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (tsd) { int cardfix = 100, i; - cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // ® «Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // í°Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // å± æ§ã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ if (mob_db[md->class].mode & 0x20) cardfix = cardfix * (100 - tsd->subrace[10]) / 100; else @@ -2567,7 +2567,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage = damage * cardfix / 100; } if (t_sc_data && t_sc_data[SC_ASSUMPTIO].timer != -1) - { //AVveBI + { //ã¢ã·ã£ã³ããã£ãª if (!map[target->m].flag.pvp) damage = damage / 3; else @@ -2577,19 +2577,19 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (damage < 0) damage = 0; - // ® «ÌKp + // å± æ§ã®é©çš if (!((battle_config.mob_ghostring_fix == 1) && (battle_get_element (target) == 8) && (target->type == BL_PC))) // [MouseJstr] if (skill_num != 0 || s_ele != 0 || !battle_config.mob_attack_attr_none) damage = battle_attr_fix (damage, s_ele, battle_get_element (target)); - if (sc_data && sc_data[SC_AURABLADE].timer != -1) /* I[u[h K */ + if (sc_data && sc_data[SC_AURABLADE].timer != -1) /* ãªãŒã©ãã¬ãŒã å¿
äž */ damage += sc_data[SC_AURABLADE].val1 * 10; - if (skill_num == PA_PRESSURE) /* vbV[ K? */ + if (skill_num == PA_PRESSURE) /* ãã¬ãã·ã£ãŒ å¿
äž? */ damage = 700 + 100 * skill_lv; - // CxiC³ + // ã€ã³ããã ä¿®æ£ if (skill_num == TF_POISON) { damage = @@ -2601,7 +2601,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage = battle_attr_fix (damage, 0, battle_get_element (target)); } - // ®SñðÌ»è + // å®å
šåé¿ã®å€å® if (skill_num == 0 && skill_lv >= 0 && tsd != NULL && MRAND (1000) < battle_get_flee2 (target)) { @@ -2664,7 +2664,7 @@ int battle_is_unarmed (struct block_list *bl) /* * ========================================================================= - * PCÌíÉæéU + * PCã®æŠåšã«ããæ»æ *------------------------------------------------------------------------- */ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, @@ -2688,13 +2688,13 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, struct status_change *sc_data, *t_sc_data; short *sc_count; short *option, *opt1, *opt2; - int atkmax_ = 0, atkmin_ = 0, s_ele_; //ñ¬p + int atkmax_ = 0, atkmin_ = 0, s_ele_; //äºåæµçš int watk, watk_, cardfix, t_ele; int da = 0, i, t_class, ac_flag = 0; int idef_flag = 0, idef_flag_ = 0; int target_distance; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (src == NULL || target == NULL || sd == NULL) { nullpo_info (NLP_MARK); @@ -2702,31 +2702,31 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, return wd; } - // A^bJ[ - s_race = battle_get_race (src); //í° - s_ele = battle_get_attack_element (src); //®« - s_ele_ = battle_get_attack_element2 (src); //¶è®« - sc_data = battle_get_sc_data (src); //Xe[^XÙí - sc_count = battle_get_sc_count (src); //Xe[^XÙíÌ - option = battle_get_option (src); //éÆ©yRÆ©J[gÆ© - opt1 = battle_get_opt1 (src); //λAAX^A°AÃÅ - opt2 = battle_get_opt2 (src); //ÅAô¢AŸÙAÃÅH - - if (skill_num != CR_GRANDCROSS) //OhNXÅÈ¢Èç - sd->state.attack_type = BF_WEAPON; //U^CvÍíU - - // ^[Qbg - if (target->type == BL_PC) //ÎÛªPCÈç - tsd = (struct map_session_data *) target; //tsdÉãü(tmdÍNULL) - else if (target->type == BL_MOB) //ÎÛªMobÈç - tmd = (struct mob_data *) target; //tmdÉãü(tsdÍNULL) - t_race = battle_get_race (target); //ÎÛÌí° - t_ele = battle_get_elem_type (target); //ÎÛÌ®« - t_size = battle_get_size (target); //ÎÛÌTCY - t_mode = battle_get_mode (target); //ÎÛÌMode - t_sc_data = battle_get_sc_data (target); //ÎÛÌXe[^XÙí - -//I[gJE^[±±©ç + // ã¢ã¿ãã«ãŒ + s_race = battle_get_race (src); //çš®æ + s_ele = battle_get_attack_element (src); //å±æ§ + s_ele_ = battle_get_attack_element2 (src); //å·Šæå±æ§ + sc_data = battle_get_sc_data (src); //ã¹ããŒã¿ã¹ç°åžž + sc_count = battle_get_sc_count (src); //ã¹ããŒã¿ã¹ç°åžžã®æ° + option = battle_get_option (src); //é·¹ãšããã³ãšãã«ãŒããšã + opt1 = battle_get_opt1 (src); //ç³åãåçµãã¹ã¿ã³ãç¡ç ãæé + opt2 = battle_get_opt2 (src); //æ¯ãåªããæ²é»ãæéïŒ + + if (skill_num != CR_GRANDCROSS) //ã°ã©ã³ãã¯ãã¹ã§ãªããªã + sd->state.attack_type = BF_WEAPON; //æ»æã¿ã€ãã¯æŠåšæ»æ + + // ã¿ãŒã²ãã + if (target->type == BL_PC) //察象ãPCãªã + tsd = (struct map_session_data *) target; //tsdã«ä»£å
¥(tmdã¯NULL) + else if (target->type == BL_MOB) //察象ãMobãªã + tmd = (struct mob_data *) target; //tmdã«ä»£å
¥(tsdã¯NULL) + t_race = battle_get_race (target); //察象ã®çš®æ + t_ele = battle_get_elem_type (target); //察象ã®å±æ§ + t_size = battle_get_size (target); //察象ã®ãµã€ãº + t_mode = battle_get_mode (target); //察象ã®Mode + t_sc_data = battle_get_sc_data (target); //察象ã®ã¹ããŒã¿ã¹ç°åžž + +//ãªãŒãã«ãŠã³ã¿ãŒåŠçãããã if ((skill_num == 0 || (target->type == BL_PC && battle_config.pc_auto_counter_type & 2) || (target->type == BL_MOB @@ -2735,57 +2735,57 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, { if (skill_num != CR_GRANDCROSS && t_sc_data && t_sc_data[SC_AUTOCOUNTER].timer != -1) - { //OhNXÅÈAÎÛªI[gJE^[óÔÌê + { //ã°ã©ã³ãã¯ãã¹ã§ãªãã察象ããªãŒãã«ãŠã³ã¿ãŒç¶æ
ã®å Žå int dir = map_calc_dir (src, target->x, target->y), t_dir = battle_get_dir (target); int dist = distance (src->x, src->y, target->x, target->y); if (dist <= 0 || map_check_dir (dir, t_dir)) - { //ÎÛÆÌ£ª0ȺAÜœÍÎÛ̳ÊH + { //察象ãšã®è·é¢ã0以äžããŸãã¯å¯Ÿè±¡ã®æ£é¢ïŒ memset (&wd, 0, sizeof (wd)); t_sc_data[SC_AUTOCOUNTER].val3 = 0; t_sc_data[SC_AUTOCOUNTER].val4 = 1; if (sc_data && sc_data[SC_AUTOCOUNTER].timer == -1) - { //©ªªI[gJE^[óÔ + { //èªåããªãŒãã«ãŠã³ã¿ãŒç¶æ
int range = battle_get_range (target); - if ((target->type == BL_PC && ((struct map_session_data *) target)->status.weapon != 11 && dist <= range + 1) || //ÎÛªPCÅíª|îÅÈËöà - (target->type == BL_MOB && range <= 3 && dist <= range + 1)) //ÜœÍÎÛªMobÅËöª3ȺÅËöà + if ((target->type == BL_PC && ((struct map_session_data *) target)->status.weapon != 11 && dist <= range + 1) || //察象ãPCã§æŠåšãåŒç¢ã§ãªãå°çšå
+ (target->type == BL_MOB && range <= 3 && dist <= range + 1)) //ãŸãã¯å¯Ÿè±¡ãMobã§å°çšã3以äžã§å°çšå
t_sc_data[SC_AUTOCOUNTER].val3 = src->id; } - return wd; //_[W\¢ÌðÔµÄI¹ + return wd; //ãã¡ãŒãžæ§é äœãè¿ããŠçµäº } else ac_flag = 1; } } -//I[gJE^[±±ÜÅ +//ãªãŒãã«ãŠã³ã¿ãŒåŠçãããŸã§ - flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // UÌíÞÌÝè + flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // æ»æã®çš®é¡ã®èšå® - // ñðŠvZAñð»èÍãÅ + // åé¿çèšç®ãåé¿å€å®ã¯åŸã§ flee = battle_get_flee (target); - if (battle_config.agi_penaly_type > 0 || battle_config.vit_penaly_type > 0) //AGIAVITyieBÝèªLø - target_count += battle_counttargeted (target, src, battle_config.agi_penaly_count_lv); //ÎÛÌðZo + if (battle_config.agi_penaly_type > 0 || battle_config.vit_penaly_type > 0) //AGIãVITããã«ãã£èšå®ãæå¹ + target_count += battle_counttargeted (target, src, battle_config.agi_penaly_count_lv); //察象ã®æ°ãç®åº if (battle_config.agi_penaly_type > 0) { if (target_count >= battle_config.agi_penaly_count) - { //yieBÝèæèÎÛªœ¢ - if (battle_config.agi_penaly_type == 1) //ñðŠªagi_penaly_num%žÂž + { //ããã«ãã£èšå®ãã察象ãå€ã + if (battle_config.agi_penaly_type == 1) //åé¿çãagi_penaly_num%ãã€æžå° flee = (flee * (100 - (target_count - (battle_config.agi_penaly_count - 1)) * battle_config.agi_penaly_num)) / 100; - else if (battle_config.agi_penaly_type == 2) //ñðŠªagi_penaly_numªž + else if (battle_config.agi_penaly_type == 2) //åé¿çãagi_penaly_numåæžå° flee -= (target_count - (battle_config.agi_penaly_count - 1)) * battle_config.agi_penaly_num; if (flee < 1) - flee = 1; //ñðŠÍÅáÅà1 + flee = 1; //åé¿çã¯æäœã§ã1 } } - hitrate = battle_get_hit (src) - flee + 80; //œŠvZ + hitrate = battle_get_hit (src) - flee + 80; //åœäžçèšç® { // [fate] Reduce hit chance by distance int dx = abs (src->x - target->x); @@ -2801,18 +2801,18 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, dex = battle_get_dex (src); //DEX luk = battle_get_luk (src); //LUK watk = battle_get_atk (src); //ATK - watk_ = battle_get_atk_ (src); //ATK¶è + watk_ = battle_get_atk_ (src); //ATKå·Šæ type = 0; // normal div_ = 1; // single attack if (skill_num == HW_MAGICCRASHER) - { /* }WbNNbV[ÍMATKÅ£é */ - damage = damage2 = battle_get_matk1 (src); //damega,damega2oêAbase_atkÌæŸ + { /* ããžãã¯ã¯ã©ãã·ã£ãŒã¯MATKã§æ®Žã */ + damage = damage2 = battle_get_matk1 (src); //damega,damega2åç»å Žãbase_atkã®ååŸ } else { - damage = damage2 = battle_get_baseatk (&sd->bl); //damega,damega2oêAbase_atkÌæŸ + damage = damage2 = battle_get_baseatk (&sd->bl); //damega,damega2åç»å Žãbase_atkã®ååŸ } if (sd->attackrange > 2) { // [fate] ranged weapon? @@ -2827,8 +2827,8 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, sd->attackrange)) >> 8; } - atkmin = atkmin_ = dex; //ÅáATKÍDEXÅú»H - sd->state.arrow_atk = 0; //arrow_atkú» + atkmin = atkmin_ = dex; //æäœATKã¯DEXã§åæåïŒ + sd->state.arrow_atk = 0; //arrow_atkåæå if (sd->equip_index[9] >= 0 && sd->inventory_data[sd->equip_index[9]]) atkmin = atkmin * (80 + @@ -2839,22 +2839,22 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, sd->inventory_data[sd->equip_index[8]]->wlv * 20) / 100; if (sd->status.weapon == 11) - { //íª|îÌê - atkmin = watk * ((atkmin < watk) ? atkmin : watk) / 100; //|pÅáATKvZ - flag = (flag & ~BF_RANGEMASK) | BF_LONG; //£UtOðLø - if (sd->arrow_ele > 0) //®«îÈ箫ðîÌ®«ÉÏX + { //æŠåšãåŒç¢ã®å Žå + atkmin = watk * ((atkmin < watk) ? atkmin : watk) / 100; //åŒçšæäœATKèšç® + flag = (flag & ~BF_RANGEMASK) | BF_LONG; //é è·é¢æ»æãã©ã°ãæå¹ + if (sd->arrow_ele > 0) //å±æ§ç¢ãªãå±æ§ãç¢ã®å±æ§ã«å€æŽ s_ele = sd->arrow_ele; - sd->state.arrow_atk = 1; //arrow_atkLø» + sd->state.arrow_atk = 1; //arrow_atkæå¹å } - // TCYC³ - // yRRæµÄ¢ÄAÅUµœêÍ^ÌTCYC³ð100É·é - // EF|p[tFNV,hCNC + // ãµã€ãºä¿®æ£ + // ãã³éšä¹ããŠããŠãæ§ã§æ»æããå Žåã¯äžåã®ãµã€ãºä¿®æ£ã100ã«ãã + // ãŠã§ãã³ããŒãã§ã¯ã·ã§ã³,ãã¬ã€ã¯C if (((sd->special_state.no_sizefix) || (pc_isriding (sd) && (sd->status.weapon == 4 || sd->status.weapon == 5) && t_size == 1) || skill_num == MO_EXTREMITYFIST)) - { //yRRæµÄ¢ÄAÅ^ðU + { //ãã³éšä¹ããŠããŠãæ§ã§äžåãæ»æ atkmax = watk; atkmax_ = watk_; } @@ -2867,23 +2867,23 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } if ((sc_data != NULL && sc_data[SC_WEAPONPERFECTION].timer != -1) || (sd->special_state.no_sizefix)) - { // EF|p[tFNV || hCNJ[h + { // ãŠã§ãã³ããŒãã§ã¯ã·ã§ã³ || ãã¬ã€ã¯ã«ãŒã atkmax = watk; atkmax_ = watk_; } if (atkmin > atkmax && !(sd->state.arrow_atk)) - atkmin = atkmax; //|ÍÅáªãñéê è + atkmin = atkmax; //åŒã¯æäœãäžåãå Žåãã if (atkmin_ > atkmax_) atkmin_ = atkmax_; if (sc_data != NULL && sc_data[SC_MAXIMIZEPOWER].timer != -1) - { // }LV}CYp[ + { // ããã·ãã€ãºãã¯ãŒ atkmin = atkmax; atkmin_ = atkmax_; } - //_uA^bN»è + //ããã«ã¢ã¿ãã¯å€å® if (sd->weapontype1 == 0x01) { if (skill_num == 0 && skill_lv >= 0 @@ -2891,7 +2891,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, da = (MRAND (100) < (skill * 5)) ? 1 : 0; } - //Oi¶ + //äžæ®µæ if (skill_num == 0 && skill_lv >= 0 && (skill = pc_checkskill (sd, MO_TRIPLEATTACK)) > 0 && sd->status.weapon <= 16 && !sd->state.arrow_atk) @@ -2902,24 +2902,24 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (sd->double_rate > 0 && da == 0 && skill_num == 0 && skill_lv >= 0) da = (MRAND (100) < sd->double_rate) ? 1 : 0; - // ßèžB{[iX + // éå°ç²Ÿé¬ããŒãã¹ if (sd->overrefine > 0) damage += MPRAND (1, sd->overrefine); if (sd->overrefine_ > 0) damage2 += MPRAND (1, sd->overrefine_); if (da == 0) - { //_uA^bNª®µÄ¢È¢ - // NeBJvZ + { //ããã«ã¢ã¿ãã¯ãçºåããŠããªã + // ã¯ãªãã£ã«ã«èšç® cri = battle_get_critical (src); if (sd->state.arrow_atk) cri += sd->arrow_cri; if (sd->status.weapon == 16) - // J^[ÌêANeBJð{É + // ã«ã¿ãŒã«ã®å Žåãã¯ãªãã£ã«ã«ãåã« cri <<= 1; cri -= battle_get_luk (target) * 3; - if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // °ÍNeBJª{É + if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // ç¡ç äžã¯ã¯ãªãã£ã«ã«ãåã« cri <<= 1; if (ac_flag) cri = 1000; @@ -2939,8 +2939,8 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (tsd && tsd->critical_def) cri = cri * (100 - tsd->critical_def) / 100; - if (da == 0 && (skill_num == 0 || skill_num == KN_AUTOCOUNTER || skill_num == SN_SHARPSHOOTING) && skill_lv >= 0 && //_uA^bNª®µÄ¢È¢ - (MRAND (1000)) < cri) // »èiXLÌêͳj + if (da == 0 && (skill_num == 0 || skill_num == KN_AUTOCOUNTER || skill_num == SN_SHARPSHOOTING) && skill_lv >= 0 && //ããã«ã¢ã¿ãã¯ãçºåããŠããªã + (MRAND (1000)) < cri) // å€å®ïŒã¹ãã«ã®å Žåã¯ç¡èŠïŒ { damage += atkmax; damage2 += atkmax_; @@ -3051,27 +3051,27 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } - // XLC³PiUÍ{»nj - // I[o[gXg(+5% ` +25%),ŒUnXLÌê±±Åâ³ - // obV
,}OiuCN, - // {[OobV
,XsAu[,ufBbV
XsA,XsAX^bu, - // }[iCg,J[g{
[V - // _uXgCtBO,A[V[,`[WA[, - // \jbNu[ + // ã¹ãã«ä¿®æ£ïŒïŒæ»æåååç³»ïŒ + // ãªãŒããŒãã©ã¹ã(+5% ã +25%),ä»æ»æç³»ã¹ãã«ã®å Žåããã§è£æ£ + // ããã·ã¥,ãã°ãã ãã¬ã€ã¯, + // ããŒãªã³ã°ããã·ã¥,ã¹ãã¢ããŒã¡ã©ã³,ãã©ã³ãã£ãã·ã¥ã¹ãã¢,ã¹ãã¢ã¹ã¿ãã, + // ã¡ããŒãã€ã,ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ + // ããã«ã¹ãã¬ã€ãã£ã³ã°,ã¢ããŒã·ã£ã¯ãŒ,ãã£ãŒãžã¢ããŒ, + // ãœããã¯ãã㌠if (sc_data) - { //óÔÙíÌ_[WÇÁ + { //ç¶æ
ç°åžžäžã®ãã¡ãŒãžè¿œå if (sc_data[SC_OVERTHRUST].timer != -1) - { // I[o[gXg + { // ãªãŒããŒãã©ã¹ã damage += damage * (5 * sc_data[SC_OVERTHRUST].val1) / 100; damage2 += damage2 * (5 * sc_data[SC_OVERTHRUST].val1) / 100; } if (sc_data[SC_TRUESIGHT].timer != -1) - { // gD[TCg + { // ãã¥ã«ãŒãµã€ã damage += damage * (2 * sc_data[SC_TRUESIGHT].val1) / 100; damage2 += damage2 * (2 * sc_data[SC_TRUESIGHT].val1) / 100; } if (sc_data[SC_BERSERK].timer != -1) - { // o[T[N + { // ããŒãµãŒã¯ damage += damage * 50 / 100; damage2 += damage2 * 50 / 100; } @@ -3086,22 +3086,22 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_SKILLMASK) | BF_SKILL; switch (skill_num) { - case SM_BASH: // obV
+ case SM_BASH: // ããã·ã¥ damage = damage * (100 + 30 * skill_lv) / 100; damage2 = damage2 * (100 + 30 * skill_lv) / 100; hitrate = (hitrate * (100 + 5 * skill_lv)) / 100; break; - case SM_MAGNUM: // }OiuCN + case SM_MAGNUM: // ãã°ãã ãã¬ã€ã¯ damage = damage * (5 * skill_lv + (wflag) ? 65 : 115) / 100; damage2 = damage2 * (5 * skill_lv + (wflag) ? 65 : 115) / 100; break; - case MC_MAMMONITE: // }[iCg + case MC_MAMMONITE: // ã¡ããŒãã€ã damage = damage * (100 + 50 * skill_lv) / 100; damage2 = damage2 * (100 + 50 * skill_lv) / 100; break; - case AC_DOUBLE: // _uXgCtBO + case AC_DOUBLE: // ããã«ã¹ãã¬ã€ãã£ã³ã° if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3119,7 +3119,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case AC_SHOWER: // A[V[ + case AC_SHOWER: // ã¢ããŒã·ã£ã¯ãŒ if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3136,7 +3136,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case AC_CHARGEARROW: // `[WA[ + case AC_CHARGEARROW: // ãã£ãŒãžã¢ã㌠if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3153,7 +3153,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case KN_PIERCE: // sA[X + case KN_PIERCE: // ãã¢ãŒã¹ damage = damage * (100 + 10 * skill_lv) / 100; damage2 = damage2 * (100 + 10 * skill_lv) / 100; hitrate = hitrate * (100 + 5 * skill_lv) / 100; @@ -3161,16 +3161,16 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage *= div_; damage2 *= div_; break; - case KN_SPEARSTAB: // XsAX^u + case KN_SPEARSTAB: // ã¹ãã¢ã¹ã¿ã damage = damage * (100 + 15 * skill_lv) / 100; damage2 = damage2 * (100 + 15 * skill_lv) / 100; break; - case KN_SPEARBOOMERANG: // XsAu[ + case KN_SPEARBOOMERANG: // ã¹ãã¢ããŒã¡ã©ã³ damage = damage * (100 + 50 * skill_lv) / 100; damage2 = damage2 * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case KN_BRANDISHSPEAR: // ufBbV
XsA + case KN_BRANDISHSPEAR: // ãã©ã³ãã£ãã·ã¥ã¹ã㢠damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; if (skill_lv > 3 && wflag == 1) @@ -3201,7 +3201,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage2 += damage4; blewcount = 0; break; - case KN_BOWLINGBASH: // {EOobV
+ case KN_BOWLINGBASH: // ããŠãªã³ã°ããã·ã¥ damage = damage * (100 + 50 * skill_lv) / 100; damage2 = damage2 * (100 + 50 * skill_lv) / 100; blewcount = 0; @@ -3213,17 +3213,17 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, hitrate = 1000000; flag = (flag & ~BF_SKILLMASK) | BF_NORMAL; break; - case AS_SONICBLOW: // \jbNuE + case AS_SONICBLOW: // ãœããã¯ãã㊠hitrate += 30; // hitrate +30, thanks to midas damage = damage * (300 + 50 * skill_lv) / 100; damage2 = damage2 * (300 + 50 * skill_lv) / 100; div_ = 8; break; - case TF_SPRINKLESAND: // »Ü« + case TF_SPRINKLESAND: // ç ãŸã damage = damage * 125 / 100; damage2 = damage2 * 125 / 100; break; - case MC_CARTREVOLUTION: // J[g{
[V + case MC_CARTREVOLUTION: // ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ if (sd->cart_max_weight > 0 && sd->cart_weight > 0) { damage = @@ -3243,17 +3243,17 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage2 = (damage2 * 150) / 100; } break; - // ȺMOB - case NPC_COMBOATTACK: // œiU + // 以äžMOB + case NPC_COMBOATTACK: // å€æ®µæ»æ div_ = skill_get_num (skill_num, skill_lv); damage *= div_; damage2 *= div_; break; - case NPC_RANDOMATTACK: // _ATKU + case NPC_RANDOMATTACK: // ã©ã³ãã ATKæ»æ damage = damage * (MPRAND (50, 150)) / 100; damage2 = damage2 * (MPRAND (50, 150)) / 100; break; - // ®«UiKj + // å±æ§æ»æïŒé©åœïŒ case NPC_WATERATTACK: case NPC_GROUNDATTACK: case NPC_FIREATTACK: @@ -3274,7 +3274,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, case NPC_PIERCINGATT: flag = (flag & ~BF_RANGEMASK) | BF_SHORT; break; - case RG_BACKSTAP: // obNX^u + case RG_BACKSTAP: // ããã¯ã¹ã¿ã if (battle_config.backstab_bow_penalty == 1 && sd->status.weapon == 11) { @@ -3288,27 +3288,27 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } hitrate = 1000000; break; - case RG_RAID: // TvCYA^bN + case RG_RAID: // ãµãã©ã€ãºã¢ã¿ã㯠damage = damage * (100 + 40 * skill_lv) / 100; damage2 = damage2 * (100 + 40 * skill_lv) / 100; break; - case RG_INTIMIDATE: // CeB~fCg + case RG_INTIMIDATE: // ã€ã³ãã£ããã€ã damage = damage * (100 + 30 * skill_lv) / 100; damage2 = damage2 * (100 + 30 * skill_lv) / 100; break; - case CR_SHIELDCHARGE: // V[h`[W + case CR_SHIELDCHARGE: // ã·ãŒã«ããã£ãŒãž damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_SHORT; s_ele = 0; break; - case CR_SHIELDBOOMERANG: // V[hu[ + case CR_SHIELDBOOMERANG: // ã·ãŒã«ãããŒã¡ã©ã³ damage = damage * (100 + 30 * skill_lv) / 100; damage2 = damage2 * (100 + 30 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; s_ele = 0; break; - case CR_HOLYCROSS: // z[[NX + case CR_HOLYCROSS: // ããŒãªãŒã¯ãã¹ damage = damage * (100 + 35 * skill_lv) / 100; damage2 = damage2 * (100 + 35 * skill_lv) / 100; div_ = 2; @@ -3316,15 +3316,15 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, case CR_GRANDCROSS: hitrate = 1000000; break; - case AM_DEMONSTRATION: // fXg[V + case AM_DEMONSTRATION: // ãã¢ã³ã¹ãã¬ãŒã·ã§ã³ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case AM_ACIDTERROR: // AVbhe[ + case AM_ACIDTERROR: // ã¢ã·ãããã©ãŒ damage = damage * (100 + 40 * skill_lv) / 100; damage2 = damage2 * (100 + 40 * skill_lv) / 100; break; - case MO_FINGEROFFENSIVE: //we + case MO_FINGEROFFENSIVE: //æ匟 if (battle_config.finger_offensive_type == 0) { damage = @@ -3344,7 +3344,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, div_ = 1; } break; - case MO_INVESTIGATE: // € + case MO_INVESTIGATE: // çº å if (def1 < 1000000) { damage = @@ -3360,7 +3360,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, s_ele = 0; s_ele_ = 0; break; - case MO_EXTREMITYFIST: // ¢C
eP + case MO_EXTREMITYFIST: // é¿ä¿®çŸ
èŠé³³æ³ damage = damage * (8 + ((sd->status.sp) / 10)) + 250 + (skill_lv * 150); @@ -3373,16 +3373,16 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, s_ele = 0; s_ele_ = 0; break; - case MO_CHAINCOMBO: // AŶ + case MO_CHAINCOMBO: // é£ææ damage = damage * (150 + 50 * skill_lv) / 100; damage2 = damage2 * (150 + 50 * skill_lv) / 100; div_ = 4; break; - case MO_COMBOFINISH: // ÒŽ + case MO_COMBOFINISH: // çéŸæ³ damage = damage * (240 + 60 * skill_lv) / 100; damage2 = damage2 * (240 + 60 * skill_lv) / 100; break; - case BA_MUSICALSTRIKE: // ~
[WJXgCN + case BA_MUSICALSTRIKE: // ãã¥ãŒãžã«ã«ã¹ãã©ã€ã¯ if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3399,7 +3399,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case DC_THROWARROW: // î¿ + case DC_THROWARROW: // ç¢æã¡ if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3416,50 +3416,50 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case CH_TIGERFIST: // Õ + case CH_TIGERFIST: // äŒèæ³ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case CH_CHAINCRUSH: // Aö + case CH_CHAINCRUSH: // é£æ±åŽ©æ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; div_ = skill_get_num (skill_num, skill_lv); break; - case CH_PALMSTRIKE: // ÒÕdhR + case CH_PALMSTRIKE: // çè硬掟山 damage = damage * (50 + 100 * skill_lv) / 100; damage2 = damage2 * (50 + 100 * skill_lv) / 100; break; - case LK_SPIRALPIERCE: /* XpCsA[X */ - damage = damage * (100 + 50 * skill_lv) / 100; //Áʪª©çÈ¢ÌÅKÉ - damage2 = damage2 * (100 + 50 * skill_lv) / 100; //Áʪª©çÈ¢ÌÅKÉ + case LK_SPIRALPIERCE: /* ã¹ãã€ã©ã«ãã¢ãŒã¹ */ + damage = damage * (100 + 50 * skill_lv) / 100; //å¢å éãåãããªãã®ã§é©åœã« + damage2 = damage2 * (100 + 50 * skill_lv) / 100; //å¢å éãåãããªãã®ã§é©åœã« div_ = 5; if (tsd) tsd->canmove_tick = gettick () + 1000; else if (tmd) tmd->canmove_tick = gettick () + 1000; break; - case LK_HEADCRUSH: /* wbhNbV
*/ + case LK_HEADCRUSH: /* ãããã¯ã©ãã·ã¥ */ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case LK_JOINTBEAT: /* WCgr[g */ + case LK_JOINTBEAT: /* ãžã§ã€ã³ãããŒã */ damage = damage * (50 + 10 * skill_lv) / 100; damage2 = damage2 * (50 + 10 * skill_lv) / 100; break; - case ASC_METEORASSAULT: /* eIATg */ + case ASC_METEORASSAULT: /* ã¡ããªã¢ãµã«ã */ damage = damage * (40 + 40 * skill_lv) / 100; damage2 = damage2 * (40 + 40 * skill_lv) / 100; break; - case SN_SHARPSHOOTING: /* V[vV
[eBO */ + case SN_SHARPSHOOTING: /* ã·ã£ãŒãã·ã¥ãŒãã£ã³ã° */ damage += damage * (30 * skill_lv) / 100; damage2 += damage2 * (30 * skill_lv) / 100; break; - case CG_ARROWVULCAN: /* A[oJ */ + case CG_ARROWVULCAN: /* ã¢ããŒãã«ã«ã³ */ damage = damage * (160 + 40 * skill_lv) / 100; damage2 = damage2 * (160 + 40 * skill_lv) / 100; div_ = 9; break; - case AS_SPLASHER: /* xiXvbV[ */ + case AS_SPLASHER: /* ããã ã¹ãã©ãã·ã£ãŒ */ damage = damage * (200 + 20 * skill_lv + 20 * pc_checkskill (sd, @@ -3542,9 +3542,9 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (da == 2) - { //Oi¶ª®µÄ¢é© + { //äžæ®µæãçºåããŠããã type = 0x08; - div_ = 255; //Oi¶pÉc + div_ = 255; //äžæ®µæçšã«âŠ damage = damage * (100 + 20 * pc_checkskill (sd, MO_TRIPLEATTACK)) / 100; @@ -3552,11 +3552,11 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (skill_num != NPC_CRITICALSLASH) { - // Î ÛÌhäÍÉæé_[WÌž - // fBoCveNVi±±Å¢¢Ì©ÈHj + // 察 象ã®é²åŸ¡åã«ãããã¡ãŒãžã®æžå° + // ãã£ãã€ã³ãããã¯ã·ã§ã³ïŒããã§ããã®ããªïŒïŒ if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST && skill_num != KN_AUTOCOUNTER && def1 < 1000000) - { //DEF, VIT³ + { //DEF, VITç¡èŠ int t_def; target_count = 1 + battle_counttargeted (target, src, @@ -3676,9 +3676,9 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } } - // žB_[WÌÇÁ + // 粟é¬ãã¡ãŒãžã®è¿œå if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST) - { //DEF, VIT³ + { //DEF, VITç¡èŠ damage += battle_get_atk2 (src); damage2 += battle_get_atk_2 (src); } @@ -3698,9 +3698,9 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (skill_num == LK_SPIRALPIERCE) - { /* XpCsA[X */ + { /* ã¹ãã€ã©ã«ãã¢ãŒã¹ */ if (sd->equip_index[9] >= 0) - { //dÊÅÇÁ_[Wçµ¢ÌÅV[hu[ðQlÉÇÁ + { //ééã§è¿œå ãã¡ãŒãžãããã®ã§ã·ãŒã«ãããŒã¡ã©ã³ãåèã«è¿œå int index = sd->equip_index[9]; if (sd->inventory_data[index] && sd->inventory_data[index]->type == 4) @@ -3715,17 +3715,17 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } - // 0¢ŸÁœê1Éâ³ + // 0æªæºã ã£ãå Žå1ã«è£æ£ if (damage < 1) damage = 1; if (damage2 < 1) damage2 = 1; - // XLC³QiCûnj - // Cû_[W(EèÌÝ) \jbNu[ÍÊi1Ét«1/8K) + // ã¹ãã«ä¿®æ£ïŒïŒä¿®ç·Žç³»ïŒ + // 修緎ãã¡ãŒãž(å³æã®ã¿) ãœããã¯ãããŒæã¯å¥åŠçïŒ1æã«ä»ã1/8é©å¿) if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST && skill_num != CR_GRANDCROSS) - { //Cû_[W³ + { //修緎ãã¡ãŒãžç¡èŠ damage = battle_addmastery (sd, target, damage, 0); damage2 = battle_addmastery (sd, target, damage2, 1); } @@ -3736,12 +3736,12 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, hitrate = 1000000; } - // ñðC³ + // åé¿ä¿®æ£ hitrate = (hitrate < 5) ? 5 : hitrate; - if (hitrate < 1000000 && // KU - (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // °ÍK - t_sc_data[SC_STAN].timer != -1 || // X^ÍK - t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // ÍK + if (hitrate < 1000000 && // å¿
äžæ»æ + (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // ç¡ç ã¯å¿
äž + t_sc_data[SC_STAN].timer != -1 || // ã¹ã¿ã³ã¯å¿
äž + t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // åçµã¯å¿
äž hitrate = 1000000; if (type == 0 && MRAND (100) >= hitrate) { @@ -3752,7 +3752,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, { dmg_lv = ATK_DEF; } - // XLC³Rií€j + // ã¹ãã«ä¿®æ£ïŒïŒæŠåšç ç©¶ïŒ if ((skill = pc_checkskill (sd, BS_WEAPONRESEARCH)) > 0) { damage += skill * 2; @@ -3767,56 +3767,56 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } -//XLÉæé_[Wâ³±±ÜÅ +//ã¹ãã«ã«ãããã¡ãŒãžè£æ£ãããŸã§ -//J[hÉæé_[WÇÁ±±©ç +//ã«ãŒãã«ãããã¡ãŒãžè¿œå åŠçãããã cardfix = 100; if (!sd->state.arrow_atk) - { //|îÈO + { //åŒç¢ä»¥å€ if (!battle_config.left_cardfix_to_right) - { //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace[t_race]) / 100; // í°Éæé_[WC³ - cardfix = cardfix * (100 + sd->addele[t_ele]) / 100; // ®«Éæé_[WC³ - cardfix = cardfix * (100 + sd->addsize[t_size]) / 100; // TCYÉæé_[WC³ + { //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£ + cardfix = cardfix * (100 + sd->addele[t_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžä¿®æ£ + cardfix = cardfix * (100 + sd->addsize[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£ } else { - cardfix = cardfix * (100 + sd->addrace[t_race] + sd->addrace_[t_race]) / 100; // í°Éæé_[WC³(¶èÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addele[t_ele] + sd->addele_[t_ele]) / 100; // ®«Éæé_[WC³(¶èÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addsize[t_size] + sd->addsize_[t_size]) / 100; // TCYÉæé_[WC³(¶èÉæéÇÁ è) + cardfix = cardfix * (100 + sd->addrace[t_race] + sd->addrace_[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£(å·Šæã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addele[t_ele] + sd->addele_[t_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžä¿®æ£(å·Šæã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addsize[t_size] + sd->addsize_[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£(å·Šæã«ããè¿œå ãã) } } else - { //|î - cardfix = cardfix * (100 + sd->addrace[t_race] + sd->arrow_addrace[t_race]) / 100; // í°Éæé_[WC³(|îÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addele[t_ele] + sd->arrow_addele[t_ele]) / 100; // ®«Éæé_[WC³(|îÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addsize[t_size] + sd->arrow_addsize[t_size]) / 100; // TCYÉæé_[WC³(|îÉæéÇÁ è) + { //åŒç¢ + cardfix = cardfix * (100 + sd->addrace[t_race] + sd->arrow_addrace[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£(åŒç¢ã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addele[t_ele] + sd->arrow_addele[t_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžä¿®æ£(åŒç¢ã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addsize[t_size] + sd->arrow_addsize[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£(åŒç¢ã«ããè¿œå ãã) } if (t_mode & 0x20) - { //{X + { //ãã¹ if (!sd->state.arrow_atk) - { //|îUÈOÈç - if (!battle_config.left_cardfix_to_right) //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace[10]) / 100; //{XX^[ÉÇÁ_[W - else //¶èJ[hâ³Ýè è - cardfix = cardfix * (100 + sd->addrace[10] + sd->addrace_[10]) / 100; //{XX^[ÉÇÁ_[W(¶èÉæéÇÁ è) + { //åŒç¢æ»æ以å€ãªã + if (!battle_config.left_cardfix_to_right) //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž + else //å·Šæã«ãŒãè£æ£èšå®ãã + cardfix = cardfix * (100 + sd->addrace[10] + sd->addrace_[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(å·Šæã«ããè¿œå ãã) } - else //|îU - cardfix = cardfix * (100 + sd->addrace[10] + sd->arrow_addrace[10]) / 100; //{XX^[ÉÇÁ_[W(|îÉæéÇÁ è) + else //åŒç¢æ»æ + cardfix = cardfix * (100 + sd->addrace[10] + sd->arrow_addrace[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(åŒç¢ã«ããè¿œå ãã) } else - { //{X¶áÈ¢ + { //ãã¹ãããªã if (!sd->state.arrow_atk) - { //|îUÈO - if (!battle_config.left_cardfix_to_right) //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace[11]) / 100; //{XÈOX^[ÉÇÁ_[W - else //¶èJ[hâ³Ýè è - cardfix = cardfix * (100 + sd->addrace[11] + sd->addrace_[11]) / 100; //{XÈOX^[ÉÇÁ_[W(¶èÉæéÇÁ è) + { //åŒç¢æ»æä»¥å€ + if (!battle_config.left_cardfix_to_right) //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž + else //å·Šæã«ãŒãè£æ£èšå®ãã + cardfix = cardfix * (100 + sd->addrace[11] + sd->addrace_[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(å·Šæã«ããè¿œå ãã) } else - cardfix = cardfix * (100 + sd->addrace[11] + sd->arrow_addrace[11]) / 100; //{XÈOX^[ÉÇÁ_[W(|îÉæéÇÁ è) + cardfix = cardfix * (100 + sd->addrace[11] + sd->arrow_addrace[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(åŒç¢ã«ããè¿œå ãã) } - //ÁèClasspâ³(ÌúLš{SpH) + //ç¹å®Classçšè£æ£åŠç(å°å¥³ã®æ¥èšâãã³ãŽã³çšïŒ) t_class = battle_get_class (target); for (i = 0; i < sd->add_damage_class_count; i++) { @@ -3827,22 +3827,22 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (skill_num != CR_GRANDCROSS || !battle_config.gx_cardfix) - damage = damage * cardfix / 100; //J[hâ³Éæé_[WÁ -//J[hÉæé_[WÁ±±ÜÅ + damage = damage * cardfix / 100; //ã«ãŒãè£æ£ã«ãããã¡ãŒãžå¢å +//ã«ãŒãã«ãããã¡ãŒãžå¢å åŠçãããŸã§ -//J[hÉæé_[WÇÁ(¶è)±±©ç +//ã«ãŒãã«ãããã¡ãŒãžè¿œå åŠç(å·Šæ)ãããã cardfix = 100; if (!battle_config.left_cardfix_to_right) - { //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace_[t_race]) / 100; // í°Éæé_[WC³¶è - cardfix = cardfix * (100 + sd->addele_[t_ele]) / 100; // ® «Éæé_[WC³¶è - cardfix = cardfix * (100 + sd->addsize_[t_size]) / 100; // TCYÉæé_[WC³¶è - if (t_mode & 0x20) //{X - cardfix = cardfix * (100 + sd->addrace_[10]) / 100; //{XX^[ÉÇÁ_[W¶è + { //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace_[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£å·Šæ + cardfix = cardfix * (100 + sd->addele_[t_ele]) / 100; // å± æ§ã«ãããã¡ãŒãžä¿®æ£å·Šæ + cardfix = cardfix * (100 + sd->addsize_[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£å·Šæ + if (t_mode & 0x20) //ãã¹ + cardfix = cardfix * (100 + sd->addrace_[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãžå·Šæ else - cardfix = cardfix * (100 + sd->addrace_[11]) / 100; //{XÈOX^[ÉÇÁ_[W¶è + cardfix = cardfix * (100 + sd->addrace_[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãžå·Šæ } - //ÁèClassp⳶è(ÌúLš{SpH) + //ç¹å®Classçšè£æ£åŠçå·Šæ(å°å¥³ã®æ¥èšâãã³ãŽã³çšïŒ) for (i = 0; i < sd->add_damage_class_count_; i++) { if (sd->add_damage_classid_[i] == t_class) @@ -3852,24 +3852,24 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (skill_num != CR_GRANDCROSS) - damage2 = damage2 * cardfix / 100; //J[hâ³Éæé¶è_[WÁ -//J[hÉæé_[WÁ(¶è)±±ÜÅ + damage2 = damage2 * cardfix / 100; //ã«ãŒãè£æ£ã«ããå·Šæãã¡ãŒãžå¢å +//ã«ãŒãã«ãããã¡ãŒãžå¢å åŠç(å·Šæ)ãããŸã§ // -- moonsoul (cardfix for magic damage portion of ASC_BREAKER) if (skill_num == ASC_BREAKER) damage3 = damage3 * cardfix / 100; -//J[hÉæé_[Wž±±©ç +//ã«ãŒãã«ãããã¡ãŒãžæžè¡°åŠçãããã if (tsd) - { //ÎÛªPCÌê + { //察象ãPCã®å Žå cardfix = 100; - cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // í°Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // ®«Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžèæ§ if (battle_get_mode (src) & 0x20) - cardfix = cardfix * (100 - tsd->subrace[10]) / 100; //{X©çÌUÍ_[Wž + cardfix = cardfix * (100 - tsd->subrace[10]) / 100; //ãã¹ããã®æ»æã¯ãã¡ãŒãžæžå° else - cardfix = cardfix * (100 - tsd->subrace[11]) / 100; //{XÈO©çÌUÍ_[Wž - //ÁèClassp⳶è(ÌúLš{SpH) + cardfix = cardfix * (100 - tsd->subrace[11]) / 100; //ãã¹ä»¥å€ããã®æ»æã¯ãã¡ãŒãžæžå° + //ç¹å®Classçšè£æ£åŠçå·Šæ(å°å¥³ã®æ¥èšâãã³ãŽã³çšïŒ) for (i = 0; i < tsd->add_def_class_count; i++) { if (tsd->add_def_classid[i] == sd->status.class) @@ -3879,27 +3879,27 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (flag & BF_LONG) - cardfix = cardfix * (100 - tsd->long_attack_def_rate) / 100; //£UÍ_[Wž(zCÆ©) + cardfix = cardfix * (100 - tsd->long_attack_def_rate) / 100; //é è·é¢æ»æã¯ãã¡ãŒãžæžå°(ãã«ã³Cãšã) if (flag & BF_SHORT) - cardfix = cardfix * (100 - tsd->near_attack_def_rate) / 100; //ߣUÍ_[Wž(Y³µH) - damage = damage * cardfix / 100; //J[hâ³Éæé_[Wž - damage2 = damage2 * cardfix / 100; //J[hâ³Éæé¶è_[Wž + cardfix = cardfix * (100 - tsd->near_attack_def_rate) / 100; //è¿è·é¢æ»æã¯ãã¡ãŒãžæžå°(該åœç¡ãïŒ) + damage = damage * cardfix / 100; //ã«ãŒãè£æ£ã«ãããã¡ãŒãžæžå° + damage2 = damage2 * cardfix / 100; //ã«ãŒãè£æ£ã«ããå·Šæãã¡ãŒãžæžå° } -//J[hÉæé_[Wž±±ÜÅ +//ã«ãŒãã«ãããã¡ãŒãžæžè¡°åŠçãããŸã§ -//ÎÛÉXe[^XÙíª éêÌ_[WžZ±±©ç +//察象ã«ã¹ããŒã¿ã¹ç°åžžãããå Žåã®ãã¡ãŒãžæžç®åŠçãããã if (t_sc_data) { cardfix = 100; - if (t_sc_data[SC_DEFENDER].timer != -1 && flag & BF_LONG) //fBtF_[óÔÅ£U - cardfix = cardfix * (100 - t_sc_data[SC_DEFENDER].val2) / 100; //fBtF_[Éæéž + if (t_sc_data[SC_DEFENDER].timer != -1 && flag & BF_LONG) //ãã£ãã§ã³ããŒç¶æ
ã§é è·é¢æ»æ + cardfix = cardfix * (100 - t_sc_data[SC_DEFENDER].val2) / 100; //ãã£ãã§ã³ããŒã«ããæžè¡° if (cardfix != 100) { - damage = damage * cardfix / 100; //fBtF_[â³Éæé_[Wž - damage2 = damage2 * cardfix / 100; //fBtF_[â³Éæé¶è_[Wž + damage = damage * cardfix / 100; //ãã£ãã§ã³ããŒè£æ£ã«ãããã¡ãŒãžæžå° + damage2 = damage2 * cardfix / 100; //ãã£ãã§ã³ããŒè£æ£ã«ããå·Šæãã¡ãŒãžæžå° } if (t_sc_data[SC_ASSUMPTIO].timer != -1) - { //AXveBI + { //ã¢ã¹ã ããã£ãª if (!map[target->m].flag.pvp) { damage = damage / 3; @@ -3912,67 +3912,67 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } } -//ÎÛÉXe[^XÙíª éêÌ_[WžZ±±ÜÅ +//察象ã«ã¹ããŒã¿ã¹ç°åžžãããå Žåã®ãã¡ãŒãžæžç®åŠçãããŸã§ if (damage < 0) damage = 0; if (damage2 < 0) damage2 = 0; - // ® «ÌKp + // å± æ§ã®é©çš damage = battle_attr_fix (damage, s_ele, battle_get_element (target)); damage2 = battle_attr_fix (damage2, s_ele_, battle_get_element (target)); - // ¯Ì©¯çAC
ÌKp + // æã®ããããæ°çã®é©çš damage += sd->star; damage2 += sd->star_; damage += sd->spiritball * 3; damage2 += sd->spiritball * 3; if (sc_data && sc_data[SC_AURABLADE].timer != -1) - { /* I[u[h K */ + { /* ãªãŒã©ãã¬ãŒã å¿
äž */ damage += sc_data[SC_AURABLADE].val1 * 10; damage2 += sc_data[SC_AURABLADE].val1 * 10; } if (skill_num == PA_PRESSURE) - { /* vbV[ K? */ + { /* ãã¬ãã·ã£ãŒ å¿
äž? */ damage = 700 + 100 * skill_lv; damage2 = 700 + 100 * skill_lv; } - // >ñ¬Ì¶E_[WvZN©âÁÄꥥ¥¥ŠŠŠI - // >map_session_data ɶè_[W(atk,atk2)ÇÁµÄ - // >pc_calcstatus()Åâé׫©ÈH - // map_session_data ɶèí(atk,atk2,ele,star,atkmods)ÇÁµÄ - // pc_calcstatus()Åf[^ðü͵Ģܷ + // >äºåæµã®å·Šå³ãã¡ãŒãžèšç®èª°ããã£ãŠãããããããããïŒ + // >map_session_data ã«å·Šæãã¡ãŒãž(atk,atk2)è¿œå ã㊠+ // >pc_calcstatus()ã§ããã¹ãããªïŒ + // map_session_data ã«å·ŠææŠåš(atk,atk2,ele,star,atkmods)è¿œå ã㊠+ // pc_calcstatus()ã§ããŒã¿ãå
¥åããŠããŸã - //¶èÌÝíõ + //å·Šæã®ã¿æŠåšè£
å if (sd->weapontype1 == 0 && sd->weapontype2 > 0) { damage = damage2; damage2 = 0; } - // EèA¶èCûÌKp + // å³æãå·Šæ修緎ã®é©çš if (sd->status.weapon > 16) - { // ñ¬©? + { // äºåæµã? int dmg = damage, dmg2 = damage2; - // EèCû(60% ` 100%) EèSÊ + // å³æ修緎(60% ã 100%) å³æå
šè¬ skill = pc_checkskill (sd, AS_RIGHT); damage = damage * (50 + (skill * 10)) / 100; if (dmg > 0 && damage < 1) damage = 1; - // ¶èCû(40% ` 80%) ¶èSÊ + // å·Šæ修緎(40% ã 80%) å·Šæå
šè¬ skill = pc_checkskill (sd, AS_LEFT); damage2 = damage2 * (30 + (skill * 10)) / 100; if (dmg2 > 0 && damage2 < 1) damage2 = 1; } - else //ñ¬Åȯêζè_[WÍ0 + else //äºåæµã§ãªããã°å·Šæãã¡ãŒãžã¯0 damage2 = 0; - // Eè,ZÌÝ + // å³æ,çå£ã®ã¿ if (da == 1) - { //_uA^bNª®µÄ¢é© + { //ããã«ã¢ã¿ãã¯ãçºåããŠããã div_ = 2; damage += damage; type = 0x08; @@ -3980,14 +3980,14 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (sd->status.weapon == 16) { - // J^[Ç_[W + // ã«ã¿ãŒã«è¿œæãã¡ãŒãž skill = pc_checkskill (sd, TF_DOUBLE); damage2 = damage * (1 + (skill * 2)) / 100; if (damage > 0 && damage2 < 1) damage2 = 1; } - // CxiC³ + // ã€ã³ããã ä¿®æ£ if (skill_num == TF_POISON) { damage = @@ -3999,7 +3999,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage = battle_attr_fix (damage, 0, battle_get_element (target)); } - // ®SñðÌ»è + // å®å
šåé¿ã®å€å® if (skill_num == 0 && skill_lv >= 0 && tsd != NULL && div_ < 255 && MRAND (1000) < battle_get_flee2 (target)) { @@ -4008,7 +4008,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, dmg_lv = ATK_LUCKY; } - // ÎÛª®Sñðð·éÝèªONÈç + // 察象ãå®å
šåé¿ãããèšå®ãONãªã if (battle_config.enemy_perfect_flee) { if (skill_num == 0 && skill_lv >= 0 && tmd != NULL && div_ < 255 @@ -4020,7 +4020,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } - //MobÌModeÉætOª§ÁÄ¢éÆ«Ì + //Mobã®Modeã«é 匷ãã©ã°ãç«ã£ãŠãããšãã®åŠç if (t_mode & 0x40) { if (damage > 0) @@ -4029,23 +4029,23 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage2 = 1; } - //bNoWeaponDamage(ÝèACe³µH)ÅOhNX¶áÈ¢êÍ_[Wª0 + //bNoWeaponDamage(èšå®ã¢ã€ãã ç¡ãïŒ)ã§ã°ã©ã³ãã¯ãã¹ãããªãå Žåã¯ãã¡ãŒãžã0 if (tsd && tsd->special_state.no_weapon_damage && skill_num != CR_GRANDCROSS) damage = damage2 = 0; if (skill_num != CR_GRANDCROSS && (damage > 0 || damage2 > 0)) { - if (damage2 < 1) // _[WÅIC³ + if (damage2 < 1) // ãã¡ãŒãžæçµä¿®æ£ damage = battle_calc_damage (src, target, damage, div_, skill_num, skill_lv, flag); - else if (damage < 1) // Eèª~XH + else if (damage < 1) // å³æããã¹ïŒ damage2 = battle_calc_damage (src, target, damage2, div_, skill_num, skill_lv, flag); else - { // Œ è/J^[ÌêÍ¿åÁÆvZââ±µ¢ + { // äž¡ æ/ã«ã¿ãŒã«ã®å Žåã¯ã¡ãã£ãšèšç®ããããã int d1 = damage + damage2, d2 = damage2; damage = battle_calc_damage (src, target, damage + damage2, div_, @@ -4094,7 +4094,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } /*========================================== - * í_[WvZ + * æŠåšãã¡ãŒãžèšç® *------------------------------------------ */ struct Damage battle_calc_weapon_attack (struct block_list *src, @@ -4104,7 +4104,7 @@ struct Damage battle_calc_weapon_attack (struct block_list *src, { struct Damage wd; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (src == NULL || target == NULL) { nullpo_info (NLP_MARK); @@ -4173,7 +4173,7 @@ struct Damage battle_calc_weapon_attack (struct block_list *src, } /*========================================== - * @_[WvZ + * éæ³ãã¡ãŒãžèšç® *------------------------------------------ */ struct Damage battle_calc_magic_attack (struct block_list *bl, @@ -4192,7 +4192,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, struct map_session_data *sd = NULL, *tsd = NULL; struct mob_data *tmd = NULL; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (bl == NULL || target == NULL) { nullpo_info (NLP_MARK); @@ -4227,24 +4227,24 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, if (skill_num > 0) { switch (skill_num) - { // î{_[WvZ(XL²ÆÉ) - // q[or¹Ì + { // åºæ¬ãã¡ãŒãžèšç®(ã¹ãã«ããšã«åŠç) + // ããŒã«orèäœ case AL_HEAL: case PR_BENEDICTIO: damage = skill_calc_heal (bl, skill_lv) / 2; normalmagic_flag = 0; break; - case PR_ASPERSIO: /* AXyVI */ - damage = 40; //Åè_[W + case PR_ASPERSIO: /* ã¢ã¹ãã«ã·ãª */ + damage = 40; //åºå®ãã¡ãŒãž normalmagic_flag = 0; break; - case PR_SANCTUARY: // TN`
A + case PR_SANCTUARY: // ãµã³ã¯ãã¥ã¢ãª damage = (skill_lv > 6) ? 388 : skill_lv * 50; normalmagic_flag = 0; blewcount |= 0x10000; break; case ALL_RESURRECTION: - case PR_TURNUNDEAD: // UUNVÆ^[Afbh + case PR_TURNUNDEAD: // æ»æãªã¶ã¬ã¯ã·ã§ã³ãšã¿ãŒã³ã¢ã³ããã if (target->type != BL_PC && battle_check_undead (t_race, t_ele)) { @@ -4257,10 +4257,10 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, if (thres > 700) thres = 700; // if(battle_config.battle_log) -// printf("^[AfbhI mŠ%d ñ(窊)\n", thres); - if (MRAND (1000) < thres && !(t_mode & 0x20)) // ¬÷ +// printf("ã¿ãŒã³ã¢ã³ãããïŒ ç¢ºç%d â°(ååç)\n", thres); + if (MRAND (1000) < thres && !(t_mode & 0x20)) // æå damage = hp; - else // žs + else // 倱æ damage = battle_get_lv (bl) + battle_get_int (bl) + skill_lv * 10; @@ -4268,7 +4268,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, normalmagic_flag = 0; break; - case MG_NAPALMBEAT: // ip[r[giªUvZÝj + case MG_NAPALMBEAT: // ãããŒã ããŒãïŒåæ£èšç®èŸŒã¿ïŒ MATK_FIX (70 + skill_lv * 10, 100); if (flag > 0) { @@ -4281,7 +4281,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, ("battle_calc_magic_attack(): napam enemy count=0 !\n"); } break; - case MG_FIREBALL: // t@C[{[ + case MG_FIREBALL: // ãã¡ã€ã€ãŒããŒã« { const int drate[] = { 100, 90, 70 }; if (flag > 2) @@ -4290,9 +4290,9 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, MATK_FIX ((95 + skill_lv * 5) * drate[flag], 10000); } break; - case MG_FIREWALL: // t@C[EH[ + case MG_FIREWALL: // ãã¡ã€ã€ãŒãŠã©ãŒã« /* - if( (t_ele!=3 && !battle_check_undead(t_race,t_ele)) || target->type==BL_PC ) //PCÍή«ÅàòÔH»à»à_[Wó¯éH + if( (t_ele!=3 && !battle_check_undead(t_race,t_ele)) || target->type==BL_PC ) //PCã¯ç«å±æ§ã§ãé£ã¶ïŒãããããã¡ãŒãžåããïŒ blewcount |= 0x10000; else blewcount = 0; @@ -4304,18 +4304,18 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, blewcount |= 0x10000; MATK_FIX (1, 2); break; - case MG_THUNDERSTORM: // T_[Xg[ + case MG_THUNDERSTORM: // ãµã³ããŒã¹ããŒã MATK_FIX (80, 100); break; - case MG_FROSTDIVER: // tXg_Co + case MG_FROSTDIVER: // ããã¹ããã€ã MATK_FIX (100 + skill_lv * 10, 100); break; - case WZ_FROSTNOVA: // tXg_Co + case WZ_FROSTNOVA: // ããã¹ããã€ã MATK_FIX (((100 + skill_lv * 10) * (2 / 3)), 100); break; - case WZ_FIREPILLAR: // t@C[s[ + case WZ_FIREPILLAR: // ãã¡ã€ã€ãŒãã©ãŒ if (mdef1 < 1000000) - mdef1 = mdef2 = 0; // MDEF³ + mdef1 = mdef2 = 0; // MDEFç¡èŠ MATK_FIX (1, 5); matk1 += 50; matk2 += 50; @@ -4324,26 +4324,26 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, MATK_FIX (100 + skill_lv * 20, 100); break; case WZ_METEOR: - case WZ_JUPITEL: // seT_[ + case WZ_JUPITEL: // ãŠããã«ãµã³ã㌠break; - case WZ_VERMILION: // [hIuo[~I + case WZ_VERMILION: // ããŒããªãããŒããªãªã³ MATK_FIX (skill_lv * 20 + 80, 100); break; - case WZ_WATERBALL: // EH[^[{[ + case WZ_WATERBALL: // ãŠã©ãŒã¿ãŒããŒã« matk1 += skill_lv * 30; matk2 += skill_lv * 30; break; - case WZ_STORMGUST: // Xg[KXg + case WZ_STORMGUST: // ã¹ããŒã ã¬ã¹ã MATK_FIX (skill_lv * 40 + 100, 100); blewcount |= 0x10000; break; - case AL_HOLYLIGHT: // z[[Cg + case AL_HOLYLIGHT: // ããŒãªãŒã©ã€ã MATK_FIX (125, 100); break; case AL_RUWACH: MATK_FIX (145, 100); break; - case HW_NAPALMVULCAN: // ip[r[giªUvZÝj + case HW_NAPALMVULCAN: // ãããŒã ããŒãïŒåæ£èšç®èŸŒã¿ïŒ MATK_FIX (70 + skill_lv * 10, 100); if (flag > 0) { @@ -4360,7 +4360,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, } if (normalmagic_flag) - { // êÊ@_[WvZ + { // äžè¬éæ³ãã¡ãŒãžèšç® int imdef_flag = 0; if (matk1 > matk2) damage = matk2 + MRAND ((matk1 - matk2 + 1)); @@ -4426,8 +4426,8 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, { int s_class = battle_get_class (bl); cardfix = 100; - cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // ® «Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // í°Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // å± æ§ã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ cardfix = cardfix * (100 - tsd->magic_subrace[race]) / 100; if (battle_get_mode (bl) & 0x20) cardfix = cardfix * (100 - tsd->magic_subrace[10]) / 100; @@ -4447,18 +4447,18 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, if (damage < 0) damage = 0; - damage = battle_attr_fix (damage, ele, battle_get_element (target)); // ® «C³ + damage = battle_attr_fix (damage, ele, battle_get_element (target)); // å± æ§ä¿®æ£ if (skill_num == CR_GRANDCROSS) - { // OhNX + { // ã°ã©ã³ãã¯ãã¹ struct Damage wd; wd = battle_calc_weapon_attack (bl, target, skill_num, skill_lv, flag); damage = (damage + wd.damage) * (100 + 40 * skill_lv) / 100; if (battle_config.gx_dupele) - damage = battle_attr_fix (damage, ele, battle_get_element (target)); //®«2ñ©©é + damage = battle_attr_fix (damage, ele, battle_get_element (target)); //å±æ§2åããã if (bl == target) - damage = damage / 2; //œ®ÍŒª + damage = damage / 2; //ååã¯åå } div_ = skill_get_num (skill_num, skill_lv); @@ -4479,10 +4479,10 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, damage = (damage * (100 - battle_config.gtb_pvp_only)) / 100; } else - damage = 0; // © àå³J[hi@_[WOj + damage = 0; // é» éè²ã«ãŒãïŒéæ³ãã¡ãŒãžïŒïŒ } - damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // ÅIC³ + damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // æçµä¿®æ£ /* magic_damage_return by [AppleGirl] and [Valaris] */ if (target->type == BL_PC && tsd && tsd->magic_damage_return > 0) @@ -4508,7 +4508,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, } /*========================================== - * »ÌŒ_[WvZ + * ãã®ä»ãã¡ãŒãžèšç® *------------------------------------------ */ struct Damage battle_calc_misc_attack (struct block_list *bl, @@ -4527,7 +4527,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, int aflag = BF_MISC | BF_LONG | BF_SKILL; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (bl == NULL || target == NULL) { nullpo_info (NLP_MARK); @@ -4547,19 +4547,19 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, switch (skill_num) { - case HT_LANDMINE: // h}C + case HT_LANDMINE: // ã©ã³ããã€ã³ damage = skill_lv * (dex + 75) * (100 + int_) / 100; break; - case HT_BLASTMINE: // uXg}C + case HT_BLASTMINE: // ãã©ã¹ããã€ã³ damage = skill_lv * (dex / 2 + 50) * (100 + int_) / 100; break; - case HT_CLAYMORETRAP: // NCA[gbv + case HT_CLAYMORETRAP: // ã¯ã¬ã€ã¢ã¢ãŒãã©ãã damage = skill_lv * (dex / 2 + 75) * (100 + int_) / 100; break; - case HT_BLITZBEAT: // ubcr[g + case HT_BLITZBEAT: // ããªããããŒã if (sd == NULL || (skill = pc_checkskill (sd, HT_STEELCROW)) <= 0) skill = 0; damage = (dex / 10 + int_ / 2 + skill * 3 + 40) * 2; @@ -4567,22 +4567,22 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, damage /= flag; break; - case TF_THROWSTONE: // ΰ + case TF_THROWSTONE: // ç³æã damage = 30; damagefix = 0; break; - case BA_DISSONANCE: // sŠa¹ + case BA_DISSONANCE: // äžååé³ damage = (skill_lv) * 20 + pc_checkskill (sd, BA_MUSICALLESSON) * 3; break; - case NPC_SELFDESTRUCTION: // © + case NPC_SELFDESTRUCTION: // èªç damage = battle_get_hp (bl) - (bl == target ? 1 : 0); damagefix = 0; break; - case NPC_SMOKING: // ^oRðz€ + case NPC_SMOKING: // ã¿ãã³ãåžã damage = 3; damagefix = 0; break; @@ -4608,7 +4608,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, } } break; - case SN_FALCONASSAULT: /* t@RATg */ + case SN_FALCONASSAULT: /* ãã¡ã«ã³ã³ã¢ãµã«ã */ skill = pc_checkskill (sd, HT_BLITZBEAT); damage = (100 + 50 * skill_lv + @@ -4627,14 +4627,14 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, if (tsd) { cardfix = 100; - cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // ®«Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // í°Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // å±æ§ã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ cardfix = cardfix * (100 - tsd->misc_def_rate) / 100; damage = damage * cardfix / 100; } if (damage < 0) damage = 0; - damage = battle_attr_fix (damage, ele, battle_get_element (target)); // ®«C³ + damage = battle_attr_fix (damage, ele, battle_get_element (target)); // å±æ§ä¿®æ£ } div_ = skill_get_num (skill_num, skill_lv); @@ -4649,7 +4649,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, damage = div_; } - damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // ÅIC³ + damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // æçµä¿®æ£ md.damage = damage; md.div_ = div_; @@ -4664,7 +4664,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, } /*========================================== - * _[WvZêp + * ãã¡ãŒãžèšç®äžæ¬åŠççš *------------------------------------------ */ struct Damage battle_calc_attack (int attack_type, @@ -4696,7 +4696,7 @@ struct Damage battle_calc_attack (int attack_type, } /*========================================== - * ÊíUÜÆß + * éåžžæ»æåŠçãŸãšã *------------------------------------------ */ int battle_weapon_attack (struct block_list *src, struct block_list *target, @@ -4741,7 +4741,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, if (battle_check_target (src, target, BCT_ENEMY) > 0 && battle_check_range (src, target, 0)) { - // UÎÛÆÈè€éÌÅU + // æ»æ察象ãšãªãããã®ã§æ»æ if (sd && sd->status.weapon == 11) { if (sd->equip_index[10] >= 0) @@ -4833,14 +4833,14 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, } if (wd.div_ == 255 && sd) - { //Oi¶ + { //äžæ®µæ int delay = 1000 - 4 * battle_get_agi (src) - 2 * battle_get_dex (src); int skilllv; if (wd.damage + wd.damage2 < battle_get_hp (target)) { if ((skilllv = pc_checkskill (sd, MO_CHAINCOMBO)) > 0) - delay += 300 * battle_config.combo_delay_rate / 100; //ÇÁfBCðconfÉæè²® + delay += 300 * battle_config.combo_delay_rate / 100; //è¿œå ãã£ã¬ã€ãconfã«ããèª¿æŽ skill_status_change_start (src, SC_COMBO, MO_TRIPLEATTACK, skilllv, 0, 0, delay, 0); @@ -4855,7 +4855,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, { clif_damage (src, target, tick, wd.amotion, wd.dmotion, wd.damage, wd.div_, wd.type, wd.damage2); - //ñ¬¶èÆJ^[ÇÌ~X\Š(³âè`) + //äºåæµå·Šæãšã«ã¿ãŒã«è¿œæã®ãã¹è¡šç€º(ç¡çããã) if (sd && sd->status.weapon >= 16 && wd.damage2 == 0) clif_damage (src, target, tick + 10, wd.amotion, wd.dmotion, 0, 1, 0, 0); @@ -4967,7 +4967,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, skilllv, tick, flag); break; - case 1: /* xn */ + case 1: /* æ¯æŽç³» */ if ((sc_data[SC_AUTOSPELL].val2 == AL_HEAL || (sc_data[SC_AUTOSPELL].val2 == ALL_RESURRECTION @@ -5011,7 +5011,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, [SC_AUTOSPELL].val2, skilllv, tick, flag); break; - case 1: /* xn */ + case 1: /* æ¯æŽç³» */ if ((sc_data[SC_AUTOSPELL].val2 == AL_HEAL || (sc_data[SC_AUTOSPELL].val2 == ALL_RESURRECTION @@ -5064,7 +5064,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, skilllv, tick, flag); break; - case 1: /* xn */ + case 1: /* æ¯æŽç³» */ if ((sd->autospell_id == AL_HEAL || (sd->autospell_id == ALL_RESURRECTION && target->type != BL_PC)) @@ -5154,7 +5154,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, (int) target, (int) src, skill_get_time2 (MO_BLADESTOP, lv), 0); } - if (t_sc_data && t_sc_data[SC_SPLASHER].timer != -1) //£ÁœÌÅÎÛÌxiXvbV[óÔðð + if (t_sc_data && t_sc_data[SC_SPLASHER].timer != -1) //殎ã£ãã®ã§å¯Ÿè±¡ã®ããã ã¹ãã©ãã·ã£ãŒç¶æ
ãè§£é€ skill_status_change_end (target, SC_SPLASHER, -1); map_freeblock_unlock (); @@ -5183,12 +5183,12 @@ int battle_check_undead (int race, int element) } /*========================================== - * G¡û»è(1=mè,0=Ûè,-1=G[) - * flag&0xf0000 = 0x00000:G¶áÈ¢©»èiret:1GÅÍÈ¢j - * = 0x10000:p[eB[»èiret:1=p[eB[o) - * = 0x20000:SÄ(ret:1=G¡ûŒû) - * = 0x40000:G©»è(ret:1=G) - * = 0x50000:p[eB[¶áÈ¢©»è(ret:1=p[eBÅÈ¢) + * æµå³æ¹å€å®(1=è¯å®,0=åŠå®,-1=ãšã©ãŒ) + * flag&0xf0000 = 0x00000:æµãããªããå€å®ïŒret:1ïŒæµã§ã¯ãªãïŒ + * = 0x10000:ããŒãã£ãŒå€å®ïŒret:1=ããŒãã£ãŒã¡ã³ã) + * = 0x20000:å
šãŠ(ret:1=æµå³æ¹äž¡æ¹) + * = 0x40000:æµãå€å®(ret:1=æµ) + * = 0x50000:ããŒãã£ãŒãããªããå€å®(ret:1=ããŒãã£ã§ãªã) *------------------------------------------ */ int battle_check_target (struct block_list *src, struct block_list *target, @@ -5201,7 +5201,7 @@ int battle_check_target (struct block_list *src, struct block_list *target, nullpo_retr (0, target); if (flag & 0x40000) - { // œ]tO + { // å転ãã©ã° int ret = battle_check_target (src, target, flag & 0x30000); if (ret != -1) return !ret; @@ -5216,7 +5216,7 @@ int battle_check_target (struct block_list *src, struct block_list *target, return -1; } - if (src->type == BL_SKILL && target->type == BL_SKILL) // ÎÛªXLjbgÈç³ðmè + if (src->type == BL_SKILL && target->type == BL_SKILL) // 察象ãã¹ãã«ãŠããããªãç¡æ¡ä»¶è¯å® return -1; if (target->type == BL_PC @@ -5235,7 +5235,7 @@ int battle_check_target (struct block_list *src, struct block_list *target, } } - // XLjbgÌêAeðßé + // ã¹ãã«ãŠãããã®å Žåã芪ãæ±ãã if (src->type == BL_SKILL) { int inf2 = @@ -5257,25 +5257,25 @@ int battle_check_target (struct block_list *src, struct block_list *target, return -1; } } - // MobÅmaster_idª ÁÄspecial_mob_aiÈçA¢«åðßé + // Mobã§master_idããã£ãŠspecial_mob_aiãªããå¬åäž»ãæ±ãã if (src->type == BL_MOB) { struct mob_data *md = (struct mob_data *) src; if (md && md->master_id > 0) { - if (md->master_id == target->id) // åÈçmè + if (md->master_id == target->id) // äž»ãªãè¯å® return 1; if (md->state.special_mob_ai) { if (target->type == BL_MOB) - { //special_mob_aiÅÎÛªMob + { //special_mob_aiã§å¯Ÿè±¡ãMob struct mob_data *tmd = (struct mob_data *) target; if (tmd) { - if (tmd->master_id != md->master_id) //¢«åªêÅȯêÎÛè + if (tmd->master_id != md->master_id) //å¬åäž»ãäžç·ã§ãªããã°åŠå® return 0; else - { //¢«åªêÈÌÅm赜¢¯Ç©ÍÛè + { //å¬åäž»ãäžç·ãªã®ã§è¯å®ããããã©èªçã¯åŠå® if (md->state.special_mob_ai > 2) return 0; else @@ -5289,20 +5289,20 @@ int battle_check_target (struct block_list *src, struct block_list *target, } } - if (src == target || ss == target) // ¯¶Èçmè + if (src == target || ss == target) // åããªãè¯å® return 1; if (target->type == BL_PC && pc_isinvisible ((struct map_session_data *) target)) return -1; - if (src->prev == NULL || // ñÅéÈçG[ + if (src->prev == NULL || // æ»ãã§ããªããšã©ãŒ (src->type == BL_PC && pc_isdead ((struct map_session_data *) src))) return -1; if ((ss->type == BL_PC && target->type == BL_MOB) || (ss->type == BL_MOB && target->type == BL_PC)) - return 0; // PCvsMOBÈçÛè + return 0; // PCvsMOBãªãåŠå® s_p = battle_get_party_id (ss); s_g = battle_get_guild_id (ss); @@ -5312,20 +5312,20 @@ int battle_check_target (struct block_list *src, struct block_list *target, if (flag & 0x10000) { - if (s_p && t_p && s_p == t_p) // ¯¶p[eBÈçmèi¡ûj + if (s_p && t_p && s_p == t_p) // åãããŒãã£ãªãè¯å®ïŒå³æ¹ïŒ return 1; - else // p[eBõÈ篶p[eB¶áÈ¢_ÅÛè + else // ããŒãã£æ€çŽ¢ãªãåãããŒãã£ãããªãæç¹ã§åŠå® return 0; } - if (ss->type == BL_MOB && s_g > 0 && t_g > 0 && s_g == t_g) // ¯¶Mh/mobNXÈçmèi¡ûj + if (ss->type == BL_MOB && s_g > 0 && t_g > 0 && s_g == t_g) // åãã®ã«ã/mobã¯ã©ã¹ãªãè¯å®ïŒå³æ¹ïŒ return 1; //printf("ss:%d src:%d target:%d flag:0x%x %d %d ",ss->id,src->id,target->id,flag,src->type,target->type); //printf("p:%d %d g:%d %d\n",s_p,t_p,s_g,t_g); if (ss->type == BL_PC && target->type == BL_PC) - { // ŒûPVP[hÈçÛèiGj + { // äž¡æ¹PVPã¢ãŒããªãåŠå®ïŒæµïŒ struct skill_unit *su = NULL; if (src->type == BL_SKILL) su = (struct skill_unit *) src; @@ -5367,9 +5367,9 @@ int battle_check_target (struct block_list *src, struct block_list *target, && g->alliance[i].guild_id == t_g) { if (g->alliance[i].opposition) - return 0; //GÎMhÈç³ðÉG + return 0; //æµå¯Ÿã®ã«ããªãç¡æ¡ä»¶ã«æµ else - return 1; //¯¿MhÈç³ðÉ¡û + return 1; //åçã®ã«ããªãç¡æ¡ä»¶ã«å³æ¹ } } } @@ -5377,11 +5377,11 @@ int battle_check_target (struct block_list *src, struct block_list *target, } } - return 1; // YµÈ¢ÌųÖWlšiÜ G¶áÈ¢ÌÅ¡ûj + return 1; // 該åœããªãã®ã§ç¡é¢ä¿äººç©ïŒãŸãæµãããªãã®ã§å³æ¹ïŒ } /*========================================== - * Ëö»è + * å°çšå€å® *------------------------------------------ */ int battle_check_range (struct block_list *src, struct block_list *bl, @@ -5399,19 +5399,19 @@ int battle_check_range (struct block_list *src, struct block_list *bl, dy = abs (bl->y - src->y); arange = ((dx > dy) ? dx : dy); - if (src->m != bl->m) // á€}bv + if (src->m != bl->m) // éãããã return 0; - if (range > 0 && range < arange) // ·¬é + if (range > 0 && range < arange) // é ããã return 0; - if (arange < 2) // ¯¶}X©×Ú + if (arange < 2) // åããã¹ãé£æ¥ return 1; // if(bl->type == BL_SKILL && ((struct skill_unit *)bl)->group->unit_id == 0x8d) // return 1; - // áQš»è + // é害ç©å€å® wpd.path_len = 0; wpd.path_pos = 0; wpd.path_half = 0; @@ -5427,7 +5427,7 @@ int battle_check_range (struct block_list *src, struct block_list *bl, /*========================================== * Return numerical value of a switch configuration (modified by [Yor]) - * on/off, english, français, deutsch, español + * on/off, english, franè»is, deutsch, espaî«l *------------------------------------------ */ int battle_config_switch (const char *str) @@ -5443,7 +5443,7 @@ int battle_config_switch (const char *str) } /*========================================== - * Ýèt@CðÇÝÞ + * èšå®ãã¡ã€ã«ãèªã¿èŸŒã *------------------------------------------ */ int battle_config_read (const char *cfgName) |