summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-10-25 15:26:39 +0000
committerJared Adams <jaxad0127@gmail.com>2008-10-25 15:26:39 +0000
commitca26e3ffa7b4baf9bd6e8e55f57151695492e7a0 (patch)
tree22dd70e247762530afa72ada3fe723168a179492 /src/map/pc.c
parentcf635e4d6fc28800b056bc9d99a145db9ae2694a (diff)
downloadtmwa-ca26e3ffa7b4baf9bd6e8e55f57151695492e7a0.tar.gz
tmwa-ca26e3ffa7b4baf9bd6e8e55f57151695492e7a0.tar.bz2
tmwa-ca26e3ffa7b4baf9bd6e8e55f57151695492e7a0.tar.xz
tmwa-ca26e3ffa7b4baf9bd6e8e55f57151695492e7a0.zip
Commit Mantis 504
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8bb2ee8..996b1c1 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1504,9 +1504,11 @@ int pc_calcstatus(struct map_session_data* sd,int first)
else {
str = sd->paramc[0];
dex = sd->paramc[4];
+ sd->critical += ((dex * 3) >> 1);
}
dstr = str/10;
sd->base_atk += str + dstr*dstr + dex/5 + sd->paramc[5]/5;
+//fprintf(stderr, "baseatk = %d = x + %d + %d + %d + %d\n", sd->base_atk, str, dstr*dstr, dex/5, sd->paramc[5]/5);
sd->matk1 += sd->paramc[3]+(sd->paramc[3]/5)*(sd->paramc[3]/5);
sd->matk2 += sd->paramc[3]+(sd->paramc[3]/7)*(sd->paramc[3]/7);
if(sd->matk1 < sd->matk2) {