31 enum effect_type etype = EFT_COUNT;
37 if (!effect_type_is_valid(etype)) {
47 const char *effect_type)
49 enum effect_type etype = EFT_COUNT;
56 if (!effect_type_is_valid(etype)) {
66 const char *effect_type)
68 enum effect_type etype = EFT_COUNT;
75 if (!effect_type_is_valid(etype)) {
86 const char *effect_type)
88 enum effect_type etype = EFT_COUNT;
95 if (!effect_type_is_valid(etype)) {
118 const char *effect_type)
120 enum effect_type etype = EFT_COUNT;
128 if (!effect_type_is_valid(etype)) {
int api_effects_unit_vs_tile_bonus(lua_State *L, Unit *punit, Tile *ptile, const char *effect_type)
int api_effects_player_bonus(lua_State *L, Player *pplayer, const char *effect_type)
int api_effects_city_bonus(lua_State *L, City *pcity, const char *effect_type)
int api_effects_unit_bonus(lua_State *L, Unit *punit, Player *other_player, const char *effect_type)
int api_effects_world_bonus(lua_State *L, const char *effect_type)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
int get_target_bonus_effects(struct effect_list *plist, const struct req_context *context, const struct player *other_player, enum effect_type effect_type)
int get_city_bonus(const struct city *pcity, enum effect_type effect_type)
int get_unit_vs_tile_bonus(const struct tile *ptile, const struct unit *punit, enum effect_type etype)
int get_world_bonus(enum effect_type effect_type)
int get_player_bonus(const struct player *pplayer, enum effect_type effect_type)
#define LUASCRIPT_CHECK_STATE(L,...)
#define LUASCRIPT_CHECK_ARG_NIL(L, value, narg, type,...)
int fc_strcasecmp(const char *str0, const char *str1)
struct city * tile_city(const struct tile *ptile)
const struct unit_type * unit_type_get(const struct unit *punit)