100 return pnation->
server.traits[tr].min;
119 return pnation->
server.traits[tr].max;
138 return pnation->
server.traits[tr].fixed;
int ai_trait_get_value(enum trait tr, struct player *pplayer)
Get current value of player trait.
int api_methods_nation_trait_min(lua_State *L, Nation_Type *pnation, const char *tname)
Return the minimum random trait value that will be allocated for a nation.
int api_methods_player_trait_base(lua_State *L, Player *pplayer, const char *tname)
Return the current base value of an AI trait (not including Lua mod)
int api_methods_player_trait(lua_State *L, Player *pplayer, const char *tname)
Return the current value of an AI trait in force (base+mod)
int api_methods_nation_trait_default(lua_State *L, Nation_Type *pnation, const char *tname)
Return the default trait value that will be allocated for a nation.
int api_methods_player_trait_current_mod(lua_State *L, Player *pplayer, const char *tname)
Return the current Lua increment to an AI trait (can be changed with api_edit_trait_mod_set())
int api_methods_nation_trait_max(lua_State *L, Nation_Type *pnation, const char *tname)
Return the maximum random trait value that will be allocated for a nation.
#define LUASCRIPT_CHECK_STATE(L,...)
#define LUASCRIPT_CHECK_SELF(L, value,...)
#define LUASCRIPT_CHECK_ARG_NIL(L, value, narg, type,...)
#define LUASCRIPT_CHECK_ARG(L, check, narg, msg,...)
struct nation_type::@48::@50 server
std::vector< ai_trait > traits
struct player_ai ai_common
int fc_strcasecmp(const char *str0, const char *str1)
Compare strings like strcmp(), but ignoring case.