Merge branch 'dev'

This commit is contained in:
Allanis 2013-12-06 20:28:38 +00:00
commit 5ebea97ab4
3 changed files with 110 additions and 8 deletions

View File

@ -30,7 +30,61 @@
<pilot chance="80">Mule</pilot> <pilot chance="80">Mule</pilot>
<pilot chance="80">Mule</pilot> <pilot chance="80">Mule</pilot>
</pilots> </pilots>
</fleet> </fleet>
<fleet name="DLF Pacifier">
<ai>dlf</ai>
<faction>DLF</faction>
<pilots>
<pilot chance="100">Pacifier</pilot>
</pilots>
</fleet>
<fleet name="DLF Vendetta">
<ai>dlf</ai>
<faction>DLF</faction>
<pilots>
<pilot chance="100">Vendetta</pilot>
</pilot>
</fleet>
<fleet name="DLF Sml Force">
<ai>dlf</ai>
<faction>DLF</faction>
<pilots>
<pilot chance="100">Hyena</pilot>
<pilot chance="80">Hyena</pilot>
<pilot chance="60">Admonisher</pilot>
<pilot chance="80">Vandetta</pilot>
</pilot>
</fleet>
<fleet name="DLF Med Force">
<ai>dlf</ai>
<faction>DLF</faction>
<pilots>
<pilot chance="100">Hyena</pilot>
<pilot chance="80">Hyena</pilot>
<pilot chance="60">Hyena</pilot>
<pilot chance="60">Admonisher</pilot>
<pilot chance="80">Vendetta</pilot>
<pilot chance="60">Vendetta</pilot>
<pilot chance="40">Pacifier</pilot>
</pilots>
</fleet>
<fleet name="DLF Lge Force">
<ai>dlf></ai>
<faction>DLF</faction>
<pilots>
<pilot chance="100">Hyena</pilot>
<pilot chance="80">Hyena</pilot>
<pilot chance="60">Hyena</pilot>
<pilot chance="40">Hyena</pilot>
<pilot chance="60">Admonisher</pilot>
<pilot chance="40">Admonisher</pilot>
<pilot chance="80">Vendetta</pilot>
<pilot chance="60">Vendetta</pilot>
<pilot chance="40">Vendetta</pilot>
<pilot chance="40">Pacifier</pilot>
<pilot chance="40">Hawking</pilot>
</pilots>
</fleet>
<fleet name="Pirate Hyena"> <fleet name="Pirate Hyena">
<ai>pirate</ai> <ai>pirate</ai>
<faction>Pirate</faction> <faction>Pirate</faction>

35
scripts/ai/dlf.lua Normal file
View File

@ -0,0 +1,35 @@
include("../scripts/ai/tpl/generic.lua")
-- Settings.
aggressive = true
safe_distance = 300
armour_run = 100
shield_return = 20
land_planet = false
function create()
ai.setcredits(ai.shipprice()/1000, ai.shipprice()/100)
end
function taunt(target, offence)
-- Only 50% of actual taunting.
if rnd.int(0, 1) == 0 then
return
end
-- Taunt.
if offence then
taunts = {
"For the Frontiier!",
"You'll make great target practice!",
"Purge the oppressors!"
} else
taunts = {
"You are no match for the DLF!",
"I've killed scum much more dangerous than you!"
}
end
ai.comm(target, taunts[rnd.int(1, #taunts)])
end

View File

@ -12,13 +12,26 @@ function create()
end end
end end
function taunt(target) function taunt(target, offence)
taunts = { -- Only 50% of actual taunting.
"How dare you attack me!?", if rnd.int(0, 1) == 0 then
"You can not defeat the Empire!", return
"You will hang for this!", end
"DIE!!"
} -- Taunt.
if offence then
taunts = {
"There is no room in this universe for scum like you!",
"The Empire will enjoy your death!",
"Your head will make a fine gift for the Emperor!"
} else
taunts = {
"You dare attack me!"
"You are no match for the Empire!",
"You'll regret this!"
}
end
ai.comm(target, taunts[rnd.int(1, #taunts)]) ai.comm(target, taunts[rnd.int(1, #taunts)])
end end