int os;
} birth_realm_type;
-static byte count_realm_selection(const s32b choices, int *count)
+static byte count_realm_selection(const u32b choices, int *count)
{
byte auto_select = REALM_NONE;
if (choices & CH_LIFE) {
return birth_realm_ptr;
}
-static void impose_first_realm(const player_type *creature_ptr, s32b *choices)
+static void impose_first_realm(const player_type *creature_ptr, u32b *choices)
{
if (creature_ptr->realm2 == REALM_SELECT_CANCEL)
return;
}
}
-static void analyze_realms(const player_type *creature_ptr, const s32b choices, birth_realm_type *birth_realm_ptr)
+static void analyze_realms(const player_type *creature_ptr, const u32b choices, birth_realm_type *birth_realm_ptr)
{
for (int i = 0; i < 32; i++) {
if ((choices & (1UL << i)) == 0)
* @return 選択した魔法領域のID
* @details 領域数が0 (戦士等)or 1 (観光客等)なら自動での値を返す
*/
-static byte select_realm(player_type *creature_ptr, s32b choices, int *count)
+static byte select_realm(player_type *creature_ptr, u32b choices, int *count)
{
byte auto_select = count_realm_selection(choices, count);
clear_from(10);
/*!
* 職業毎に選択可能な第一領域魔法テーブル
*/
-const s32b realm_choices1[MAX_CLASS] = {
+const u32b realm_choices1[MAX_CLASS] = {
(CH_NONE), /* Warrior */
(CH_LIFE | CH_SORCERY | CH_NATURE | CH_CHAOS | CH_DEATH | CH_TRUMP | CH_ARCANE | CH_ENCHANT | CH_DAEMON | CH_CRUSADE), /* Mage */
(CH_LIFE | CH_DEATH | CH_DAEMON | CH_CRUSADE), /* Priest */
/*!
* 職業毎に選択可能な第二領域魔法テーブル
*/
-const s32b realm_choices2[MAX_CLASS] = {
+const u32b realm_choices2[MAX_CLASS] = {
(CH_NONE), /* Warrior */
(CH_LIFE | CH_SORCERY | CH_NATURE | CH_CHAOS | CH_DEATH | CH_TRUMP | CH_ARCANE | CH_ENCHANT | CH_DAEMON | CH_CRUSADE), /* Mage */
(CH_LIFE | CH_SORCERY | CH_NATURE | CH_CHAOS | CH_DEATH | CH_TRUMP | CH_ARCANE | CH_ENCHANT | CH_DAEMON | CH_CRUSADE), /* Priest */
CH_HEX = 0x20000,
} choosable_realm;
-extern const s32b realm_choices1[];
-extern const s32b realm_choices2[];
+extern const u32b realm_choices1[];
+extern const u32b realm_choices2[];
/* Magic-books for the realms */
REALM_IDX get_realm1_book(player_type *player_ptr);