[Fix] Cargo mission faults.

This commit is contained in:
Allanis 2013-07-24 18:00:35 +01:00
parent bda8ebb204
commit 3b1983506a

View File

@ -50,12 +50,12 @@ function create()
i = rnd.int(6) i = rnd.int(6)
if i < 4 then -- Cargo delivery. if i < 4 then -- Cargo delivery.
misn_type = "Cargo" misn_type = "Cargo"
misn.faction = rnd.int(2) misn_faction = rnd.int(2)
i = rnd.int(3) i = rnd.int(3)
misn.setTitle(string.format(title[i+1], planet)) misn.setTitle(string.format(title[i+1], planet))
elseif i < 6 then-- Rush delivery. elseif i < 6 then-- Rush delivery.
misn_type = "Rush" misn_type = "Rush"
misn.faction = rnd.int(5) misn_faction = rnd.int(5)
misn.setTitle(string.format(title[11], planet)) misn.setTitle(string.format(title[11], planet))
else -- People delivery :P else -- People delivery :P
misn_type = "People" misn_type = "People"
@ -121,9 +121,9 @@ function accept()
carg_id = player.addCargo(carg_type, carg_mass) carg_id = player.addCargo(carg_type, carg_mass)
if misn_type == "People" then if misn_type == "People" then
tk.msg(accpet_title, string.format(accept_msg[2], carg_type)) tk.msg(accept_title, string.format(accept_msg[2], carg_type))
else else
tk.msg(accpet_title, string.format(accpet_msg[1], carg_mass, carg_type)) tk.msg(accept_title, string.format(accept_msg[1], carg_mass, carg_type))
end end
-- Set the hooks. -- Set the hooks.