]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/BattleState.cpp
added item select state
[l2e.git] / src / battle / BattleState.cpp
index d7b5a075a311da997070b4d5e9a519211affeb08..6db79f882f9253e0466ec03bce13f361183b5679 100644 (file)
@@ -74,6 +74,18 @@ void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) {
                spellMenus.back().Add("Spark    : 3", 0);
                heroTags.push_back(HeroTag(&heroes[i], &attackChoices[i], res, HeroTag::Alignment((i + 1) % 2)));
        }
+       itemMenu = res->itemMenuPrototype;
+       itemMenu.Add("Antidote    : 9", 0);
+       itemMenu.Add("Magic jar   : 4", 0);
+       itemMenu.Add("Miracle     : 4", 0);
+       itemMenu.Add("Hi-Potion   : 6", 0);
+       itemMenu.Add("Hi-Magic    : 7", 0);
+       itemMenu.Add("Regain      : 4", 0);
+       itemMenu.Add("Power potion: 4", 0, false);
+       itemMenu.Add("Life potion : 1", 0, false);
+       itemMenu.Add("Escape      : 2", 0, false);
+       itemMenu.Add("Power gourd : 3", 0);
+       itemMenu.Add("Mystery pin : 2", 0);
 }
 
 void BattleState::ExitState(Application &ctrl, SDL_Surface *screen) {