Stage 6.3: RatDigg ASIC miners, miner dealers on the black market, miner era event

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-04 00:58:14 +08:00
1 parent b249747855
commit 7d13ae2fe8
18 files changed
+395 -19

No files matched your search

+30
View File
@@ -607,6 +607,33 @@ def guide():
return c
def asic(model):
"""RatDigg 矿机(48×32,3×2 格):宽扁的金属机箱,正面两个大风扇,顶上一条铭牌带三个指示灯和型号;
指示灯与风扇轴心的颜色区分档次(M1 绿、M2 蓝、M3 金)。光从左上来。"""
c = Canvas(48, 32)
accent = {'M1': 'G', 'M2': 'u', 'M3': 'y'}[model]
c.rect(3, 1, 44, 5, 'l') # 顶面
c.rect(3, 1, 44, 1, 'h')
c.rect(43, 2, 44, 5, 'b')
c.rect(2, 6, 45, 29, 'm') # 正面
c.rect(2, 6, 2, 29, 'b'); c.rect(45, 6, 45, 29, 'd'); c.rect(2, 29, 45, 29, 'd')
c.rect(4, 7, 43, 10, 'n') # 铭牌带
for x in (6, 9, 12):
c.put(x, 8, accent); c.put(x, 9, accent if x == 6 else 'k')
text(c, 32, 7, model.replace('M', 'M'), 'w')
for fx in (14, 34): # 风扇:方框风道 + 圆扇
c.rect(fx - 9, 12, fx + 9, 28, 'n')
c.rect(fx - 9, 12, fx + 9, 12, 'g'); c.rect(fx - 9, 12, fx - 9, 28, 'g')
fan(c, fx, 20, accent, R=8)
c.rect(22, 12, 26, 28, 'd') # 两扇之间的散热栅
for y in range(13, 28, 2):
c.rect(23, y, 25, y, 'k')
c.rect(4, 30, 9, 31, 'k'); c.rect(38, 30, 43, 31, 'k') # 脚垫
c.rect(10, 30, 37, 30, 'd')
outline(c)
return c
def hw_wallet():
"""PLEDGER 硬件钱包(16×16,一格):竖放的石墨卡片,大块浅色墨水屏,右侧一个侧键。"""
c = Canvas(16, 16)
@@ -631,6 +658,9 @@ SPRITES = {
'rig': rig,
'terminal': terminal,
'hw_wallet': hw_wallet,
'asic_m1': lambda: asic('M1'),
'asic_m2': lambda: asic('M2'),
'asic_m3': lambda: asic('M3'),
}
for _tier in range(4):
SPRITES['gpu_probidia_f_t%d' % _tier] = (lambda t=_tier: gpu_front('G', 'g2', tier=t))