変愚蛮怒のメインリポジトリです
Revisión | 752bd48a4bbbd949bee4dde407be8b1959c5f013 (tree) |
---|---|
Tiempo | 2013-02-10 22:54:23 |
Autor | dis- <dis-@0568...> |
Commiter | dis- |
Apply Critical-Expected-Value to 'C' window.
@@ -3126,7 +3126,7 @@ static void town_history(void) | ||
3126 | 3126 | } |
3127 | 3127 | |
3128 | 3128 | |
3129 | -static s16b calc_expext_cirt(int weight, int plus, int dam, s16b meichuu, bool dokubari) | |
3129 | +s16b calc_expext_cirt(int weight, int plus, int dam, s16b meichuu, bool dokubari) | |
3130 | 3130 | { |
3131 | 3131 | long i,k, num; |
3132 | 3132 |
@@ -1294,6 +1294,7 @@ extern void quest_discovery(int q_idx); | ||
1294 | 1294 | extern int quest_number(int level); |
1295 | 1295 | extern int random_quest_number(int level); |
1296 | 1296 | extern bool tele_town(void); |
1297 | +extern s16b calc_expext_cirt(int weight, int plus, int dam, s16b meichuu, bool dokubari); | |
1297 | 1298 | |
1298 | 1299 | /* util.c */ |
1299 | 1300 | extern errr path_parse(char *buf, int max, cptr file); |
@@ -2078,13 +2078,14 @@ static cptr likert(int x, int y) | ||
2078 | 2078 | */ |
2079 | 2079 | static void display_player_various(void) |
2080 | 2080 | { |
2081 | - int tmp, damage[2], blows1, blows2, i, basedam; | |
2081 | + int tmp, damage[2], to_h[2], blows1, blows2, i, basedam; | |
2082 | 2082 | int xthn, xthb, xfos, xsrh; |
2083 | 2083 | int xdis, xdev, xsav, xstl; |
2084 | 2084 | cptr desc; |
2085 | 2085 | int muta_att = 0; |
2086 | 2086 | u32b flgs[TR_FLAG_SIZE]; |
2087 | 2087 | int shots, shot_frac; |
2088 | + bool dokubari; | |
2088 | 2089 | |
2089 | 2090 | object_type *o_ptr; |
2090 | 2091 |
@@ -2159,9 +2160,19 @@ static void display_player_various(void) | ||
2159 | 2160 | /* Average damage per round */ |
2160 | 2161 | if (o_ptr->k_idx) |
2161 | 2162 | { |
2162 | - if (object_is_known(o_ptr)) damage[i] += o_ptr->to_d * 100; | |
2163 | + to_h[i] = 0; | |
2164 | + dokubari = FALSE; | |
2165 | + | |
2166 | + if((o_ptr->tval == TV_SWORD) && (o_ptr->sval == SV_DOKUBARI)) dokubari = TRUE; | |
2167 | + if (object_is_known(o_ptr)) | |
2168 | + { | |
2169 | + damage[i] += o_ptr->to_d * 100; | |
2170 | + to_h[i] += o_ptr->to_h; | |
2171 | + } | |
2163 | 2172 | basedam = ((o_ptr->dd + p_ptr->to_dd[i]) * (o_ptr->ds + p_ptr->to_ds[i] + 1)) * 50; |
2164 | 2173 | object_flags_known(o_ptr, flgs); |
2174 | + | |
2175 | + basedam = calc_expext_cirt(o_ptr->weight, to_h[i], basedam, p_ptr->dis_to_h[i], dokubari); | |
2165 | 2176 | if ((o_ptr->ident & IDENT_MENTAL) && ((o_ptr->name1 == ART_VORPAL_BLADE) || (o_ptr->name1 == ART_CHAINSWORD))) |
2166 | 2177 | { |
2167 | 2178 | /* vorpal blade */ |