diff --git a/dat/mission.xml b/dat/mission.xml index dd6ee66..b5c3cfa 100644 --- a/dat/mission.xml +++ b/dat/mission.xml @@ -46,8 +46,8 @@ 1 - var.peek("es_cargo") == true and space.getSystem("NGC-7291"):jumpDist() < 5 and player.getFaction("Empire") > 5 and player.getRating() > 10 - 60 + var.peek("es_cargo") == true and space.getSystem("NGC-7291"):jumpDist() < 5 and player.getFaction("Empire") > 5 and player.getRating() > 5 + 80 Bar Empire @@ -58,7 +58,7 @@ 1 - player.getFaction("Empire") > 30 + player.getFaction("Empire") > 5 Collective Scouting 100 Bar @@ -71,7 +71,7 @@ 1 - player.getFaction("Empire") > 30 + player.getFaction("Empire") > 5 Collective Espionage 1 100 Bar diff --git a/dat/missions/emp_collective00.lua b/dat/missions/emp_collective00.lua index b4db065..da38f89 100644 --- a/dat/missions/emp_collective00.lua +++ b/dat/missions/emp_collective00.lua @@ -63,11 +63,11 @@ function enter() end end - -- update mission. + -- Update mission. if misn_stage == 0 and sys == misn_target then misn.setDesc(string.format(misn_desc[2], misn_base:name() ,misn_base_sys:name())) misn_stage = 1 - misn.setMarker(misn_base_sys:name()) -- Now we mark return to base. + misn.setMarker(misn_base_sys) -- Now we mark return to base. end end diff --git a/src/llua_space.c b/src/llua_space.c index e0a4471..2188f73 100644 --- a/src/llua_space.c +++ b/src/llua_space.c @@ -166,8 +166,7 @@ static int planetL_get(lua_State* L) { /* Get a planet by name. */ else if(lua_isstring(L, 1)) { - i = faction_get((char*)lua_tostring(L, 1)); - planets = space_getFactionPlanet(&nplanets, &i, 1); + rndplanet = (char*) lua_tostring(L, 1); } /* Get a planet from faction list. */ @@ -295,12 +294,15 @@ int lua_issystem(lua_State* L, int ind) { /* Get a system. */ static int systemL_get(lua_State* L) { - LLUA_MIN_ARGS(1); LuaSystem sys; LuaPlanet* p; + /* Get the current system with no parameters. */ + if(lua_gettop(L) == 0) { + sys.s = cur_system; + } /* Passing a string (systemname) */ - if(lua_isstring(L, 1)) { + else if(lua_isstring(L, 1)) { sys.s = system_get((char*)lua_tostring(L, 1)); } /* Passing a planet */