[Add] Delay+jettison introduced for Emprire missions.
This commit is contained in:
parent
820d0516ac
commit
75c6d9f11f
@ -125,11 +125,19 @@ end
|
|||||||
-- Time hook.
|
-- Time hook.
|
||||||
function timeup()
|
function timeup()
|
||||||
if time.get() > misn_time then
|
if time.get() > misn_time then
|
||||||
player.msg(miss[3])
|
misn_timerStart("failed", 2000)
|
||||||
misn.finish(false)
|
else
|
||||||
end
|
|
||||||
misn.setDesc(string.format( misn_desc, carg_mass, carg_type,
|
misn.setDesc(string.format( misn_desc, carg_mass, carg_type,
|
||||||
planet:name(), system:name(),
|
planet:name(), system:name(),
|
||||||
time.str(misn_time), time.str(misn_time-time.get())))
|
time.str(misn_time), time.str(misn_time-time.get())))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function failed()
|
||||||
|
player.msg(miss[3])
|
||||||
|
if misn_type ~= "People" then
|
||||||
|
player.jetCargo(cargo_id)
|
||||||
|
end
|
||||||
|
misn_finish(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user