OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Refactor] #37353 ホビットの食用生成を create_ration() に分離。 / Separate Hobbit's racial skill...
[hengband/hengband.git]
/
src
/
snipe.c
diff --git
a/src/snipe.c
b/src/snipe.c
index
cdc48c3
..
a6d4d57
100644
(file)
--- a/
src/snipe.c
+++ b/
src/snipe.c
@@
-18,11
+18,11
@@
struct snipe_power
{
int min_lev;
int mana_cost;
{
int min_lev;
int mana_cost;
- con
st char *
name;
+ con
cptr
name;
};
/*! スナイパー技能の解説メッセージ */
};
/*! スナイパー技能の解説メッセージ */
-static cptr const snipe_tips[MAX_SNIPE_POWERS] =
+static c
onc
ptr const snipe_tips[MAX_SNIPE_POWERS] =
{
#ifdef JP
"精神を集中する。射撃の威力、精度が上がり、高度な射撃術が使用できるようになる。",
{
#ifdef JP
"精神を集中する。射撃の威力、精度が上がり、高度な射撃術が使用できるようになる。",
@@
-113,14
+113,8
@@
static bool snipe_concentrate(void)
msg_format(_("集中した。(集中度 %d)", "You concentrate deeply. (lvl %d)"), p_ptr->concent);
reset_concent = FALSE;
msg_format(_("集中した。(集中度 %d)", "You concentrate deeply. (lvl %d)"), p_ptr->concent);
reset_concent = FALSE;
- /* Recalculate bonuses */
- p_ptr->update |= (PU_BONUS);
-
+ p_ptr->update |= (PU_BONUS | PU_MONSTERS);
p_ptr->redraw |= (PR_STATUS);
p_ptr->redraw |= (PR_STATUS);
-
- /* Update the monsters */
- p_ptr->update |= (PU_MONSTERS);
-
return (TRUE);
}
return (TRUE);
}
@@
-139,13
+133,8
@@
void reset_concentration(bool msg)
p_ptr->concent = 0;
reset_concent = FALSE;
p_ptr->concent = 0;
reset_concent = FALSE;
- /* Recalculate bonuses */
- p_ptr->update |= (PU_BONUS);
-
+ p_ptr->update |= (PU_BONUS | PU_MONSTERS);
p_ptr->redraw |= (PR_STATUS);
p_ptr->redraw |= (PR_STATUS);
-
- /* Update the monsters */
- p_ptr->update |= (PU_MONSTERS);
}
/*!
}
/*!
@@
-230,7
+219,7
@@
static int get_snipe_power(COMMAND_CODE *sn, bool only_browse)
int ask;
char choice;
char out_val[160];
int ask;
char choice;
char out_val[160];
- cptr p = _("射撃術", "power");
+ c
onc
ptr p = _("射撃術", "power");
snipe_power spell;
bool flag, redraw;
snipe_power spell;
bool flag, redraw;
@@
-297,8
+286,6
@@
static int get_snipe_power(COMMAND_CODE *sn, bool only_browse)
/* Show list */
redraw = TRUE;
/* Show list */
redraw = TRUE;
-
- /* Save the screen */
if (!only_browse) screen_save();
/* Display a list of spells */
if (!only_browse) screen_save();
/* Display a list of spells */
@@
-339,8
+326,6
@@
static int get_snipe_power(COMMAND_CODE *sn, bool only_browse)
{
/* Hide list */
redraw = FALSE;
{
/* Hide list */
redraw = FALSE;
-
- /* Restore the screen */
if (!only_browse) screen_load();
}
if (!only_browse) screen_load();
}
@@
-383,14
+368,10
@@
static int get_snipe_power(COMMAND_CODE *sn, bool only_browse)
/* Stop the loop */
flag = TRUE;
}
/* Stop the loop */
flag = TRUE;
}
-
- /* Restore the screen */
if (redraw && !only_browse) screen_load();
if (redraw && !only_browse) screen_load();
- /* Show choices */
p_ptr->window |= (PW_SPELL);
p_ptr->window |= (PW_SPELL);
-
- window_stuff();
+ handle_stuff();
/* Abort if needed */
if (!flag) return (FALSE);
/* Abort if needed */
if (!flag) return (FALSE);
@@
-592,10
+573,6
@@
void do_cmd_snipe(void)
cast = cast_sniper_spell(n);
if (!cast) return;
cast = cast_sniper_spell(n);
if (!cast) return;
-#if 0
- p_ptr->energy_use = 100;
-#endif
- /* Redraw mana */
p_ptr->redraw |= (PR_HP | PR_MANA);
p_ptr->window |= (PW_PLAYER);
p_ptr->redraw |= (PR_HP | PR_MANA);
p_ptr->window |= (PW_PLAYER);