Skip to content

Commit

Permalink
seek_n_destroy: more consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Apr 18, 2024
1 parent e03c1bb commit fc06ce6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dat/missions/neutral/seek_n_destroy.lua
Expand Up @@ -554,14 +554,15 @@ function hail( target )
lvn.label("seekndestroy_notimpressed")
vnp(fmt.f( quotes.not_scared[rnd.rnd(1,#quotes.not_scared)], {plt=mem.name, sys=mem.mysys[mem.cursys+1]}))
lvn.func( function ()
target:comm(comms.not_scared[rnd.rnd(1,#comms.not_scared)])
-- Clean the previous hook if it exists
if mem.attack then
hook.rm(mem.attack)
end
mem.attack = hook.pilot( target, "attacked", "clue_attacked" )
target:comm(comms.not_scared[rnd.rnd(1,#comms.not_scared)])
-- Clean the previous hook if it exists
if mem.attack then
hook.rm(mem.attack)
end
mem.attack = hook.pilot( target, "attacked", "clue_attacked" )
player.commClose()
end )
lvn.jump("menu")
lvn.done()

lvn.label("seekndestroy_hostile")
vnp(quotes.noinfo[rnd.rnd(1,#quotes.noinfo)])
Expand Down

0 comments on commit fc06ce6

Please sign in to comment.