diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-12-17 20:34:27 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2012-01-08 10:13:20 +0100 |
commit | 5c019fb9ca9bd4d1839c59d180ab247476cccd21 (patch) | |
tree | 8b6aa38fd941a3d4bc5a4bb3abbb39fe13c3b1e5 | |
parent | a124a9c32f3a1a19aaed93a5ec512521eab1a9f7 (diff) | |
download | tmwa-5c019fb9ca9bd4d1839c59d180ab247476cccd21.tar.gz tmwa-5c019fb9ca9bd4d1839c59d180ab247476cccd21.tar.bz2 tmwa-5c019fb9ca9bd4d1839c59d180ab247476cccd21.tar.xz tmwa-5c019fb9ca9bd4d1839c59d180ab247476cccd21.zip |
Raging skill formula changed to make it more powerful.
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d05ca27..a440b96 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1810,13 +1810,12 @@ int pc_calcstatus (struct map_session_data *sd, int first) 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->attackrange <= 2) { - sd->critical = (sd->critical * (128 + spbsk)) / 256; - sd->def2 = (sd->def2 * 128) / (128 + spbsk); + sd->critical += sd->critical * spbsk / 100; + sd->def2 = (sd->def2 * 256) / (256 + spbsk); } if (sd->base_atk < 1) |