Skip to content

Commit

Permalink
prestige fix ?
Browse files Browse the repository at this point in the history
paris-ci committed Oct 25, 2024

Verified

This commit was signed with the committer’s verified signature.
paris-ci Arthur
1 parent 37c6069 commit fa858bd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils/ducks.py
Original file line number Diff line number Diff line change
@@ -178,7 +178,7 @@ async def increment_kills(self):
db_killer.ducks_killed_today_last_reset = now
db_killer.ducks_killed_today = defaultdict(int)

if self.decoy:
if self.decoy and self.prestige_experience_chance is None:
db_killer.ducks_killed_today["decoy"] += 1

db_killer.ducks_killed_today[self.category] += 1
@@ -500,7 +500,6 @@ async def get_prestige_experience(self, db_killer) -> int:
if db_killer.prestige < 3:
return 0
else:

equalizer_offset = 0

if self.bot.current_event == Events.EQUALIZER:
@@ -521,8 +520,6 @@ async def get_prestige_experience(self, db_killer) -> int:

ducks_killed_today = sum(ducks_killed_today_dict.values()) - decoys_killed_today



if ducks_killed_today <= 5:
if random.randint(0, 99) < 100 - equalizer_offset:
return db_killer.prestige # 100% chance

0 comments on commit fa858bd

Please sign in to comment.