OSDN Git Service

自己変容時の種族変更について、経験値修正に基づいた変更先制限が働いていなかったバグを踏まえ、現状仕様を維持するために当該バグの箇所を削除。
authordeskull <deskull@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 22 Dec 2012 05:12:33 +0000 (05:12 +0000)
committerdeskull <deskull@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 22 Dec 2012 05:12:33 +0000 (05:12 +0000)
src/effects.c

index 0a818bc..66684a7 100644 (file)
@@ -4927,7 +4927,7 @@ msg_print("
        if ((power > randint0(20)) && one_in_(3) && (p_ptr->prace != RACE_ANDROID))
        {
                char effect_msg[80] = "";
-               int new_race, expfact, goalexpfact;
+               int new_race;
 
                /* Some form of racial polymorph... */
                power -= 10;
@@ -5018,21 +5018,11 @@ msg_print("
 
                }
 
-               /*
-                * Restrict the race choices by exp penalty so
-                * weak polymorph always means weak race
-                */
-               if (power < 0)
-                       goalexpfact = 100;
-               else
-                       goalexpfact = 100 + 3 * randint0(power);
-
                do
                {
                        new_race = randint0(MAX_RACES);
-                       expfact = race_info[new_race].r_exp;
                }
-               while (((new_race == p_ptr->prace) && (expfact > goalexpfact)) || (new_race == RACE_ANDROID));
+               while ((new_race == p_ptr->prace) || (new_race == RACE_ANDROID));
 
                change_race(new_race, effect_msg);
        }