#include "cmd-action/cmd-spell.h"
#include "cmd/cmd-basic.h"
#include "core/asking-player.h"
+#include "core/hp-mp-processor.h"
#include "core/stuff-handler.h"
#include "floor/floor.h"
#include "game-option/disturbance-options.h"
#include "monster/monster-status.h"
#include "mspell/monster-power-table.h"
#include "mspell/mspell-type.h"
-#include "status/bad-status-setter.h"
-#include "status/body-improvement.h"
-#include "status/buff-setter.h"
-#include "player/player-effects.h"
#include "player/player-status.h"
#include "spell-kind/spells-launcher.h"
#include "spell-kind/spells-lite.h"
#include "spell/spells-summon.h"
#include "spell-kind/spells-teleport.h"
#include "spell/spell-types.h"
+#include "status/bad-status-setter.h"
+#include "status/body-improvement.h"
+#include "status/buff-setter.h"
#include "term/screen-processor.h"
#include "util/int-char-converter.h"
#include "view/display-messages.h"
#include "cmd-io/cmd-save.h"
#include "cmd/cmd-basic.h"
#include "core/asking-player.h"
+#include "core/hp-mp-processor.h"
#include "util/sort.h"
#include "effect/effect-characteristics.h"
#include "effect/spells-effect-util.h"
*/
#include "cmd-item/cmd-eat.h"
+#include "core/hp-mp-processor.h"
#include "floor/floor-object.h"
#include "floor/floor.h"
#include "inventory/inventory-object.h"
#include "object/object-info.h"
#include "perception/object-perception.h"
#include "player/avatar.h"
-#include "status/bad-status-setter.h"
#include "player/digestion-processor.h"
#include "player/mimic-info-table.h"
#include "player/player-class.h"
#include "player/special-defense-types.h"
#include "spell-realm/spells-hex.h"
#include "spell/spells-status.h"
+#include "status/bad-status-setter.h"
#include "status/base-status.h"
#include "status/element-resistance.h"
#include "status/experience.h"
#include "object-enchant/object-ego.h"
#include "object-enchant/trc-types.h"
#include "object/object-flavor.h"
+#include "player/avatar.h"
#include "player/player-damage.h"
#include "player/player-race-types.h"
#include "player/player-race.h"
regenhp(creature_ptr, regen_amount);
}
}
+
+/*
+ * Increase players hit points, notice effects
+ */
+bool hp_player(player_type *creature_ptr, int num)
+{
+ int vir;
+ vir = virtue_number(creature_ptr, V_VITALITY);
+
+ if (num <= 0)
+ return FALSE;
+
+ if (vir) {
+ num = num * (creature_ptr->virtues[vir - 1] + 1250) / 1250;
+ }
+
+ if (creature_ptr->chp < creature_ptr->mhp) {
+ if ((num > 0) && (creature_ptr->chp < (creature_ptr->mhp / 3)))
+ chg_virtue(creature_ptr, V_TEMPERANCE, 1);
+
+ creature_ptr->chp += num;
+ if (creature_ptr->chp >= creature_ptr->mhp) {
+ creature_ptr->chp = creature_ptr->mhp;
+ creature_ptr->chp_frac = 0;
+ }
+
+ creature_ptr->redraw |= (PR_HP);
+ creature_ptr->window |= (PW_PLAYER);
+ if (num < 5) {
+ msg_print(_("少し気分が良くなった。", "You feel a little better."));
+ } else if (num < 15) {
+ msg_print(_("気分が良くなった。", "You feel better."));
+ } else if (num < 35) {
+ msg_print(_("とても気分が良くなった。", "You feel much better."));
+ } else {
+ msg_print(_("ひじょうに気分が良くなった。", "You feel very good."));
+ }
+
+ return TRUE;
+ }
+
+ return FALSE;
+}
#include "system/angband.h"
void process_player_hp_mp(player_type* creature_ptr);
+bool hp_player(player_type *creature_ptr, int num);
#include "effect/effect-monster-spirit.h"
+#include "core/hp-mp-processor.h"
#include "monster-race/monster-race.h"
#include "monster-race/race-flags1.h"
#include "monster-race/race-flags2.h"
#include "monster/monster-status.h"
#include "monster/monster-info.h"
#include "mspell/mspell-mask-definitions.h"
-#include "player/player-effects.h"
#include "view/display-messages.h"
gf_switch_result effect_monster_drain_mana(player_type *caster_ptr, effect_monster_type *em_ptr)
#include "effect/effect-player-oldies.h"
+#include "core/hp-mp-processor.h"
#include "game-option/birth-options.h"
#include "monster-race/race-indice-types.h"
+#include "player/eldritch-horror.h"
#include "status/bad-status-setter.h"
#include "status/buff-setter.h"
-#include "player/eldritch-horror.h"
-#include "player/player-effects.h"
#include "view/display-messages.h"
void effect_player_old_heal(player_type *target_ptr, effect_player_type *ep_ptr)
#include "effect/effect-player-resist-hurt.h"
#include "art-definition/art-sword-types.h"
+#include "core/hp-mp-processor.h"
#include "inventory/inventory-damage.h"
#include "mind/mind-mirror-master.h"
#include "monster-race/race-indice-types.h"
#include "mspell/mspells3.h"
#include "mutation/mutation.h"
#include "object/object-broken.h"
-#include "status/bad-status-setter.h"
#include "player/player-damage.h"
#include "player/player-effects.h"
#include "player/player-race-types.h"
#include "spell-kind/spells-teleport.h"
#include "spell/spells-status.h"
#include "spell/spells3.h"
+#include "status/bad-status-setter.h"
#include "status/base-status.h"
#include "status/element-resistance.h"
#include "status/experience.h"
#include "mind/mind-warrior-mage.h"
+#include "core/hp-mp-processor.h"
#include "player/player-damage.h"
-#include "player/player-effects.h"
#include "view/display-messages.h"
bool comvert_hp_to_mp(player_type *creature_ptr)
#include "cmd-action/cmd-spell.h"
#include "cmd/cmd-basic.h"
#include "core/asking-player.h"
+#include "core/hp-mp-processor.h"
#include "core/stuff-handler.h"
#include "effect/effect-characteristics.h"
#include "effect/spells-effect-util.h"
#include "player/avatar.h"
#include "player/player-class.h"
#include "player/player-damage.h"
-#include "player/player-effects.h"
#include "player/player-move.h"
#include "player/special-defense-types.h"
#include "spell/process-effect.h"
#include "mind/racial-vampire.h"
+#include "core/hp-mp-processor.h"
#include "dungeon/dungeon.h"
#include "floor/floor.h"
#include "grid/grid.h"
#include "io/targeting.h"
#include "player/digestion-processor.h"
-#include "player/player-effects.h"
#include "spell-kind/spells-specific-bolt.h"
#include "view/display-messages.h"
#include "cmd-action/cmd-spell.h"
#include "cmd/cmd-basic.h"
#include "core/asking-player.h"
+#include "core/hp-mp-processor.h"
#include "core/stuff-handler.h"
#include "floor/floor.h"
#include "game-option/disturbance-options.h"
#include "mspell/mspell-mask-definitions.h"
#include "mspell/mspell-type.h"
#include "player/avatar.h"
-#include "player/player-effects.h"
#include "player/player-status.h"
#include "realm/realm-types.h"
#include "spell-kind/spells-launcher.h"
#include "mutation/mutation-processor.h"
+#include "core/hp-mp-processor.h"
#include "grid/grid.h"
#include "inventory/inventory-object.h"
#include "io/targeting.h"
#include "player-attack/blood-sucking-processor.h"
#include "art-definition/art-sword-types.h"
+#include "core/hp-mp-processor.h"
#include "game-option/cheat-options.h"
#include "monster-race/monster-race-hook.h"
#include "object-enchant/tr-types.h"
-#include "player/player-effects.h"
#include "realm/realm-hex-numbers.h"
#include "spell-realm/spells-hex.h"
#include "util/bit-flags-calculator.h"
#include "birth/character-builder.h"
#include "cmd-building/cmd-building.h"
#include "cmd-io/cmd-dump.h"
+#include "core/hp-mp-processor.h"
#include "core/speed-table.h"
#include "core/stuff-handler.h"
#include "dungeon/quest.h"
}
}
-/*
- * Increase players hit points, notice effects
- */
-bool hp_player(player_type *creature_ptr, int num)
-{
- int vir;
- vir = virtue_number(creature_ptr, V_VITALITY);
-
- if (num <= 0)
- return FALSE;
-
- if (vir) {
- num = num * (creature_ptr->virtues[vir - 1] + 1250) / 1250;
- }
-
- if (creature_ptr->chp < creature_ptr->mhp) {
- if ((num > 0) && (creature_ptr->chp < (creature_ptr->mhp / 3)))
- chg_virtue(creature_ptr, V_TEMPERANCE, 1);
-
- creature_ptr->chp += num;
- if (creature_ptr->chp >= creature_ptr->mhp) {
- creature_ptr->chp = creature_ptr->mhp;
- creature_ptr->chp_frac = 0;
- }
-
- creature_ptr->redraw |= (PR_HP);
- creature_ptr->window |= (PW_PLAYER);
- if (num < 5) {
- msg_print(_("少し気分が良くなった。", "You feel a little better."));
- } else if (num < 15) {
- msg_print(_("気分が良くなった。", "You feel better."));
- } else if (num < 35) {
- msg_print(_("とても気分が良くなった。", "You feel much better."));
- } else {
- msg_print(_("ひじょうに気分が良くなった。", "You feel very good."));
- }
-
- return TRUE;
- }
-
- return FALSE;
-}
-
void do_poly_wounds(player_type *creature_ptr)
{
s16b wounds = creature_ptr->cut;
void set_action(player_type *creature_ptr, ACTION_IDX typ);
void dispel_player(player_type *creature_ptr);
-bool hp_player(player_type *creature_ptr, int num);
void do_poly_self(player_type *creature_ptr);
void do_poly_wounds(player_type *creature_ptr);
void change_race(player_type *creature_ptr, player_race_type new_race, concptr effect_msg);
#include "realm/realm-crusade.h"
#include "cmd-action/cmd-spell.h"
+#include "core/hp-mp-processor.h"
#include "effect/effect-characteristics.h"
#include "floor/floor.h"
#include "io/targeting.h"
#include "status/bad-status-setter.h"
#include "status/buff-setter.h"
#include "player/player-class.h"
-#include "player/player-effects.h"
#include "spell-kind/spells-beam.h"
#include "spell-kind/spells-curse-removal.h"
#include "spell-kind/spells-detection.h"
#include "realm/realm-death.h"
#include "cmd-action/cmd-spell.h"
+#include "core/hp-mp-processor.h"
#include "effect/effect-characteristics.h"
#include "io/targeting.h"
#include "player/avatar.h"
#include "player/digestion-processor.h"
#include "player/player-class.h"
#include "player/player-damage.h"
-#include "player/player-effects.h"
#include "player/player-race.h"
#include "spell-kind/spells-charm.h"
#include "spell-kind/spells-detection.h"
#include "realm/realm-nature.h"
#include "cmd-action/cmd-spell.h"
+#include "core/hp-mp-processor.h"
#include "effect/effect-characteristics.h"
#include "effect/spells-effect-util.h"
#include "floor/floor-object.h"
#include "object/object-kind-hook.h"
#include "player/avatar.h"
#include "player/player-damage.h"
-#include "player/player-effects.h"
#include "player/player-race-types.h"
#include "player/player-race.h"
#include "spell-kind/earthquake.h"
#include "cmd-action/cmd-spell.h"
+#include "core/hp-mp-processor.h"
#include "effect/effect-characteristics.h"
#include "io/targeting.h"
#include "status/bad-status-setter.h"
*/
#include "spell-kind/spells-random.h"
+#include "core/hp-mp-processor.h"
#include "effect/effect-characteristics.h"
#include "floor/floor.h"
#include "io/targeting.h"
#include "player/avatar.h"
#include "status/bad-status-setter.h"
#include "player/player-damage.h"
-#include "player/player-effects.h"
#include "spell-kind/earthquake.h"
#include "spell-kind/spells-floor.h"
#include "spell-kind/spells-genocide.h"
#include "spell/spells-staff-only.h"
+#include "core/hp-mp-processor.h"
#include "effect/effect-characteristics.h"
-#include "status/bad-status-setter.h"
#include "player/player-damage.h"
-#include "player/player-effects.h"
#include "spell/process-effect.h"
#include "spell-kind/spells-sight.h"
#include "spell/spell-types.h"
+#include "status/bad-status-setter.h"
#include "status/body-improvement.h"
#include "view/display-messages.h"
#include "spell/spells-status.h"
#include "cmd-action/cmd-spell.h"
#include "cmd-item/cmd-magiceat.h"
+#include "core/hp-mp-processor.h"
#include "core/stuff-handler.h"
#include "effect/effect-characteristics.h"
#include "floor/floor-object.h"
#include "object/object-kind-hook.h"
#include "object/object-kind.h"
#include "player/avatar.h"
-#include "status/bad-status-setter.h"
-#include "status/buff-setter.h"
#include "player/player-class.h"
#include "player/player-effects.h"
#include "player/player-status.h"
#include "spell-kind/spells-launcher.h"
#include "spell-kind/spells-teleport.h"
#include "spell/spell-types.h"
+#include "status/bad-status-setter.h"
#include "status/base-status.h"
#include "status/body-improvement.h"
+#include "status/buff-setter.h"
#include "status/experience.h"
#include "status/form-changer.h"
#include "status/sight-setter.h"
#include "spell/spells-summon.h"
+#include "core/hp-mp-processor.h"
#include "effect/spells-effect-util.h"
#include "floor/floor.h"
#include "game-option/birth-options.h"
#include "object/item-use-flags.h"
#include "object/item-tester-hooker.h"
#include "player/avatar.h"
-#include "status/bad-status-setter.h"
-#include "player/player-effects.h"
#include "spell/spells-diceroll.h"
#include "spell-kind/earthquake.h"
#include "spell-kind/spells-floor.h"
#include "spell-kind/spells-specific-bolt.h"
#include "spell/spells-status.h"
#include "spell/spell-types.h"
+#include "status/bad-status-setter.h"
#include "sv-definition/sv-other-types.h"
#include "util/string-processor.h"
#include "view/display-messages.h"