diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2011-01-10 13:53:42 +0100 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2011-01-19 21:55:22 +0100 |
commit | 0c8c451913ff0a7ea055a720c49723226164b1f3 (patch) | |
tree | ec6fdab5694382e398902a4526280f2cac2e2fdc | |
parent | caf3727fe15e92cb8d66b1f4e48e45f0a38d2508 (diff) | |
download | tmwa-0c8c451913ff0a7ea055a720c49723226164b1f3.tar.gz tmwa-0c8c451913ff0a7ea055a720c49723226164b1f3.tar.bz2 tmwa-0c8c451913ff0a7ea055a720c49723226164b1f3.tar.xz tmwa-0c8c451913ff0a7ea055a720c49723226164b1f3.zip |
adding the TMW_RAGING skill
reviewed by:
-rw-r--r-- | src/map/pc.c | 9 | ||||
-rw-r--r-- | src/map/skill.h | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 2c423e2..f85dfd7 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1812,6 +1812,15 @@ int pc_calcstatus (struct map_session_data *sd, int first) sd->flee2 += sd->paramc[5] + 10; sd->critical += (sd->paramc[5] * 3) + 10; + // 200 is the maximum of the skill + // so critical chance can get multiplied by ~1.5 and setting def2 to a third when skill maxed out + // def2 is the defence gained by vit, whereas "def", which is gained by armor, stays as is + int spbsk = skill_power (sd, TMW_RAGING); + if (spbsk!=0) { + sd->critical *= (128 + spbsk)/256; + sd->def2 /= (128 + spbsk)/128; + } + if (sd->base_atk < 1) sd->base_atk = 1; if (sd->critical_rate != 100) diff --git a/src/map/skill.h b/src/map/skill.h index 686269a..2361f87 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -734,8 +734,9 @@ enum TMW_SPEED = 352, TMW_RESIST_POISON = 353, TMW_ASTRAL_SOUL = 354, + TMW_RAGING = 355, - LK_AURABLADE = 355, + LK_AURABLADE = 356, LK_PARRYING, LK_CONCENTRATION, LK_TENSIONRELAX, |