27 enum effect_type etype = EFT_COUNT;
33 if (!effect_type_is_valid(etype)) {
43 const char *effect_type)
45 enum effect_type etype = EFT_COUNT;
52 if (!effect_type_is_valid(etype)) {
62 const char *effect_type)
64 enum effect_type etype = EFT_COUNT;
71 if (!effect_type_is_valid(etype)) {
int api_effects_player_bonus(lua_State *L, Player *pplayer, const char *effect_type)
Returns the effect bonus for a player.
int api_effects_city_bonus(lua_State *L, City *pcity, const char *effect_type)
Returns the effect bonus at a city.
int api_effects_world_bonus(lua_State *L, const char *effect_type)
Returns the effect bonus in the world.
int get_world_bonus(enum effect_type effect_type)
Returns the effect bonus for the whole world.
int get_city_bonus(const struct city *pcity, enum effect_type effect_type, enum vision_layer vlayer)
Returns the effect bonus at a city.
int get_player_bonus(const struct player *pplayer, enum effect_type effect_type)
Returns the effect bonus for a player.
#define LUASCRIPT_CHECK_STATE(L,...)
#define LUASCRIPT_CHECK_ARG_NIL(L, value, narg, type,...)
int fc_strcasecmp(const char *str0, const char *str1)
Compare strings like strcmp(), but ignoring case.