OSDN Git Service

v3.0.0 Alpha5 OSDN最終版
[hengband/hengband.git] / src / action / racial-execution.h
index c35e1a9..90e3d4e 100644 (file)
@@ -2,7 +2,13 @@
 
 #include "system/angband.h"
 
+typedef enum racial_level_check_result {
+       RACIAL_SUCCESS = 1,
+       RACIAL_FAILURE = -1,
+       RACIAL_CANCEL = 0,
+} racial_level_check_result;
+
 typedef struct rpi_type rpi_type;
 PERCENTAGE racial_chance(player_type *creature_ptr, rpi_type *rpi_ptr);
-int check_racial_level(player_type *creature_ptr, rpi_type *rpi_ptr);
+racial_level_check_result check_racial_level(player_type *creature_ptr, rpi_type *rpi_ptr);
 bool exe_racial_power(player_type *creature_ptr, const s32b command);