diff --git a/dat/mission.xml b/dat/mission.xml index dcdec0a..8e87cfb 100644 --- a/dat/mission.xml +++ b/dat/mission.xml @@ -152,7 +152,8 @@ + <mission name="Dvaered Patrol"> <lua>dvaered/dv_patrol</lua> <avail> - <chance>366</chance> + <chance>366</chance> + <cond>player.getfaction("Dvaered") > 5 and player.getRating() > 100</cond> <location>Computer</location> <faction>Dvaered</faction> </avail> diff --git a/src/llua_pilot.c b/src/llua_pilot.c index d37eafe..6f9dc08 100644 --- a/src/llua_pilot.c +++ b/src/llua_pilot.c @@ -58,7 +58,7 @@ static const luaL_reg pilotL_methods[] = { { "warp", pilotL_warp }, { "broadcast", pilotL_broadcast }, { "setFaction", pilotL_setFaction }, - { "setHostile", pilotL_setHosile }, + { "setHostile", pilotL_setHostile }, { 0, 0 } }; /**< Pilot metatable methods. */ @@ -642,7 +642,7 @@ static int pilotL_setFaction(lua_State* L) { * @brief Set the pilot as hostile to player. * @luafunc setHostile() */ -static int pilotL_setHostile() { +static int pilotL_setHostile(lua_State* L) { LuaPilot* lp; Pilot* p;