Skip to content

Commit ad3820d

Browse files
committed
filled out power table
1 parent 1398d9c commit ad3820d

File tree

4 files changed

+49
-20
lines changed

4 files changed

+49
-20
lines changed

SerialPrograms/Source/PokemonLZA/Options/PokemonLZA_DonutBerriesOption.cpp

Lines changed: 46 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,65 @@ namespace PokemonLZA{
1414

1515
const EnumDropdownDatabase<Flavor_Powers>& flavor_power_enum_database(){
1616
static EnumDropdownDatabase<Flavor_Powers> database{
17-
{Flavor_Powers::alpha, "alpha", "Alpha"},
18-
{Flavor_Powers::humungo, "humungo", "Humungo"},
19-
{Flavor_Powers::teensy, "teensy", "Teensy"},
20-
{Flavor_Powers::sparkling, "sparkling", "Sparkling"},
21-
{Flavor_Powers::item, "item", "Item"},
17+
{Flavor_Powers::alpha, "alpha", "Alpha"},
18+
{Flavor_Powers::humungo, "humungo", "Humungo"},
19+
{Flavor_Powers::teensy, "teensy", "Teensy"},
20+
{Flavor_Powers::sparkling, "sparkling", "Sparkling"},
21+
{Flavor_Powers::atk, "atk", "Attack"},
22+
{Flavor_Powers::spatk, "spatk", "Sp. Atk"},
23+
{Flavor_Powers::move, "move", "Move"},
24+
{Flavor_Powers::speed, "speed", "Speed"},
25+
{Flavor_Powers::bighaul, "bighaul", "Big Haul"},
26+
{Flavor_Powers::item, "item", "Item"},
27+
{Flavor_Powers::mega, "mega", "Mega"},
28+
{Flavor_Powers::def, "def", "Defense"},
29+
{Flavor_Powers::spdef, "spdef", "Sp. Def"},
30+
{Flavor_Powers::resistance, "resistance", "Resistance"},
31+
{Flavor_Powers::encounter, "encounter", "Encounter"},
32+
{Flavor_Powers::catching, "catching", "Catching"},
2233
};
2334
return database;
2435
}
2536
const EnumDropdownDatabase<Power_Pokemon_Types>& pokemon_power_enum_database(){
2637
static EnumDropdownDatabase<Power_Pokemon_Types> database{
27-
{Power_Pokemon_Types::all, "all", "All Types"},
28-
{Power_Pokemon_Types::fire, "fire", "Fire"},
38+
{Power_Pokemon_Types::all, "all", "All Types"},
39+
{Power_Pokemon_Types::normal, "normal", "Normal"},
40+
{Power_Pokemon_Types::fire, "fire", "Fire"},
41+
{Power_Pokemon_Types::water, "water", "Water"},
42+
{Power_Pokemon_Types::electric, "electric", "Electric"},
43+
{Power_Pokemon_Types::grass, "grass", "Grass"},
44+
{Power_Pokemon_Types::ice, "ice", "Ice"},
45+
{Power_Pokemon_Types::fighting, "fighting", "Fighting"},
46+
{Power_Pokemon_Types::poison, "poison", "Poison"},
47+
{Power_Pokemon_Types::ground, "ground", "Ground"},
48+
{Power_Pokemon_Types::flying, "flying", "Flying"},
49+
{Power_Pokemon_Types::psychic, "psychic", "Psychic"},
50+
{Power_Pokemon_Types::bug, "bug", "Bug"},
51+
{Power_Pokemon_Types::rock, "rock", "Rock"},
52+
{Power_Pokemon_Types::ghost, "ghost", "Ghost"},
53+
{Power_Pokemon_Types::dragon, "dragon", "Dragon"},
54+
{Power_Pokemon_Types::dark, "dark", "Dark"},
55+
{Power_Pokemon_Types::steel, "steel", "Steel"},
56+
{Power_Pokemon_Types::fairy, "fairy", "Fairy"},
2957
};
3058
return database;
3159
}
3260
const EnumDropdownDatabase<Power_Item_Types>& item_power_enum_database(){
3361
static EnumDropdownDatabase<Power_Item_Types> database{
34-
{Power_Item_Types::berries, "berries", "Berry"},
35-
{Power_Item_Types::candies, "candies", "Candy"},
62+
{Power_Item_Types::berries, "berries", "Berries"},
63+
{Power_Item_Types::candies, "candies", "Candies"},
64+
{Power_Item_Types::treasure, "treasure", "Treasure"},
65+
{Power_Item_Types::pokeballs, "pokeballs", "Poke Balls"},
66+
{Power_Item_Types::special, "special", "Special"},
67+
{Power_Item_Types::coins, "coins", "Coins"},
3668
};
3769
return database;
3870
}
3971
const EnumDropdownDatabase<Power_Level>& power_level_enum_database(){
4072
static EnumDropdownDatabase<Power_Level> database{
41-
{Power_Level::one, "one", "Lv.1"},
42-
{Power_Level::two, "two", "Lv.2"},
43-
{Power_Level::three, "three", "Lv.3"},
73+
{Power_Level::one, "one", "Lv. 1"},
74+
{Power_Level::two, "two", "Lv. 2"},
75+
{Power_Level::three, "three", "Lv. 3"},
4476
};
4577
return database;
4678
}
@@ -164,7 +196,8 @@ FlavorPowerTable::FlavorPowerTable()
164196
"<b>Flavor Powers Table:</b><br>"
165197
"Add all desired flavor powers to this table. "
166198
"The program will check the powers of any baked donut and compare them against the selected items in the table. "
167-
"Be sure to set Number of Powers to Match above.",
199+
"Be sure to set the correct Number of Powers to Match above."
200+
"<br>Note: \"All Types\" means the All Types Power in-game.",
168201
LockMode::LOCK_WHILE_RUNNING,
169202
make_defaults()
170203
)

