Skip to content

Commit 6ae5bf2

Browse files
authored
Refactor Joyous Journeys XP rate calculation
1 parent a33126a commit 6ae5bf2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/mod-double-xp-weekend.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,17 @@ class DoubleXpWeekend
235235
return 1.0f;
236236
}
237237

238-
if (IsJoyousJourneysActive())
239-
{
240-
rate += ConfigJoyousJourneysXPRate();
241-
}
242-
243238
// If individualxp setting is enabled... and a rate was set, overwrite it.
244239
if (ConfigIndividualXPEnabled())
245240
{
246241
rate = PlayerSettingGetRate(player);
247242
}
248243

244+
if (IsJoyousJourneysActive())
245+
{
246+
rate += ConfigJoyousJourneysXPRate();
247+
}
248+
249249
// Prevent returning 0% rate.
250250
return rate > 0.0f ? rate : 1.0f;
251251
}

0 commit comments

Comments
 (0)