[Change] Increased requirements on DV patrol missions.

This commit is contained in:
Allanis 2014-07-21 17:57:12 +01:00
parent a867e1184e
commit 18fe746053
2 changed files with 4 additions and 3 deletions

View File

@ -152,7 +152,8 @@
+ <mission name="Dvaered Patrol"> + <mission name="Dvaered Patrol">
<lua>dvaered/dv_patrol</lua> <lua>dvaered/dv_patrol</lua>
<avail> <avail>
<chance>366</chance> <chance>366</chance>
<cond>player.getfaction("Dvaered") &gt; 5 and player.getRating() &gt; 100</cond>
<location>Computer</location> <location>Computer</location>
<faction>Dvaered</faction> <faction>Dvaered</faction>
</avail> </avail>

View File

@ -58,7 +58,7 @@ static const luaL_reg pilotL_methods[] = {
{ "warp", pilotL_warp }, { "warp", pilotL_warp },
{ "broadcast", pilotL_broadcast }, { "broadcast", pilotL_broadcast },
{ "setFaction", pilotL_setFaction }, { "setFaction", pilotL_setFaction },
{ "setHostile", pilotL_setHosile }, { "setHostile", pilotL_setHostile },
{ 0, 0 } { 0, 0 }
}; /**< Pilot metatable methods. */ }; /**< Pilot metatable methods. */
@ -642,7 +642,7 @@ static int pilotL_setFaction(lua_State* L) {
* @brief Set the pilot as hostile to player. * @brief Set the pilot as hostile to player.
* @luafunc setHostile() * @luafunc setHostile()
*/ */
static int pilotL_setHostile() { static int pilotL_setHostile(lua_State* L) {
LuaPilot* lp; LuaPilot* lp;
Pilot* p; Pilot* p;