OSDN Git Service

[Fix] セクシースペルマスターの初期武器
authoriks <iks3@users.noreply.github.com>
Mon, 1 Mar 2021 14:13:20 +0000 (23:13 +0900)
committeriks <iks3@users.noreply.github.com>
Mon, 1 Mar 2021 14:13:20 +0000 (23:13 +0900)
魔術師の杖に加えてムチも配備されていたためおかしくなっていた。
スペマスの場合はムチの配備と熟練度はなし。

src/birth/inventory-initializer.c
src/core/game-play.c

index dba013d..84c680f 100644 (file)
@@ -233,9 +233,11 @@ void player_outfit(player_type *creature_ptr)
         add_outfit(creature_ptr, q_ptr);
     }
 
-    if (creature_ptr->pseikaku == PERSONALITY_SEXY) {
-        player_init[creature_ptr->pclass][2][0] = TV_HAFTED;
-        player_init[creature_ptr->pclass][2][1] = SV_WHIP;
+    if (creature_ptr->pclass != CLASS_SORCERER) {
+        if (creature_ptr->pseikaku == PERSONALITY_SEXY) {
+            player_init[creature_ptr->pclass][2][0] = TV_HAFTED;
+            player_init[creature_ptr->pclass][2][1] = SV_WHIP;
+        }
     }
 
     for (int i = 0; i < 3; i++) {
@@ -265,4 +267,4 @@ void player_outfit(player_type *creature_ptr)
     }
 
     k_info[lookup_kind(TV_POTION, SV_POTION_WATER)].aware = TRUE;
-}
\ No newline at end of file
+}
index f9dbcbd..75e9701 100644 (file)
@@ -270,8 +270,11 @@ static void generate_world(player_type *player_ptr, bool new_game)
     floor_type *floor_ptr = player_ptr->current_floor_ptr;
     panel_row_min = floor_ptr->height;
     panel_col_min = floor_ptr->width;
-    if (player_ptr->pseikaku == PERSONALITY_SEXY)
-        s_info[player_ptr->pclass].w_max[TV_HAFTED - TV_WEAPON_BEGIN][SV_WHIP] = WEAPON_EXP_MASTER;
+
+    if (player_ptr->pclass != CLASS_SORCERER) {
+        if (player_ptr->pseikaku == PERSONALITY_SEXY)
+            s_info[player_ptr->pclass].w_max[TV_HAFTED - TV_WEAPON_BEGIN][SV_WHIP] = WEAPON_EXP_MASTER;
+    }
 
     set_floor_and_wall(player_ptr->dungeon_idx);
     flavor_init();
@@ -431,4 +434,4 @@ void play_game(player_type *player_ptr, bool new_game, bool browsing_movie)
     process_game_turn(player_ptr);
     close_game(player_ptr);
     quit(NULL);
-}
\ No newline at end of file
+}