Mod: mining rig, graphics cards, trading terminal, nightly settlement

First playable slice, tested in game on the test save:
- Network upgrade "Mining Access" (300) delivers a trading terminal, a
  mining rig and an RZX 50.
- The rig is a machine with a battery slot and four card slots; each night
  it draws its total power from the battery and its cards mine PSCoin.
  Cards show hashrate, power draw and condition, wear every night and can
  burn out. All state lives on item tags or in the mod save data.
- Trading terminal with wallet, trade (four pairs, deposit credits as CRC,
  withdraw CRC through the compliance desk) and report pages.
- Nightly log lines; exchange opening and halving news on the paper.
- English and Chinese text; sprites generated by art/sprites.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Opus 5.5 committed 2026-11-03 09:11:46 +08:00
1 parent efc58888f3
commit 750b26e4b3
21 files changed
+1040

No files matched your search

@@ -0,0 +1,55 @@
# Probably Decentralized localization table: English (en)
# Source language and fallback. Format: key,text (text may be quoted; \n is a line break).
upgrade.title,Mining Access
upgrade.card,Mining
upgrade.desc,Delivers a trading terminal and a mining rig to the back counter. Graphics cards installed in a rig mine PSCoin each night the rig has power.
item.terminal.name,Trading Terminal
item.terminal.desc,Wallet, exchange and the nightly mining report.
item.rig.name,Mining Rig
item.rig.desc,"Holds up to four graphics cards. Hashrate {0} MH/s. Draws {1} kJ per day."
rig.label.cards,Graphics cards
item.gpu.name,{0} {1}
item.gpu.desc,"Hashrate {0} MH/s. Draws {1} kJ per day. Condition {2}%."
item.gpu.burnt.name,Burnt {0} {1}
item.gpu.burnt.desc,This card no longer works.
term.title,Trading Terminal
tab.wallet,Wallet
tab.trade,Trade
tab.report,Report
wallet.line,"{0}: {1} (about {2} credits)"
wallet.empty,The wallet is empty.
wallet.total,Total value: {0} credits
wallet.taint,Tainted value: {0} credits
trade.amount,Amount
trade.hint,Buy spends the amount in the quote coin. Sell sells the amount of the traded coin.
trade.deposit,Deposit credits as CRC
trade.withdraw,Withdraw CRC as credits
trade.pair,"{0}/{1} ({2})"
trade.price,Price {0}
trade.buy,Buy
trade.sell,Sell
venue.Exchange,Exchange
venue.Dex,DEX
venue.Darknet,Darknet
msg.amount,Enter an amount.
msg.balance,Not enough balance.
msg.trade,"Paid {0} {1}, received {2} {3}."
msg.deposit,Deposited {0} credits as CRC.
msg.cashout,"Received {0} credits. Tax {1} credits."
msg.aml_light,Compliance review: {0} credits of tainted funds were withheld.
msg.aml_heavy,Compliance review: {0} credits of tainted funds were seized and reported to Security.
report.none,No mining report yet.
report.day,Night of day {0}
report.rigs,Rigs with power: {0} of {1}
report.hash,"Hashrate: {0} MH/s (network {1} MH/s)"
report.mined,"Mined: {0} PSC (about {1} credits)"
report.energy,Energy used: {0} kJ
report.burnt,Cards burnt out: {0}
report.price,PSCoin price: {0} credits
nightlog.mined,Mining rigs produced {0} PSC.
nightlog.burnt,A {0} burnt out.
nightlog.unpowered,{0} mining rig(s) had no power.
news.open.title,PSCoin Exchange Opens
news.open.desc,The Upper Level exchange now lists PSCoin against CRC. Graphics cards are in demand across the station.
news.halving.title,PSCoin Block Reward Halved
news.halving.desc,Miners now receive half as many coins per night.
1 # Probably Decentralized localization table: English (en)
2 # Source language and fallback. Format: key text (text may be quoted; \n is a line break).
3 upgrade.title Mining Access
4 upgrade.card Mining
5 upgrade.desc Delivers a trading terminal and a mining rig to the back counter. Graphics cards installed in a rig mine PSCoin each night the rig has power.
6 item.terminal.name Trading Terminal
7 item.terminal.desc Wallet exchange and the nightly mining report.
8 item.rig.name Mining Rig
9 item.rig.desc Holds up to four graphics cards. Hashrate {0} MH/s. Draws {1} kJ per day.
10 rig.label.cards Graphics cards
11 item.gpu.name {0} {1}
12 item.gpu.desc Hashrate {0} MH/s. Draws {1} kJ per day. Condition {2}%.
13 item.gpu.burnt.name Burnt {0} {1}
14 item.gpu.burnt.desc This card no longer works.
15 term.title Trading Terminal
16 tab.wallet Wallet
17 tab.trade Trade
18 tab.report Report
19 wallet.line {0}: {1} (about {2} credits)
20 wallet.empty The wallet is empty.
21 wallet.total Total value: {0} credits
22 wallet.taint Tainted value: {0} credits
23 trade.amount Amount
24 trade.hint Buy spends the amount in the quote coin. Sell sells the amount of the traded coin.
25 trade.deposit Deposit credits as CRC
26 trade.withdraw Withdraw CRC as credits
27 trade.pair {0}/{1} ({2})
28 trade.price Price {0}
29 trade.buy Buy
30 trade.sell Sell
31 venue.Exchange Exchange
32 venue.Dex DEX
33 venue.Darknet Darknet
34 msg.amount Enter an amount.
35 msg.balance Not enough balance.
36 msg.trade Paid {0} {1}, received {2} {3}.
37 msg.deposit Deposited {0} credits as CRC.
38 msg.cashout Received {0} credits. Tax {1} credits.
39 msg.aml_light Compliance review: {0} credits of tainted funds were withheld.
40 msg.aml_heavy Compliance review: {0} credits of tainted funds were seized and reported to Security.
41 report.none No mining report yet.
42 report.day Night of day {0}
43 report.rigs Rigs with power: {0} of {1}
44 report.hash Hashrate: {0} MH/s (network {1} MH/s)
45 report.mined Mined: {0} PSC (about {1} credits)
46 report.energy Energy used: {0} kJ
47 report.burnt Cards burnt out: {0}
48 report.price PSCoin price: {0} credits
49 nightlog.mined Mining rigs produced {0} PSC.
50 nightlog.burnt A {0} burnt out.
51 nightlog.unpowered {0} mining rig(s) had no power.
52 news.open.title PSCoin Exchange Opens
53 news.open.desc The Upper Level exchange now lists PSCoin against CRC. Graphics cards are in demand across the station.
54 news.halving.title PSCoin Block Reward Halved
55 news.halving.desc Miners now receive half as many coins per night.
@@ -0,0 +1,54 @@
# Probably Decentralized 本地化表:简体中文(zh)
upgrade.title,矿业渠道
upgrade.card,挖矿
upgrade.desc,交付一台交易终端和一个矿架,放在后柜台。装进矿架的显卡在有电的夜晚挖出 PSCoin。
item.terminal.name,交易终端
item.terminal.desc,钱包、交易所与夜间挖矿报告。
item.rig.name,矿架
item.rig.desc,可装 4 张显卡。算力 {0} MH/s。耗电 {1} kJ/天。
rig.label.cards,显卡
item.gpu.name,{0} {1}
item.gpu.desc,算力 {0} MH/s。耗电 {1} kJ/天。健康度 {2}%。
item.gpu.burnt.name,烧毁的 {0} {1}
item.gpu.burnt.desc,此显卡已无法工作。
term.title,交易终端
tab.wallet,钱包
tab.trade,交易
tab.report,报告
wallet.line,{0}:{1}(约 {2} 信用点)
wallet.empty,钱包为空。
wallet.total,总值:{0} 信用点
wallet.taint,污点:{0} 信用点
trade.amount,数量
trade.hint,买入按计价币的数量支付;卖出按所交易币的数量卖出。
trade.deposit,存入信用点(换成 CRC)
trade.withdraw,提取 CRC(换成信用点)
trade.pair,{0}/{1}({2})
trade.price,价格 {0}
trade.buy,买入
trade.sell,卖出
venue.Exchange,交易所
venue.Dex,DEX
venue.Darknet,暗网
msg.amount,请输入数量。
msg.balance,余额不足。
msg.trade,支付 {0} {1},得到 {2} {3}。
msg.deposit,已存入 {0} 信用点,换成 CRC。
msg.cashout,到账 {0} 信用点。税 {1} 信用点。
msg.aml_light,合规审查:{0} 信用点的污点资金被扣留。
msg.aml_heavy,合规审查:{0} 信用点的污点资金被没收,并已上报安保部。
report.none,暂无挖矿报告。
report.day,第 {0} 天夜间
report.rigs,有电的矿架:{0} / {1}
report.hash,算力:{0} MH/s(全网 {1} MH/s)
report.mined,挖出:{0} PSC(约 {1} 信用点)
report.energy,耗电:{0} kJ
report.burnt,烧毁的显卡:{0}
report.price,PSCoin 价格:{0} 信用点
nightlog.mined,矿架挖出 {0} PSC。
nightlog.burnt,一张 {0} 烧毁了。
nightlog.unpowered,{0} 个矿架没有电。
news.open.title,PSCoin 交易所开业
news.open.desc,上层交易所上架 PSCoin/CRC 交易对。全站显卡需求上升。
news.halving.title,PSCoin 出块奖励减半
news.halving.desc,矿工每晚获得的币减半。
1 # Probably Decentralized 本地化表:简体中文(zh)
2 upgrade.title,矿业渠道
3 upgrade.card,挖矿
4 upgrade.desc,交付一台交易终端和一个矿架,放在后柜台。装进矿架的显卡在有电的夜晚挖出 PSCoin。
5 item.terminal.name,交易终端
6 item.terminal.desc,钱包、交易所与夜间挖矿报告。
7 item.rig.name,矿架
8 item.rig.desc,可装 4 张显卡。算力 {0} MH/s。耗电 {1} kJ/天。
9 rig.label.cards,显卡
10 item.gpu.name,{0} {1}
11 item.gpu.desc,算力 {0} MH/s。耗电 {1} kJ/天。健康度 {2}%。
12 item.gpu.burnt.name,烧毁的 {0} {1}
13 item.gpu.burnt.desc,此显卡已无法工作。
14 term.title,交易终端
15 tab.wallet,钱包
16 tab.trade,交易
17 tab.report,报告
18 wallet.line,{0}:{1}(约 {2} 信用点)
19 wallet.empty,钱包为空。
20 wallet.total,总值:{0} 信用点
21 wallet.taint,污点:{0} 信用点
22 trade.amount,数量
23 trade.hint,买入按计价币的数量支付;卖出按所交易币的数量卖出。
24 trade.deposit,存入信用点(换成 CRC)
25 trade.withdraw,提取 CRC(换成信用点)
26 trade.pair,{0}/{1}({2})
27 trade.price,价格 {0}
28 trade.buy,买入
29 trade.sell,卖出
30 venue.Exchange,交易所
31 venue.Dex,DEX
32 venue.Darknet,暗网
33 msg.amount,请输入数量。
34 msg.balance,余额不足。
35 msg.trade,支付 {0} {1},得到 {2} {3}。
36 msg.deposit,已存入 {0} 信用点,换成 CRC。
37 msg.cashout,到账 {0} 信用点。税 {1} 信用点。
38 msg.aml_light,合规审查:{0} 信用点的污点资金被扣留。
39 msg.aml_heavy,合规审查:{0} 信用点的污点资金被没收,并已上报安保部。
40 report.none,暂无挖矿报告。
41 report.day,第 {0} 天夜间
42 report.rigs,有电的矿架:{0} / {1}
43 report.hash,算力:{0} MH/s(全网 {1} MH/s)
44 report.mined,挖出:{0} PSC(约 {1} 信用点)
45 report.energy,耗电:{0} kJ
46 report.burnt,烧毁的显卡:{0}
47 report.price,PSCoin 价格:{0} 信用点
48 nightlog.mined,矿架挖出 {0} PSC。
49 nightlog.burnt,一张 {0} 烧毁了。
50 nightlog.unpowered,{0} 个矿架没有电。
51 news.open.title,PSCoin 交易所开业
52 news.open.desc,上层交易所上架 PSCoin/CRC 交易对。全站显卡需求上升。
53 news.halving.title,PSCoin 出块奖励减半
54 news.halving.desc,矿工每晚获得的币减半。