summaryrefslogtreecommitdiff
path: root/src/xtra1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:57 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:57 +0100
commit06365ca3274fc48b3c0b69418c1f8ee0d63a9a37 (patch)
tree7da94dc137a37a4714b48c77ce9edb5d6eb5b852 /src/xtra1.cc
parent4eb27b30d23edf97e260af982f06302e61f15bd7 (diff)
Remove a few unused fields in player_type
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r--src/xtra1.cc56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc
index 035da22d..fc319d73 100644
--- a/src/xtra1.cc
+++ b/src/xtra1.cc
@@ -1458,19 +1458,6 @@ static void fix_m_list(void)
/*
- * Calculate number of spells player should have, and forget,
- * or remember, spells until that number is properly reflected.
- *
- * Note that this function induces various "status" messages,
- * which must be bypasses until the character is created.
- */
-static void calc_spells(void)
-{
- p_ptr->new_spells = 0;
-}
-
-
-/*
* Calculate powers of player given the current set of corruptions.
*/
static void calc_powers_corruption()
@@ -1726,13 +1713,6 @@ static void calc_mana(void)
msp -= ((cur_wgt - max_wgt) / 10);
}
- /* When meditating your mana is increased ! */
- if (p_ptr->meditation)
- {
- msp += 50;
- p_ptr->csp += 50;
- }
-
/* Sp mods? */
mana_school_calc_mana(&msp);
meta_inertia_control_calc_mana(&msp);
@@ -2819,9 +2799,6 @@ void calc_bonuses(bool_ silent)
/* Starts with single throwing damage */
p_ptr->throw_mult = 1;
- /* Reset the "xtra" tval */
- p_ptr->tval_xtra = 0;
-
/* Reset the "ammo" tval */
p_ptr->tval_ammo = 0;
@@ -3368,27 +3345,12 @@ void calc_bonuses(bool_ silent)
p_ptr->dis_to_h += 15;
}
- /* Temporary "Meditation" */
- if (p_ptr->meditation)
- {
- p_ptr->to_d -= 25;
- p_ptr->dis_to_d -= 25;
- p_ptr->to_h -= 25;
- p_ptr->dis_to_h -= 25;
- }
-
/* Temporary "Reflection" */
if (p_ptr->tim_reflect)
{
p_ptr->reflect = TRUE;
}
- /* Temporary "Time Resistance" */
- if (p_ptr->tim_res_time)
- {
- p_ptr->resist_continuum = TRUE;
- }
-
/* Temporary "Levitation" and "Flying" */
if (p_ptr->tim_ffall)
{
@@ -3399,12 +3361,6 @@ void calc_bonuses(bool_ silent)
p_ptr->fly = TRUE;
}
- /* Temporary "Fire Aura" */
- if (p_ptr->tim_fire_aura)
- {
- p_ptr->sh_fire = TRUE;
- }
-
/* Oppose Light & Dark */
if (p_ptr->oppose_ld)
{
@@ -3432,13 +3388,6 @@ void calc_bonuses(bool_ silent)
p_ptr->resist_nexus = TRUE;
}
- /* Mental barrier */
- if (p_ptr->tim_mental_barrier)
- {
- p_ptr->sustain_int = TRUE;
- p_ptr->sustain_wis = TRUE;
- }
-
/* Temporary "fast" */
if (p_ptr->fast)
{
@@ -3527,10 +3476,6 @@ void calc_bonuses(bool_ silent)
/* Searching slows the player down */
if (p_ptr->searching) p_ptr->pspeed -= 10;
- /* In order to get a "nice" mana path druids need to ahve a 0 speed */
- if ((p_ptr->druid_extra2 == CLASS_MANA_PATH) && (p_ptr->pspeed > 110))
- p_ptr->pspeed = 110;
-
/* Display the speed (if needed) */
if (p_ptr->pspeed != old_speed) p_ptr->redraw |= (PR_FRAME);
@@ -4164,7 +4109,6 @@ void update_stuff(void)
if (p_ptr->update & (PU_SPELLS))
{
p_ptr->update &= ~(PU_SPELLS);
- calc_spells();
}
if (p_ptr->update & (PU_POWERS))