SerialPrograms/Source/PokemonLZA/Options/PokemonLZA_DonutBerriesOption.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ enum class Flavor_Powers {
3636
};
3737

3838
enum class Power_Pokemon_Types {
39-
any, //Accept any of the below options
4039
all, //Accept only the All type (ex. Sparkling Power: All Types (Lv. 3)) Applies to catching and sparkling, but not move or resist
4140
normal,
4241
fire,

SerialPrograms/Source/PokemonLZA/Programs/TestPrograms/PokemonLZA_DonutOptionsTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DonutOptionsTest::DonutOptionsTest()
4343
, BERRIES("<b>Berries:</b><br>The berries used to make the donut. Minimum 3 berries, maximum 8 berries.")
4444
, NUM_POWER_REQUIRED(
4545
"<b>Number of Powers to Match:</b><br>How many of a dount's powers must be in the the table below. Minimum 1, maximum 3. "
46-
"<br>Ex. For a target dount of Big Haul Lv.3, Berry Lv.3, and any or none for the 3rd power, set the number as 2."
46+
"<br>Ex. For a target donut of Big Haul Lv.3, Berry Lv.3, and any or none for the 3rd power, set the number as 2."
4747
"<br>Then, in the flavor powers table, make sure to add Big Haul Lv.3 and Berry Lv. 3.",
4848
LockMode::LOCK_WHILE_RUNNING,
4949
1, 1, 3
@@ -91,8 +91,8 @@ void DonutOptionsTest::program(SingleSwitchProgramEnvironment& env, ProControlle
9191
env.log("Number of berries validated.", COLOR_BLACK);
9292

9393

94-
//Validate flavor power table
95-
//(not all powers can have all types)
94+
//Todo: Convert to slug and also validate flavor power table (Move and resist powers cannot have All Types)
95+
std::vector<std::unique_ptr<FlavorPowerTableRow>> wanted_powers_table = FLAVOR_POWERS.copy_snapshot();
9696

9797

9898
GO_HOME_WHEN_DONE.run_end_of_program(context);

SerialPrograms/Source/PokemonLZA/Programs/TestPrograms/PokemonLZA_DonutOptionsTest.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ class DonutOptionsTest : public SingleSwitchProgramInstance{
3333
private:
3434
OCR::LanguageOCROption LANGUAGE;
3535
DonutBerriesTable BERRIES;
36-
3736
SimpleIntegerOption<uint8_t> NUM_POWER_REQUIRED;
38-
3937
FlavorPowerTable FLAVOR_POWERS;
40-
4138
SimpleIntegerOption<uint8_t> NUM_DONUTS;
4239

4340
GoHomeWhenDoneOption GO_HOME_WHEN_DONE;

0 commit comments

Comments
 (0)