Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promo fixes #23

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions Patches/PromoPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,34 @@
switch (cmd)
{
case PromoData.AdvFeatures.CommandType.SetFace:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])].ICONKAPNPGL(0);
promo.GetCharacterForCmd(feature.Args[0]).ICONKAPNPGL(0);
break;
case PromoData.AdvFeatures.CommandType.SetHeel:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])].ICONKAPNPGL(-1);
promo.GetCharacterForCmd(feature.Args[0]).ICONKAPNPGL(-1);
break;
case PromoData.AdvFeatures.CommandType.SetRealEnemy:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])]
.EGHFNFMHOIL(GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[1])].id, -1, 0);
promo.GetCharacterForCmd(feature.Args[0])
.EGHFNFMHOIL(promo.GetCharacterForCmd(feature.Args[1]).id, -1, 0);
break;
case PromoData.AdvFeatures.CommandType.SetStoryEnemy:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])]
.EGHFNFMHOIL(GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[1])].id, -1);
promo.GetCharacterForCmd(feature.Args[0])
.EGHFNFMHOIL(promo.GetCharacterForCmd(feature.Args[1]).id, -1);
break;
case PromoData.AdvFeatures.CommandType.SetRealFriend:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])]
.EGHFNFMHOIL(GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[1])].id, 1, 0);
promo.GetCharacterForCmd(feature.Args[0])
.EGHFNFMHOIL(promo.GetCharacterForCmd(feature.Args[1]).id, 1, 0);
break;
case PromoData.AdvFeatures.CommandType.SetStoryFriend:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])]
.EGHFNFMHOIL(GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[1])].id, 1);
promo.GetCharacterForCmd(feature.Args[0])
.EGHFNFMHOIL(promo.GetCharacterForCmd(feature.Args[1]).id, 1);
break;
case PromoData.AdvFeatures.CommandType.SetRealNeutral:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])]
.EGHFNFMHOIL(GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[1])].id, 0, 0);
promo.GetCharacterForCmd(feature.Args[0])
.EGHFNFMHOIL(promo.GetCharacterForCmd(feature.Args[1]).id, 0, 0);
break;
case PromoData.AdvFeatures.CommandType.SetStoryNeutral:
GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[0])]
.EGHFNFMHOIL(GameDialog.HGJNAEDAMDO[int.Parse(feature.Args[1])].id, 0);
promo.GetCharacterForCmd(feature.Args[0])
.EGHFNFMHOIL(promo.GetCharacterForCmd(feature.Args[1]).id, 0);
break;
case PromoData.AdvFeatures.CommandType.PlayAudio:
if (feature.Args[0] == "-1")
Expand Down Expand Up @@ -117,7 +117,6 @@
GameDialog.GLHDGKIGFLG(GameDialog.FMGHIAMFFCJ[from], GameDialog.FMGHIAMFFCJ[to], demeanor, taunt);
}

GameDialog.GLHDGKIGFLG(GameDialog.FMGHIAMFFCJ[from], GameDialog.FMGHIAMFFCJ[to], demeanor, taunt);
GameDialog.PHAAJGLNMAP[1] = line1;
GameDialog.PHAAJGLNMAP[2] = line2;
}
Expand All @@ -132,7 +131,7 @@
{
string varName = match.Groups[1].Value;
int varIndex = int.Parse(match.Groups[2].Value);
string test = "";

Check warning on line 134 in Patches/PromoPatch.cs

View workflow job for this annotation

GitHub Actions / build

The variable 'test' is assigned but its value is never used
string varValue = varName switch
{
"name" => GameDialog.HGJNAEDAMDO[varIndex].name,
Expand Down
Loading