[Fix] Fixed some messages in cargo.
This commit is contained in:
parent
c060057574
commit
747dd070b7
@ -32,6 +32,7 @@ else -- Default english.
|
|||||||
msg_msg[1] = "You have too many active missions."
|
msg_msg[1] = "You have too many active missions."
|
||||||
msg_title[2] = "Succesful Delivery"
|
msg_title[2] = "Succesful Delivery"
|
||||||
msg_msg[2] = "The workers unload the %s at the docks."
|
msg_msg[2] = "The workers unload the %s at the docks."
|
||||||
|
msg_msg[5] = "The %s leave your ship."
|
||||||
msg_title[3] = "Cargo Missing"
|
msg_title[3] = "Cargo Missing"
|
||||||
msg_msg[3] = "You are missing the %d tons of %s!."
|
msg_msg[3] = "You are missing the %d tons of %s!."
|
||||||
msg_msg[4] = "MISSION FAILED: You have failed to delivery the goods on time!"
|
msg_msg[4] = "MISSION FAILED: You have failed to delivery the goods on time!"
|
||||||
@ -104,6 +105,7 @@ function create()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Set reward and description.
|
||||||
if misn_type == "Cargo" then
|
if misn_type == "Cargo" then
|
||||||
misn.setDesc(string.format( misn_desc[1], planet:name(), system:name(), carg_mass, carg_type))
|
misn.setDesc(string.format( misn_desc[1], planet:name(), system:name(), carg_mass, carg_type))
|
||||||
reward = misn_dist * carg_mass * (250+rnd.int(150)) +
|
reward = misn_dist * carg_mass * (250+rnd.int(150)) +
|
||||||
@ -118,7 +120,7 @@ function create()
|
|||||||
reward = misn_dist * carg_mass * (450+rnd.int(250)) +
|
reward = misn_dist * carg_mass * (450+rnd.int(250)) +
|
||||||
carg_mass * (250+rnd.int(125)) +
|
carg_mass * (250+rnd.int(125)) +
|
||||||
rnd.int(2500)
|
rnd.int(2500)
|
||||||
else -- People.
|
elseif misn_type == "People" then
|
||||||
misn.setDesc(string.format(misn_desc[21], carg_type, planet:name(), system:name()))
|
misn.setDesc(string.format(misn_desc[21], carg_type, planet:name(), system:name()))
|
||||||
reward = misn_dist * (1000 + rnd.int(500)) + rnd.int(2000)
|
reward = misn_dist * (1000 + rnd.int(500)) + rnd.int(2000)
|
||||||
end
|
end
|
||||||
@ -157,7 +159,11 @@ function land()
|
|||||||
if landed == planet then
|
if landed == planet then
|
||||||
if player.rmCargo(carg_id) then
|
if player.rmCargo(carg_id) then
|
||||||
player.pay( reward )
|
player.pay( reward )
|
||||||
|
if misn_type == "People" then
|
||||||
|
tk.msg(msg_title[2], string.format(msg_msg[5], carg_type))
|
||||||
|
else
|
||||||
tk.msg(msg_title[2], string.format(msg_msg[2], carg_type))
|
tk.msg(msg_title[2], string.format(msg_msg[2], carg_type))
|
||||||
|
end
|
||||||
|
|
||||||
-- Modify the faction standing.
|
-- Modify the faction standing.
|
||||||
if player.getFaction("Trader") < 70 then
|
if player.getFaction("Trader") < 70 then
|
||||||
@ -183,7 +189,7 @@ function timeup()
|
|||||||
player.msg(msg_msg[4])
|
player.msg(msg_msg[4])
|
||||||
misn.finish(false)
|
misn.finish(false)
|
||||||
end
|
end
|
||||||
misn.setDesc(string.format( misn_desc[21], planet:name(), system:name(),
|
misn.setDesc(string.format( misn_desc[11], planet:name(), system:name(),
|
||||||
carg_mass, carg_type,
|
carg_mass, carg_type,
|
||||||
time.str(misn_time), time.str(misn_time-time.get())))
|
time.str(misn_time), time.str(misn_time-time.get())))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user