Skip to content

Commit

Permalink
重新啟用「遊戲中額外獎勵經驗值」
Browse files Browse the repository at this point in the history
  • Loading branch information
Alllen95Wei committed Aug 3, 2023
1 parent 7ba8309 commit fa932e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ async def give_voice_exp() -> None: # 給予語音經驗
if exp_enabled:
if len(active_human_members) > 1: # 若語音頻道人數大於1
value = 1 + len(active_human_members) / 10
# for a in member.activities:
# if isinstance(a, discord.Activity):
# value += 0.1
for a in member.activities:
if isinstance(a, discord.Activity):
value += 0.1
json_assistant.add_exp(member.id, "voice", value)
real_logger.info(f"獲得經驗值:{member.name} 獲得語音經驗 {value}")
if json_assistant.level_calc(member.id, "voice"):
Expand Down

0 comments on commit fa932e3

Please sign in to comment.