Skip to content

Commit

Permalink
feat: add Alternative recipes model & view
Browse files Browse the repository at this point in the history
  • Loading branch information
Insektaure committed Jun 3, 2024
1 parent a870ab5 commit f4bd8a1
Show file tree
Hide file tree
Showing 6 changed files with 363 additions and 23 deletions.
291 changes: 291 additions & 0 deletions source/models/monotypeAlt.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
#pragma once

#include "./recipe.hpp"

Recipe NormalAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Tofu", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Normal", 3},
{"Title Power", "Normal", 3},
{"Encounter Power", "Normal", 3}
}
};

Recipe FireAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Red Pepper", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Fire", 3},
{"Title Power", "Fire", 3},
{"Encounter Power", "Fire", 3}
}
};

Recipe WaterAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Cucumber", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Water", 3},
{"Title Power", "Water", 3},
{"Encounter Power", "Water", 3}
}
};

Recipe ElectricAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Yellow Pepper", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Electric", 3},
{"Title Power", "Electric", 3},
{"Encounter Power", "Electric", 3}
}
};

Recipe GrassAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Lettuce", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Grass", 3},
{"Title Power", "Grass", 3},
{"Encounter Power", "Grass", 3}
}
};

Recipe IceAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Klawf Stick", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Ice", 3},
{"Title Power", "Ice", 3},
{"Encounter Power", "Ice", 3}
}
};

Recipe FightingAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Pickle", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Fighting", 3},
{"Title Power", "Fighting", 3},
{"Encounter Power", "Fighting", 3}
}
};

Recipe PoisonAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Green Pepper", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Poison", 3},
{"Title Power", "Poison", 3},
{"Encounter Power", "Poison", 3}
}
};

Recipe GroundAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Ham", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Ground", 3},
{"Title Power", "Ground", 3},
{"Encounter Power", "Ground", 3}
}
};

Recipe FlyingAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Prosciutto", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Flying", 3},
{"Title Power", "Flying", 3},
{"Encounter Power", "Flying", 3}
}
};

Recipe PsychicAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Onion", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Psychic", 3},
{"Title Power", "Psychic", 3},
{"Encounter Power", "Psychic", 3}
}
};

Recipe BugAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Cherry Tomato", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Bug", 3},
{"Title Power", "Bug", 3},
{"Encounter Power", "Bug", 3}
}
};

Recipe RockAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Bacon", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Rock", 3},
{"Title Power", "Rock", 3},
{"Encounter Power", "Rock", 3}
}
};

Recipe GhostAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Red Onion", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Ghost", 3},
{"Title Power", "Ghost", 3},
{"Encounter Power", "Ghost", 3}
}
};

Recipe DragonAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Avocado", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Dragon", 3},
{"Title Power", "Dragon", 3},
{"Encounter Power", "Dragon", 3}
}
};

Recipe DarkAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Smoked Fillet", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Dark", 3},
{"Title Power", "Dark", 3},
{"Encounter Power", "Dark", 3}
}
};

Recipe SteelAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Hamburger", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Steel", 3},
{"Title Power", "Steel", 3},
{"Encounter Power", "Steel", 3}
}
};

Recipe FairyAlt = {
{
{"Tomato", 1},
{"Onion", 1},
{"Green Pepper", 1},
{"Hamburger", 1},
{"Tomato", 2},
{"Herba Mystica (any)", 2}
},
{
{"Sparkling Power", "Fairy", 3},
{"Title Power", "Fairy", 3},
{"Encounter Power", "Fairy", 3}
}
};
19 changes: 1 addition & 18 deletions source/models/monotypeSalty.hpp
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
#pragma once

#include <vector>
#include <string>

struct RecipeItems {
std::string name;
int quantity;
};

struct RecipeBonus {
std::string name;
std::string type;
int level;
};

struct Recipe {
std::vector<RecipeItems> items;
std::vector<RecipeBonus> bonuses;
};
#include "./recipe.hpp"

Recipe Normal = {
{
Expand Down
20 changes: 20 additions & 0 deletions source/models/recipe.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#pragma once

#include <vector>
#include <string>

struct RecipeItems {
std::string name;
int quantity;
};

struct RecipeBonus {
std::string name;
std::string type;
int level;
};

struct Recipe {
std::vector<RecipeItems> items;
std::vector<RecipeBonus> bonuses;
};
6 changes: 3 additions & 3 deletions source/views/main-view.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "./sv/monotype-view.hpp"
#include "./sv/monotypeSalty-view.hpp"
#include "./sv/monotypeAlt-view.hpp"
#include <tesla.hpp>

class pkDwich : public tsl::Gui {
Expand All @@ -15,8 +16,7 @@ class pkDwich : public tsl::Gui {
list->addItem(new tsl::elm::CategoryHeader("Recipes"));

list->addItem(new MonotypeViewButton());

list->addItem(new tsl::elm::ListItem(""));
list->addItem(new MonotypeAltViewButton());

frame->setContent(list);

Expand Down
Loading

0 comments on commit f4bd8a1

Please sign in to comment.