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