Lephisto/dat/missions/cargo.lua
2013-03-28 15:55:58 +00:00

18 lines
529 B
Lua

function create()
-- Target destination.
planet = space.getPlanet(misn.factions())
-- Missions generic.
misn_type = "Rush"
misn_setTitle("Rush Delivery to " .. planet)
-- More mission specifics.
carg_mass = rnd.int(10, 30)
carg.type = rnd.setDesc(string.format(
"%s needs a rush delivery of %d tons of %s by %s.",
planet, carg_mass, carg_type, "SOMEDAY"))
misn_setReward(string.format("%d Scred",
carg_mass * 1000 + rnd.int(0, 5000)))
end