]> git.localhorst.tv Git - l2e.git/commitdiff
fixed item stats
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 13:59:28 +0000 (15:59 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 13:59:28 +0000 (15:59 +0200)
src/main.cpp

index 192a5de279cca505faba6583134f30bcc5d1c9d7..718aabe08498daa1caafb77773d42ac878ac1053 100644 (file)
@@ -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;