Skip to content

Commit

Permalink
th17: add non-static tokens to token spawning
Browse files Browse the repository at this point in the history
  • Loading branch information
32th-System committed Jul 4, 2023
1 parent e4a17e9 commit 4588b55
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 3 deletions.
23 changes: 23 additions & 0 deletions thprac/src/thprac/thprac_games_def.json
Original file line number Diff line number Diff line change
Expand Up @@ -7843,6 +7843,9 @@
"TH17_GOAST_WOLF": [ "", "Wolf", "オオカミ" ],
"TH17_GOAST_OTTER": [ "", "Otter", "カワウソ" ],
"TH17_GOAST_EAGLE": [ "", "Eagle", "オオワシ" ],
"TH17_GOAST_WOLF_STATIC": [ "狼 (static)", "Wolf (static)", "オオカミ (static)" ],
"TH17_GOAST_OTTER_STATIC": [ "獭 (static)", "Otter (static)", "カワウソ (static)" ],
"TH17_GOAST_EAGLE_STATIC": [ "鹰 (static)", "Eagle (static)", "オオワシ (static)" ],
"TH17_GOAST_JELLYFISH": [ "水母", "Jellyfish", "クラゲ" ],
"TH17_GOAST_COW": [ "", "Cow", "" ],
"TH17_GOAST_CHICK": [ "小鸡", "Chick", "ひよこ" ],
Expand Down Expand Up @@ -8308,6 +8311,26 @@
"TH17_GOAST_HORSE",
"TH17_GOAST_3CHICK"
],
"TH17_GOAST_SELECT_TOKENS": [
"TH17_GOAST_NONE",
"TH17_GOAST_WOLF_STATIC",
"TH17_GOAST_OTTER_STATIC",
"TH17_GOAST_EAGLE_STATIC",
"TH_BOMB_FRAGMENT",
"TH_LIFE_FRAGMENT",
"TH_POWER",
"TH_POINT",
"TH17_GOAST_JELLYFISH",
"TH17_GOAST_COW",
"TH17_GOAST_CHICK",
"TH17_GOAST_TURTLE",
"TH17_GOAST_HANIWA",
"TH17_GOAST_HORSE",
"TH17_GOAST_3CHICK",
"TH17_GOAST_WOLF",
"TH17_GOAST_OTTER",
"TH17_GOAST_EAGLE"
],
"TH17_SPELL_5PHASE": [
"TH_P1",
"TH_P2",
Expand Down
33 changes: 32 additions & 1 deletion thprac/src/thprac/thprac_locale_def.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace THPrac {

const char* th_glossary_str[3][880]
const char* th_glossary_str[3][883]
{
{
"",
Expand Down Expand Up @@ -244,15 +244,18 @@ const char* th_glossary_str[3][880]
"小鸡",
"牛",
"鹰",
"鹰 (static)",
"埴轮",
"埴轮(马)",
"水母",
"无",
"獭",
"獭 (static)",
"尝试正常播放已经爆炸的replay",
"如果你的replay受到了上述bug的影响则可以尝试开启此选项。\n请不要在播放正常的replay时开启这个选项。",
"龟",
"狼",
"狼 (static)",
"无限咆哮",
"无动物灵",
"TH17 东方鬼形兽 ~ Wily Beast and Weakest Creature.",
Expand Down Expand Up @@ -1126,15 +1129,18 @@ const char* th_glossary_str[3][880]
"Chick",
"Cow",
"Eagle",
"Eagle (static)",
"Haniwa",
"Haniwa (Horse)",
"Jellyfish",
"None",
"Otter",
"Otter (static)",
"Try to re-sync bugged replay",
"Try to enable this option if you have any bugged replay.\nDo not enable this option when playbacking a normal replay.",
"Turtle",
"Wolf",
"Wolf (static)",
"Inf. Roaring",
"No Goast",
"TH17 Wily Beast and Weakest Creature",
Expand Down Expand Up @@ -2008,15 +2014,18 @@ const char* th_glossary_str[3][880]
"ひよこ",
"牛",
"オオワシ",
"オオワシ (static)",
"埴輪",
"埴輪(馬)",
"クラゲ",
"なし",
"カワウソ",
"カワウソ (static)",
"バグのあるリプレイを正常に再生してみます",
"バグのあるリプレイがある場合は、このオプションを有効にしてみてください。\n普通のリプレイを再生するときは、このオプションを有効にしないでください。",
"亀",
"オオカミ",
"オオカミ (static)",
"無限のロアリング",
"動物霊を落とさない",
"TH17 東方鬼形獣 ~ Wily Beast and Weakest Creature.",
Expand Down Expand Up @@ -18784,6 +18793,28 @@ const th_glossary_t TH17_GOAST_SELECT[16]
TH17_GOAST_3CHICK,
};

const th_glossary_t TH17_GOAST_SELECT_TOKENS[19]
{
TH17_GOAST_NONE,
TH17_GOAST_WOLF_STATIC,
TH17_GOAST_OTTER_STATIC,
TH17_GOAST_EAGLE_STATIC,
TH_BOMB_FRAGMENT,
TH_LIFE_FRAGMENT,
TH_POWER,
TH_POINT,
TH17_GOAST_JELLYFISH,
TH17_GOAST_COW,
TH17_GOAST_CHICK,
TH17_GOAST_TURTLE,
TH17_GOAST_HANIWA,
TH17_GOAST_HORSE,
TH17_GOAST_3CHICK,
TH17_GOAST_WOLF,
TH17_GOAST_OTTER,
TH17_GOAST_EAGLE,
};

const th_glossary_t TH17_SPELL_5PHASE[6]
{
TH_P1,
Expand Down
7 changes: 6 additions & 1 deletion thprac/src/thprac/thprac_locale_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,18 @@ enum th_glossary_t
TH17_GOAST_CHICK,
TH17_GOAST_COW,
TH17_GOAST_EAGLE,
TH17_GOAST_EAGLE_STATIC,
TH17_GOAST_HANIWA,
TH17_GOAST_HORSE,
TH17_GOAST_JELLYFISH,
TH17_GOAST_NONE,
TH17_GOAST_OTTER,
TH17_GOAST_OTTER_STATIC,
TH17_GOAST_REPFIX,
TH17_GOAST_REPFIX_DESC,
TH17_GOAST_TURTLE,
TH17_GOAST_WOLF,
TH17_GOAST_WOLF_STATIC,
TH17_INF_ROARING,
TH17_NO_GOAST,
TH17_TITLE,
Expand Down Expand Up @@ -892,7 +895,7 @@ enum th_glossary_t
TH_WARP,
};

extern const char* th_glossary_str[3][880];
extern const char* th_glossary_str[3][883];

extern const th_glossary_t TH_TYPE_SELECT[13];

Expand Down Expand Up @@ -2279,6 +2282,8 @@ extern const th_sections_t th_sections_cbt[7][2][14];

extern const th_glossary_t TH17_GOAST_SELECT[16];

extern const th_glossary_t TH17_GOAST_SELECT_TOKENS[19];

extern const th_glossary_t TH17_SPELL_5PHASE[6];

}
Expand Down
2 changes: 1 addition & 1 deletion thprac/src/thprac/thprac_th17.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ namespace TH17 {
return;
}

Gui::ComboSelect(mSelectedGoast, (th_glossary_t*)TH17_GOAST_SELECT, elementsof(TH17_GOAST_SELECT), S(TH17_GOAST));
Gui::ComboSelect(mSelectedGoast, (th_glossary_t*)TH17_GOAST_SELECT_TOKENS, elementsof(TH17_GOAST_SELECT_TOKENS) - 1, S(TH17_GOAST));

if (!mSelectedGoast) {
ImGui::BeginDisabled();
Expand Down

0 comments on commit 4588b55

Please sign in to comment.