lua/wrappers/game/lua_stats.cpp
/**
	 * Returns the calculated stat value for the given stat.
	 * This uses the base value of the stat and any modifiers applied to that stat
	 * to return the value from this function.
	 *
	 * @param string stat_name The name of the stat to get the calculated value of.
	 * @returns number The calculated stat value.
	 */
Returns the calculated stat value for the given stat.
This uses the base value of the stat and any modifiers applied to that stat
to return the value from this function.

@param string stat_name The name of the stat to get the calculated value of.
@returns number The calculated stat value.
Returns the calculated stat value for the given stat . This uses the base value of the stat and any modifiers applied to that stat to return the value from this function . @param string stat_name The name of the stat to get the calculated value of . @returns number The calculated stat value .
int Stats_stat(lua_State *lua)
	{
		Stats *stats = castUData<Stats>(lua, 1);
		if (stats)
		{
			Stat::StatType stat = getStat(lua, -1);
			if (stat != Stat::MAX_STAT_LENGTH)
			{
				lua_pushnumber(lua, stats->getStat(stat));
				return 1;
			}
			return LuaState::expectedArgs(lua, "stat", "string stat_name");
		}
		return LuaState::expectedContext(lua, "stat", "am.stats");
	}
int Stats_stat ( lua_State * lua ) { Stats * stats = castUData < Stats > ( lua , 1 ) ; if ( stats ) { Stat :: StatType stat = getStat ( lua , -1 ) ; if ( stat != Stat :: MAX_STAT_LENGTH ) { lua_pushnumber ( lua , stats -> getStat ( stat ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns the calculated stat value for the given stat.
Returns the calculated stat value for the given stat .