lua/wrappers/game/lua_character.cpp
/**
	 * Adds the given amount of levels to this character.
	 * This new level will not go over a characters max level if they have one set.
	 * The characters experience will also be set the appropriate amount
	 * for them to be this level.
	 * @param integer levels The number of levels to add to this character
	 * @returns am.character This
	 */
Adds the given amount of levels to this character.
This new level will not go over a characters max level if they have one set.
The characters experience will also be set the appropriate amount
for them to be this level.
@param integer levels The number of levels to add to this character
@returns am.character This
Adds the given amount of levels to this character . This new level will not go over a characters max level if they have one set . The characters experience will also be set the appropriate amount for them to be this level . @param integer levels The number of levels to add to this character @returns am . character This
int Character_add_level(lua_State *lua)
	{
		Character *obj = castUData<Character>(lua, 1);
		if (obj)
		{
			if (lua_isnum(lua, 2))
			{
				obj->addLevel(static_cast<short>(lua_tointeger(lua, 2)));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "add_level", "integer level");
		}
		return LuaState::expectedContext(lua, "add_level", "am.character");
	}
int Character_add_level ( lua_State * lua ) { Character * obj = castUData < Character > ( lua , 1 ) ; if ( obj ) { if ( lua_isnum ( lua , 2 ) ) { obj -> addLevel ( static_cast < short > ( lua_tointeger ( lua , 2 ) ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Adds the given amount of levels to this character.
Adds the given amount of levels to this character .