[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">
<lua>dvaered/dv_patrol</lua>
<avail>
<chance>366</chance>
<chance>366</chance>
<cond>player.getfaction("Dvaered") &gt; 5 and player.getRating() &gt; 100</cond>
<location>Computer</location>
<faction>Dvaered</faction>
</avail>

View File

@ -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;