Skip to content

Commit

Permalink
Add game start / hall of fame for GEN V, VI, VII
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 25, 2024
1 parent b428104 commit ff6f86d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ private static void SetTrainerCardPokemon(SAV3FRLG sav, int index, ComboItem spe
case SAV4 sav:
DateUtil.GetDateTime2000(sav.SecondsToStart, out date, out time);
break;
case SAV5 sav:
DateUtil.GetDateTime2000(sav.SecondsToStart, out date, out time);
break;
case SAV6 sav:
DateUtil.GetDateTime2000(sav.SecondsToStart, out date, out time);
break;
case SAV7 sav:
DateUtil.GetDateTime2000(sav.SecondsToStart, out date, out time);
break;
default:
return (null, null);
};
Expand All @@ -120,6 +129,17 @@ private void UpdateGameStarted()
case SAV4 sav:
sav.SecondsToStart = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
case SAV5 sav:
sav.SecondsToStart = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
case SAV6 sav:
sav.SecondsToStart = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
case SAV7 sav:
sav.SecondsToStart = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
default:
return;
};
}

Expand All @@ -138,6 +158,15 @@ private void UpdateGameStarted()
case SAV4 sav:
DateUtil.GetDateTime2000(sav.SecondsToFame, out date, out time);
break;
case SAV5 sav:
DateUtil.GetDateTime2000(sav.SecondsToFame, out date, out time);
break;
case SAV6 sav:
DateUtil.GetDateTime2000(sav.SecondsToFame, out date, out time);
break;
case SAV7 sav:
DateUtil.GetDateTime2000(sav.SecondsToFame, out date, out time);
break;
default:
return (null, null);
};
Expand All @@ -160,6 +189,17 @@ private void UpdateHallOfFame()
case SAV4 sav:
sav.SecondsToFame = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
case SAV5 sav:
sav.SecondsToFame = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
case SAV6 sav:
sav.SecondsToFame = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
case SAV7 sav:
sav.SecondsToFame = (uint)DateUtil.GetSecondsFrom2000(date, new DateTime(2000, 1, 1, time.Hours, time.Minutes, time.Seconds));
break;
default:
return;
};
}
}

0 comments on commit ff6f86d

Please sign in to comment.