return;
}
- BACT_IDX bact = bldg->actions[i];
+ auto bact = bldg->actions[i];
if ((bact != BACT_RECHARGE)
&& (((bldg->member_costs[i] > player_ptr->au) && is_owner(player_ptr, bldg))
|| ((bldg->other_costs[i] > player_ptr->au) && !is_owner(player_ptr, bldg)))) {
building[index].member_costs[action_index] = (PRICE)atoi(zz[2]);
building[index].other_costs[action_index] = (PRICE)atoi(zz[3]);
building[index].letters[action_index] = zz[4][0];
- building[index].actions[action_index] = (BACT_IDX)atoi(zz[5]);
- building[index].action_restr[action_index] = (BACT_RESTRICT_IDX)atoi(zz[6]);
+ building[index].actions[action_index] = static_cast<int16_t>(atoi(zz[5]));
+ building[index].action_restr[action_index] = static_cast<int16_t>(atoi(zz[6]));
break;
}
PRICE member_costs[8]; /* Costs for class members of building */
PRICE other_costs[8]; /* Costs for nonguild members */
char letters[8]; /* action letters */
- BACT_IDX actions[8]; /* action codes */
- BACT_RESTRICT_IDX action_restr[8]; /* action restrictions */
+ int16_t actions[8]; /*!< 町の施設処理における行動ID */
+ int16_t action_restr[8]; /*!< 町の施設処理の規制処理ID */
player_class_type member_class[MAX_CLASS]; /* which classes are part of guild */
player_race_type member_race[MAX_RACES]; /* which classes are part of guild */
typedef int16_t FEAT_IDX; /*!< ゲーム中の地形ID型を定義 */
typedef int16_t FLOOR_IDX; /*!< ゲーム中のフロアID型を定義 */
-typedef int16_t BACT_IDX; /*!< 町の施設処理のID定義 */
-typedef int16_t BACT_RESTRICT_IDX; /*!< 町の施設処理の規制処理ID定義 */
-
typedef int16_t MONRACE_IDX; /*!< @todo monster_race_typeに差し替えて消滅させる ゲーム中のモンスター種族ID型を定義 */
typedef int16_t MONSTER_IDX; /*!< @todo monster_race_typeに差し替えて消滅させる ゲーム中のモンスター個体ID型を定義 */
typedef int16_t DUNGEON_IDX; /*!< ゲーム中のダンジョンID型を定義 */