diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-09-08 18:31:03 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-09-08 18:31:03 -0700 |
| commit | c434ed7e5b557ff82882d7ac74068169eb83de7c (patch) | |
| tree | 94f8f4d1dabeceddd0558c3a5990eb401bd1b970 /Malmstone/Services/PVPService.cs | |
| parent | 031440201d24531d6a1d5a0e93579d76e1e4ba18 (diff) | |
fix: logic with calculating start of losing streak bonusfl-bonus
Diffstat (limited to 'Malmstone/Services/PVPService.cs')
| -rw-r--r-- | Malmstone/Services/PVPService.cs | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/Malmstone/Services/PVPService.cs b/Malmstone/Services/PVPService.cs index ef16df9..12b4c2a 100644 --- a/Malmstone/Services/PVPService.cs +++ b/Malmstone/Services/PVPService.cs @@ -5,6 +5,7 @@ namespace Malmstone.Services public class PvPService { public int CurrentFrontlineLosingBonus = -1; + public int ConsecutiveThirdPlaceFrontline = 0; public enum FrontlinePlacement { @@ -65,10 +66,11 @@ namespace Malmstone.Services // 1500 (no bonus), 1650, 1800, 1950, 2100, 2250 1st if (FrontlineResult == FrontlinePlacement.ThirdPlace) { + ConsecutiveThirdPlaceFrontline++; switch (EarnedSeriesEXP) - { + { // Next 3rd place will get +10% value case 1000: - CurrentFrontlineLosingBonus = 0; + CurrentFrontlineLosingBonus = 0; // Primed for buff return 0; case 1100: CurrentFrontlineLosingBonus = 10; @@ -117,29 +119,10 @@ namespace Malmstone.Services } else if (FrontlineResult == FrontlinePlacement.FirstPlace) { - switch (EarnedSeriesEXP) - { - case 1500: - CurrentFrontlineLosingBonus = 0; - return 0; - case 1650: - CurrentFrontlineLosingBonus = 10; - return 10; - case 1800: - CurrentFrontlineLosingBonus = 20; - return 20; - case 1950: - CurrentFrontlineLosingBonus = 30; - return 30; - case 1750: - CurrentFrontlineLosingBonus = 40; - return 40; - case 1875: - CurrentFrontlineLosingBonus = 50; - return 50; - default: - return -1; - } + // Buff is reset regardless + ConsecutiveThirdPlaceFrontline = 0; + CurrentFrontlineLosingBonus = 0; + return 0; } return -1; } |
