• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Aron7
V2EX  ›  程序员

[开源]LEGENDARY 批发!写了一个 claudecode buddy 自选工具

  •  1
     
  •   Aron7 · Apr 1 · 761 views
    This topic created in 70 days ago, the information mentioned may be changed or developed.

    最近 Claude Code 加了个 Companion 系统,每个账号会随机分配一个小宠物( buddy ),有不同的稀有度、物种、眼睛、帽子,还有 1% 概率出闪光( shiny )

    稀有度分布

    • Common — 60%
    • 🟩 Uncommon — 25%
    • 🟦 Rare — 10%
    • 🟪 Epic — 4%
    • 🟨 Legendary — 1%

    大部分人开出来都是 Common,而且 Common 连帽子都没有。


    原理

    翻了一下二进制,buddy 的生成逻辑其实很简单:

    hash(account_uuid + salt) → seed → mulberry32 PRNG → rarity / species / eyes / hat / shiny
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 06:28 · PVG 14:28 · LAX 23:28 · JFK 02:28
    ♥ Do have faith in what you're doing.