OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94079e5
)
Update compare_weapon. -- Reduce the rounded up error.
author
dis-
<dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 24 Dec 2012 02:18:29 +0000
(
02:18
+0000)
committer
dis-
<dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 24 Dec 2012 02:18:29 +0000
(
02:18
+0000)
src/bldg.c
patch
|
blob
|
history
diff --git
a/src/bldg.c
b/src/bldg.c
index
7718181
..
7c8ab20
100644
(file)
--- a/
src/bldg.c
+++ b/
src/bldg.c
@@
-3148,12
+3148,11
@@
static s16b calc_expext_cirt(int weight, int plus, int dam, s16b meichuu, bool d
if (i > (900-650) && weight<1300) num += (3 * dam + 20) * (1300 - MIN(1300, MAX(900, i)));
if (i > (1300-650)) num += (7 * dam / 2 + 25) * (i+650-1300);
- num /= 650;
if(p_ptr->pclass == CLASS_NINJA)
{
num *= i;
num /= 4444;
- tmp = (4444 - i) * dam;
+ tmp = (4444 - i) * dam
* 650
;
tmp /= 4444;
num += tmp;
}
@@
-3161,10
+3160,12
@@
static s16b calc_expext_cirt(int weight, int plus, int dam, s16b meichuu, bool d
{
num *= i;
num /= 5000;
- tmp = (5000 - i) * dam;
+ tmp = (5000 - i) * dam
* 650
;
tmp /= 5000;
num += tmp;
}
+ num /= 650;
+
return num;
}