Files
DiscordGameBot/game/achievements.py
2026-11-01 17:42:51 +08:00

24 lines
1.2 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# key: (名稱, 達成條件, 獎勵說明)
# 獎勵的實際發放寫在各遊戲邏輯裡(例如 lottery.GACHA_SETS)
ACHIEVEMENTS = {
"entangled": ("三顆糾纏之緣", "簽到時獲得三顆糾纏之緣", ""),
"gambler": ("賭狗", "幸運礦工累計 1000 次", ""),
"yaju": ("壓力馬斯內", "幸運礦工挖到 114514 exp", ""),
"win_all": ("贏下所有", "幸運礦工挖到 300000 exp", ""),
"pc_gamer": ("桌機玩家", "集齊扭蛋「主機」系列", "+480 exp"),
"shark_family": ("彩色鯊魚家族", "集齊扭蛋「鯊魚家族」系列", "+600 exp"),
"oshi": ("單推sthkm3", "集齊扭蛋「作者」系列", "+150 代幣"),
"lazy": ("懶人", "集齊扭蛋「配置」系列", "+600 exp"),
"crossdress": ("這就是...開發者的末路嗎...", "集齊扭蛋「女裝」系列", "+600 exp"),
"shut_up": ("閉嘴", "扭蛋稀有掉落", ""),
"bottom": ("到底", "扭蛋稀有掉落", ""),
}
def announce(keys) -> str:
lines = []
for k in keys:
name, _, reward = ACHIEVEMENTS[k]
lines.append(f"# 🏆 達成成就《{name}》 {reward}".rstrip())
return "\n".join(lines)