diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-04-01 22:19:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 22:19:48 -0400 |
commit | 51970f97b0e48b0bffa8ab9229ac30a94f57512a (patch) | |
tree | 70ec5b040d0732a97049e3b7341e6cc218130ec7 /src/field_specials.c | |
parent | 21fd6827b090f6c64924fe88bec7cf80147df3d2 (diff) | |
parent | 691c680908312c883362d0bbc2aad30e986b665a (diff) |
Merge pull request #1393 from GriffinRichards/doc-dewfordtrend
Document Dewford Trend and match_call.c
Diffstat (limited to 'src/field_specials.c')
-rw-r--r-- | src/field_specials.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/field_specials.c b/src/field_specials.c index 86be21eda..30503ed8d 100644 --- a/src/field_specials.c +++ b/src/field_specials.c @@ -1336,7 +1336,7 @@ u16 GetSlotMachineId(void) static const u8 sSlotMachineIds[] = {0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5}; static const u8 sSlotMachineServiceDayIds[] = {3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5}; - u32 rnd = gSaveBlock1Ptr->easyChatPairs[0].unk0_0 + gSaveBlock1Ptr->easyChatPairs[0].unk2 + sSlotMachineRandomSeeds[gSpecialVar_0x8004]; + u32 rnd = gSaveBlock1Ptr->dewfordTrends[0].trendiness + gSaveBlock1Ptr->dewfordTrends[0].rand + sSlotMachineRandomSeeds[gSpecialVar_0x8004]; if (GetPriceReduction(POKENEWS_GAME_CORNER)) { return sSlotMachineServiceDayIds[rnd % SLOT_MACHINE_COUNT]; |