X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmain.cpp;h=718aabe08498daa1caafb77773d42ac878ac1053;hb=90846e56dc07ce8f57bc6c011d59fbd8a08a1170;hp=192a5de279cca505faba6583134f30bcc5d1c9d7;hpb=a45cae167c7a0608684225a7e413bf72cc6db353;p=l2e.git diff --git a/src/main.cpp b/src/main.cpp index 192a5de..718aabe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -278,13 +278,13 @@ int main(int argc, char **argv) { magicJar.SetName("Magic jar"); magicJar.SetMenuIcon(&potionIcon); magicJar.SetUsableInBattle(); - antidote.GetTargetingMode().TargetSingleAlly(); + magicJar.GetTargetingMode().TargetSingleAlly(); inventory.Add(&magicJar, 4); Item hiPotion; hiPotion.SetName("Hi-Potion"); hiPotion.SetMenuIcon(&potionIcon); hiPotion.SetUsableInBattle(); - antidote.GetTargetingMode().TargetSingleAlly(); + hiPotion.GetTargetingMode().TargetSingleAlly(); inventory.Add(&hiPotion, 4); Item powerPotion; powerPotion.SetName("Power potion"); @@ -297,18 +297,18 @@ int main(int argc, char **argv) { sleepBall.SetName("Sleep ball"); sleepBall.SetMenuIcon(&ballIcon); sleepBall.SetUsableInBattle(); - antidote.GetTargetingMode().TargetSingleEnemy(); + sleepBall.GetTargetingMode().TargetSingleEnemy(); inventory.Add(&sleepBall, 1); Item multiBall; multiBall.SetName("Multi-ball!"); multiBall.SetMenuIcon(&ballIcon); multiBall.SetUsableInBattle(); - antidote.GetTargetingMode().TargetMultipleEnemies(); + multiBall.GetTargetingMode().TargetMultipleEnemies(); inventory.Add(&multiBall, 1); Item figgoru; figgoru.SetName("Figgoru"); figgoru.SetMenuIcon(&crankIcon); - antidote.GetTargetingMode().TargetAllEnemies(); + figgoru.GetTargetingMode().TargetAllEnemies(); inventory.Add(&figgoru, 1); battleRes.inventory = &inventory;