Fix gen4 pcd sentinel set

Closes #4407
Bug: 0th PCD slot not being provided would set PGT slot0 to "inactive", rather than setting pcd slot0.
The modeled GUI is still very clunky (editing DP just ignores the flag, and assumes if data exists it is active).

fix a typo while we're on the topic of Gen4 :) -- ty 0blivion0athkeeper on discord
This commit is contained in:
Kurt 2025-03-08 11:13:35 -06:00
parent fed4a6e900
commit 2fbe2feb52
5 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@
0134 g Traded in Eterna City
0244 g Traded in Snowpoint City
0245 g Traded on Route 226
0325 r Dialga/Pakia rifts spawnable
0325 r Dialga/Palkia rifts spawnable
1051 s Found Adamant Orb on Mt. Coronet
1053 s Found Lustrous Orb on Mt. Coronet
2507 s Entered Pal Park Catching Show

View File

@ -58,7 +58,7 @@
0134 g Intercambio en Ciudad Vetusta
0244 g Intercambio en Ciudad Puntaneva
0245 g Intercambio en Ruta 226
0325 r Grieta de Dialga/Pakia visible
0325 r Grieta de Dialga/Palkia visible
1051 s Diamansfera encontrada en Monte Corona
1053 s Lustresfera encontrada en Monte Corona
2507 s Participado en las capturas del Parque Compi

View File

@ -55,7 +55,7 @@
0134 e Traded in Eterna City
0244 e Traded in Snowpoint City
0245 g Traded on Route 226
0325 g Dialga/Pakia rifts spawnable
0325 g Dialga/Palkia rifts spawnable
1051 g Found Adamant Orb on Mt. Coronet
1053 g Found Lustrous Orb on Mt. Coronet
2507 r Entered Pal Park Catching Show

View File

@ -58,7 +58,7 @@
0134 g Traded in Eterna City
0244 g Traded in Snowpoint City
0245 g Traded on Route 226
0325 r Dialga/Pakia rifts spawnable
0325 r Dialga/Palkia rifts spawnable
1051 s Found Adamant Orb on Mt. Coronet
1053 s Found Lustrous Orb on Mt. Coronet
2507 s Entered Pal Park Catching Show

View File

@ -677,7 +677,7 @@ public override void SetMysteryGift(int index, PGT pgt)
public override void SetMysteryGift(int index, PCD pcd)
{
base.SetMysteryGift(index, pcd);
SetMysteryGiftReceivedSentinel(index, pcd.Empty ? 0 : MysteryGiftDPSlotActive);
SetMysteryGiftReceivedSentinel(MaxCountPGT + index, pcd.Empty ? 0 : MysteryGiftDPSlotActive);
}
}