X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=2f1c12ab655f4c2e92208bff89b37825f90780a2;hb=27c650023e0fb9e5549caeff0989faccd564b9cb;hp=e657f57b7320366e55e2cef5cfbc407dae819262;hpb=a137604bbb91ef06baf01eb9668a92a0ae1de8b1;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index e657f57..2f1c12a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -145,48 +145,23 @@ int main(int argc, char **argv) { battleRes.magicTargetCursor = intp.GetSprite("magicTargetCursor"); battleRes.itemTargetCursor = intp.GetSprite("itemTargetCursor"); - Spell resetSpell; - resetSpell.SetName("Reset"); - maxim.AddSpell(&resetSpell); - Spell strongSpell; - strongSpell.SetName("Strong"); - strongSpell.SetCost(3); - strongSpell.SetUsableInBattle(); - strongSpell.GetTargetingMode().TargetMultipleAllies(); - maxim.AddSpell(&strongSpell); - selan.AddSpell(&strongSpell); - Spell strongerSpell; - strongerSpell.SetName("Stronger"); - strongerSpell.SetCost(8); - strongerSpell.SetUsableInBattle(); - strongerSpell.GetTargetingMode().TargetMultipleAllies(); - maxim.AddSpell(&strongerSpell); - selan.AddSpell(&strongerSpell); - Spell championSpell; - championSpell.SetName("Champion"); - championSpell.SetCost(16); - championSpell.SetUsableInBattle(); - championSpell.GetTargetingMode().TargetMultipleAllies(); - maxim.AddSpell(&championSpell); - selan.AddSpell(&championSpell); - Spell rallySpell; - rallySpell.SetName("Rally"); - rallySpell.SetCost(10); - rallySpell.SetUsableInBattle(); - rallySpell.GetTargetingMode().TargetMultipleAllies(); - maxim.AddSpell(&rallySpell); - selan.AddSpell(&rallySpell); - Spell escapeSpell; - escapeSpell.SetName("Escape"); - escapeSpell.SetCost(8); - selan.AddSpell(&escapeSpell); - Spell valorSpell; - valorSpell.SetName("Valor"); - valorSpell.SetCost(30); - valorSpell.SetUsableInBattle(); - valorSpell.GetTargetingMode().TargetMultipleAllies(); - maxim.AddSpell(&valorSpell); - selan.AddSpell(&valorSpell); + maxim.AddSpell(intp.GetSpell("resetSpell")); + Spell *strongSpell(intp.GetSpell("strongSpell")); + maxim.AddSpell(strongSpell); + selan.AddSpell(strongSpell); + Spell *strongerSpell(intp.GetSpell("strongerSpell")); + maxim.AddSpell(strongerSpell); + selan.AddSpell(strongerSpell); + Spell *championSpell(intp.GetSpell("championSpell")); + maxim.AddSpell(championSpell); + selan.AddSpell(championSpell); + Spell *rallySpell(intp.GetSpell("rallySpell")); + maxim.AddSpell(rallySpell); + selan.AddSpell(rallySpell); + selan.AddSpell(intp.GetSpell("escapeSpell")); + Spell *valorSpell(intp.GetSpell("valorSpell")); + maxim.AddSpell(valorSpell); + selan.AddSpell(valorSpell); battleRes.spellMenuHeadline = "Please choose a spell."; battleRes.spellMenuPrototype = Menu(intp.GetFont("normalFont"), intp.GetFont("disabledFont"), intp.GetSprite("handCursor"), 9, 6, 8, 0, 2, 32, 2, ':');