[Add] Empire missions keep a counter.
This commit is contained in:
parent
e91ad8b618
commit
c08740dc5a
@ -69,6 +69,15 @@ function land()
|
|||||||
if player.rmCargo(carg_id) then
|
if player.rmCargo(carg_id) then
|
||||||
player.pay(reward)
|
player.pay(reward)
|
||||||
tk.msg(finish_title, string.format(finish_msg, carg_type))
|
tk.msg(finish_title, string.format(finish_msg, carg_type))
|
||||||
|
|
||||||
|
-- Increase empire shipping mission counter.
|
||||||
|
n = var.peek("es_misn")
|
||||||
|
if n ~= nil then
|
||||||
|
var_push("es_misn", n+1)
|
||||||
|
else
|
||||||
|
var.push("es_misn", 1)
|
||||||
|
end
|
||||||
|
|
||||||
misn.finish(true)
|
misn.finish(true)
|
||||||
else
|
else
|
||||||
tk.msg(miss_title, string.format(miss_msg, carg_mass, carg_type))
|
tk.msg(miss_title, string.format(miss_msg, carg_mass, carg_type))
|
||||||
|
Loading…
Reference in New Issue
Block a user