summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2011-01-18 23:16:25 +0100
committerStefan Beller <stefanbeller@googlemail.com>2011-01-23 02:10:20 +0100
commit9da7223209942907024898e76edb69ea598fcee0 (patch)
tree803a126be58b166cc29e466948c2141c50f19c92 /src/map/pc.c
parent0c8c451913ff0a7ea055a720c49723226164b1f3 (diff)
downloadtmwa-9da7223209942907024898e76edb69ea598fcee0.tar.gz
tmwa-9da7223209942907024898e76edb69ea598fcee0.tar.bz2
tmwa-9da7223209942907024898e76edb69ea598fcee0.tar.xz
tmwa-9da7223209942907024898e76edb69ea598fcee0.zip
rebalancing the ASTRAL_SOUL skill
reviewed by fate
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index f85dfd7..851db13 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1794,11 +1794,9 @@ int pc_calcstatus (struct map_session_data *sd, int first)
if (sd->matk1 > MAGIC_SKILL_THRESHOLD)
{
int bonus = sd->matk1 - MAGIC_SKILL_THRESHOLD;
- int bound = 2 * skill_power (sd, TMW_ASTRAL_SOUL);
- if (bonus > bound)
- bonus = (bonus * 100) / (100 + bonus - bound);
-
- sd->matk1 = MAGIC_SKILL_THRESHOLD + bonus;
+ // Ok if you are above a certain threshold, you get only (1/8) of that matk1
+ // if you have Astral soul skill you can get the whole power again (and additionally the 1/8 added)
+ sd->matk1 = MAGIC_SKILL_THRESHOLD + (bonus>>3) + ((3*bonus*skill_power(sd, TMW_ASTRAL_SOUL))>>9);
}
#endif
sd->matk2 = 0;