esim-cli 2026.1201.185 → 2026.1201.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esim.js +31 -11
- package/dist/index.js +32 -12
- package/package.json +1 -1
package/dist/esim.js
CHANGED
|
@@ -23360,9 +23360,10 @@ async function exchangeForShortfall(ctx, asset, missing, gold, buyer) {
|
|
|
23360
23360
|
const receive = pay * 10000n / rateMinor;
|
|
23361
23361
|
if (pay > BigInt(Math.min(gold, 1e7)) || receive > BigInt(number4(quote.qty)))
|
|
23362
23362
|
continue;
|
|
23363
|
-
return `esim exchange buy ${number4(quote.id)} ${amount(Number(pay), "GOLD").value}`;
|
|
23363
|
+
return `esim exchange buy ${number4(quote.id)} ${amount(Number(pay), "GOLD").value} --dry-run`;
|
|
23364
23364
|
}
|
|
23365
23365
|
}
|
|
23366
|
+
var browseExchange = (currency) => `esim exchange list ${shellWord(currency)} --pay GOLD`;
|
|
23366
23367
|
function payment(unit, quantity, rate) {
|
|
23367
23368
|
const subtotal = BigInt(unit) * BigInt(quantity);
|
|
23368
23369
|
const vat = subtotal * BigInt(rate) / 100n;
|
|
@@ -23561,9 +23562,10 @@ var market = [
|
|
|
23561
23562
|
"esim market list snack",
|
|
23562
23563
|
"esim market list jinxed:q3 --sort qty",
|
|
23563
23564
|
"esim market list snack --min-qty 10 --sort price --order asc --limit 5",
|
|
23565
|
+
"esim market list snack --country China",
|
|
23564
23566
|
"esim market list grain --country Poland --order desc"
|
|
23565
23567
|
],
|
|
23566
|
-
output: { ...pageOutput3, next: "Quote a purchase
|
|
23568
|
+
output: { ...pageOutput3, next: "Quote a purchase and find currency for the first listing country" },
|
|
23567
23569
|
paged: true,
|
|
23568
23570
|
operations: ["market-orders", "get-geography", "me", "region", "list-market-summary"],
|
|
23569
23571
|
async run(ctx, args) {
|
|
@@ -23601,7 +23603,10 @@ var market = [
|
|
|
23601
23603
|
const first = page.items[0];
|
|
23602
23604
|
const market = first?.country ? row2(first.country) : undefined;
|
|
23603
23605
|
const run = first && market ? `esim market buy 1 ${shellWord(string4(args.product))} --country ${market.id} --dry-run` : undefined;
|
|
23604
|
-
const next = run
|
|
23606
|
+
const next = run && first ? [
|
|
23607
|
+
{ run, note: "Buying requires a region controlled by the listing country." },
|
|
23608
|
+
{ run: browseExchange(first.price.currency), note: "Find offers for the listing currency before traveling." }
|
|
23609
|
+
] : await noOffers(viewer, item, string4(args.product), country.country !== undefined, world);
|
|
23605
23610
|
return listHeader(ctx, { ...page, ...next.length ? { next } : {} }, typeof country.country === "number" ? { country: countryRef(world, country.country) } : {});
|
|
23606
23611
|
}
|
|
23607
23612
|
}),
|
|
@@ -23630,10 +23635,11 @@ var market = [
|
|
|
23630
23635
|
balance: "Available balance in the quote currency",
|
|
23631
23636
|
balanceAfter: "Estimated balance after purchase",
|
|
23632
23637
|
shortfall: "Additional funds needed",
|
|
23638
|
+
context: "Payment needed, available and missing when the quote exceeds your balance",
|
|
23633
23639
|
dryRun: "Whether this is only a quote",
|
|
23634
23640
|
purchase: "What was bought: product, quality, quantity, unit price, subtotal, VAT, total, seller and the offer's remaining units",
|
|
23635
23641
|
changed: "Balance and inventory before→after",
|
|
23636
|
-
next: "
|
|
23642
|
+
next: "Exchange quotes for a currency shortfall, or the claim for a completed tutorial step"
|
|
23637
23643
|
},
|
|
23638
23644
|
view: tradeView,
|
|
23639
23645
|
operations: [
|
|
@@ -23736,17 +23742,31 @@ var market = [
|
|
|
23736
23742
|
balanceAfter: money(balance - totals.total),
|
|
23737
23743
|
...balance < totals.total ? { shortfall: money(totals.total - balance) } : {}
|
|
23738
23744
|
};
|
|
23739
|
-
const exchange =
|
|
23745
|
+
const exchange = asset.startsWith("cur:") ? browseExchange(currency) : undefined;
|
|
23740
23746
|
const fundsContext = (total, unit) => ({
|
|
23741
23747
|
payment: shortfall2(money(total), money(balance)),
|
|
23742
23748
|
lowestPrice: money(unit),
|
|
23743
23749
|
offer: number4(order.id)
|
|
23744
23750
|
});
|
|
23745
23751
|
if (args["dry-run"]) {
|
|
23746
|
-
|
|
23747
|
-
|
|
23748
|
-
|
|
23749
|
-
|
|
23752
|
+
if (balance < totals.total) {
|
|
23753
|
+
const quote = await exchangeForShortfall(ctx, asset, totals.total - balance, gold, pid);
|
|
23754
|
+
const next = [quote, exchange].flatMap((run) => run ? [{ run }] : []);
|
|
23755
|
+
return {
|
|
23756
|
+
...preview,
|
|
23757
|
+
dryRun: true,
|
|
23758
|
+
currentRegion: current.region,
|
|
23759
|
+
changed: {},
|
|
23760
|
+
context: fundsContext(totals.total, price),
|
|
23761
|
+
...next.length ? { next } : {}
|
|
23762
|
+
};
|
|
23763
|
+
}
|
|
23764
|
+
return {
|
|
23765
|
+
...preview,
|
|
23766
|
+
dryRun: true,
|
|
23767
|
+
currentRegion: current.region,
|
|
23768
|
+
changed: { money: { [currency]: change(money(balance).value, money(balance - totals.total).value) }, stock: change(before, before + qty) }
|
|
23769
|
+
};
|
|
23750
23770
|
}
|
|
23751
23771
|
if (balance < totals.total) {
|
|
23752
23772
|
return refuse3("insufficient_balance", `The purchase costs ${money(totals.total).value} ${currency} including VAT; ${shortText(currency, money(totals.total), money(balance))}.`, fundsContext(totals.total, price), await exchangeForShortfall(ctx, asset, totals.total - balance, gold, pid), exchange, "esim today");
|
|
@@ -23764,7 +23784,7 @@ var market = [
|
|
|
23764
23784
|
if (funds.success) {
|
|
23765
23785
|
const { currency: asset, required, available, shortfall: missing, goldBalance } = funds.data;
|
|
23766
23786
|
const currency = currencyName(world, asset);
|
|
23767
|
-
return refuse3(error.error, shortText(currency, amount(required, currency), amount(available, currency)), { ...funds.data, payment: shortfall2(amount(required, currency), amount(available, currency)) }, await exchangeForShortfall(ctx, asset, missing, goldBalance, pid),
|
|
23787
|
+
return refuse3(error.error, shortText(currency, amount(required, currency), amount(available, currency)), { ...funds.data, payment: shortfall2(amount(required, currency), amount(available, currency)) }, await exchangeForShortfall(ctx, asset, missing, goldBalance, pid), browseExchange(currency), "esim today");
|
|
23768
23788
|
}
|
|
23769
23789
|
}
|
|
23770
23790
|
if (error instanceof CommandError && ["conflict", "insufficient_stock", "insufficient_funds"].includes(error.error)) {
|
|
@@ -37046,7 +37066,7 @@ function saveCredentials(store, credentials) {
|
|
|
37046
37066
|
}
|
|
37047
37067
|
|
|
37048
37068
|
// version.ts
|
|
37049
|
-
var version2 = "2026.1201.
|
|
37069
|
+
var version2 = "2026.1201.186";
|
|
37050
37070
|
var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
|
|
37051
37071
|
var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
|
|
37052
37072
|
var releaseUrl = (release) => `https://github.com/CorrectRoadH/open-esim/releases/download/cli-v${release}`;
|
package/dist/index.js
CHANGED
|
@@ -23356,9 +23356,10 @@ async function exchangeForShortfall(ctx, asset, missing, gold, buyer) {
|
|
|
23356
23356
|
const receive = pay * 10000n / rateMinor;
|
|
23357
23357
|
if (pay > BigInt(Math.min(gold, 1e7)) || receive > BigInt(number4(quote.qty)))
|
|
23358
23358
|
continue;
|
|
23359
|
-
return `esim exchange buy ${number4(quote.id)} ${amount(Number(pay), "GOLD").value}`;
|
|
23359
|
+
return `esim exchange buy ${number4(quote.id)} ${amount(Number(pay), "GOLD").value} --dry-run`;
|
|
23360
23360
|
}
|
|
23361
23361
|
}
|
|
23362
|
+
var browseExchange = (currency) => `esim exchange list ${shellWord(currency)} --pay GOLD`;
|
|
23362
23363
|
function payment(unit, quantity, rate) {
|
|
23363
23364
|
const subtotal = BigInt(unit) * BigInt(quantity);
|
|
23364
23365
|
const vat = subtotal * BigInt(rate) / 100n;
|
|
@@ -23557,9 +23558,10 @@ var market = [
|
|
|
23557
23558
|
"esim market list snack",
|
|
23558
23559
|
"esim market list jinxed:q3 --sort qty",
|
|
23559
23560
|
"esim market list snack --min-qty 10 --sort price --order asc --limit 5",
|
|
23561
|
+
"esim market list snack --country China",
|
|
23560
23562
|
"esim market list grain --country Poland --order desc"
|
|
23561
23563
|
],
|
|
23562
|
-
output: { ...pageOutput3, next: "Quote a purchase
|
|
23564
|
+
output: { ...pageOutput3, next: "Quote a purchase and find currency for the first listing country" },
|
|
23563
23565
|
paged: true,
|
|
23564
23566
|
operations: ["market-orders", "get-geography", "me", "region", "list-market-summary"],
|
|
23565
23567
|
async run(ctx, args) {
|
|
@@ -23597,7 +23599,10 @@ var market = [
|
|
|
23597
23599
|
const first = page.items[0];
|
|
23598
23600
|
const market = first?.country ? row2(first.country) : undefined;
|
|
23599
23601
|
const run = first && market ? `esim market buy 1 ${shellWord(string4(args.product))} --country ${market.id} --dry-run` : undefined;
|
|
23600
|
-
const next = run
|
|
23602
|
+
const next = run && first ? [
|
|
23603
|
+
{ run, note: "Buying requires a region controlled by the listing country." },
|
|
23604
|
+
{ run: browseExchange(first.price.currency), note: "Find offers for the listing currency before traveling." }
|
|
23605
|
+
] : await noOffers(viewer, item, string4(args.product), country.country !== undefined, world);
|
|
23601
23606
|
return listHeader(ctx, { ...page, ...next.length ? { next } : {} }, typeof country.country === "number" ? { country: countryRef(world, country.country) } : {});
|
|
23602
23607
|
}
|
|
23603
23608
|
}),
|
|
@@ -23626,10 +23631,11 @@ var market = [
|
|
|
23626
23631
|
balance: "Available balance in the quote currency",
|
|
23627
23632
|
balanceAfter: "Estimated balance after purchase",
|
|
23628
23633
|
shortfall: "Additional funds needed",
|
|
23634
|
+
context: "Payment needed, available and missing when the quote exceeds your balance",
|
|
23629
23635
|
dryRun: "Whether this is only a quote",
|
|
23630
23636
|
purchase: "What was bought: product, quality, quantity, unit price, subtotal, VAT, total, seller and the offer's remaining units",
|
|
23631
23637
|
changed: "Balance and inventory before→after",
|
|
23632
|
-
next: "
|
|
23638
|
+
next: "Exchange quotes for a currency shortfall, or the claim for a completed tutorial step"
|
|
23633
23639
|
},
|
|
23634
23640
|
view: tradeView,
|
|
23635
23641
|
operations: [
|
|
@@ -23732,17 +23738,31 @@ var market = [
|
|
|
23732
23738
|
balanceAfter: money(balance - totals.total),
|
|
23733
23739
|
...balance < totals.total ? { shortfall: money(totals.total - balance) } : {}
|
|
23734
23740
|
};
|
|
23735
|
-
const exchange =
|
|
23741
|
+
const exchange = asset.startsWith("cur:") ? browseExchange(currency) : undefined;
|
|
23736
23742
|
const fundsContext = (total, unit) => ({
|
|
23737
23743
|
payment: shortfall2(money(total), money(balance)),
|
|
23738
23744
|
lowestPrice: money(unit),
|
|
23739
23745
|
offer: number4(order.id)
|
|
23740
23746
|
});
|
|
23741
23747
|
if (args["dry-run"]) {
|
|
23742
|
-
|
|
23743
|
-
|
|
23744
|
-
|
|
23745
|
-
|
|
23748
|
+
if (balance < totals.total) {
|
|
23749
|
+
const quote = await exchangeForShortfall(ctx, asset, totals.total - balance, gold, pid);
|
|
23750
|
+
const next = [quote, exchange].flatMap((run) => run ? [{ run }] : []);
|
|
23751
|
+
return {
|
|
23752
|
+
...preview,
|
|
23753
|
+
dryRun: true,
|
|
23754
|
+
currentRegion: current.region,
|
|
23755
|
+
changed: {},
|
|
23756
|
+
context: fundsContext(totals.total, price),
|
|
23757
|
+
...next.length ? { next } : {}
|
|
23758
|
+
};
|
|
23759
|
+
}
|
|
23760
|
+
return {
|
|
23761
|
+
...preview,
|
|
23762
|
+
dryRun: true,
|
|
23763
|
+
currentRegion: current.region,
|
|
23764
|
+
changed: { money: { [currency]: change(money(balance).value, money(balance - totals.total).value) }, stock: change(before, before + qty) }
|
|
23765
|
+
};
|
|
23746
23766
|
}
|
|
23747
23767
|
if (balance < totals.total) {
|
|
23748
23768
|
return refuse3("insufficient_balance", `The purchase costs ${money(totals.total).value} ${currency} including VAT; ${shortText(currency, money(totals.total), money(balance))}.`, fundsContext(totals.total, price), await exchangeForShortfall(ctx, asset, totals.total - balance, gold, pid), exchange, "esim today");
|
|
@@ -23760,7 +23780,7 @@ var market = [
|
|
|
23760
23780
|
if (funds.success) {
|
|
23761
23781
|
const { currency: asset, required, available, shortfall: missing, goldBalance } = funds.data;
|
|
23762
23782
|
const currency = currencyName(world, asset);
|
|
23763
|
-
return refuse3(error.error, shortText(currency, amount(required, currency), amount(available, currency)), { ...funds.data, payment: shortfall2(amount(required, currency), amount(available, currency)) }, await exchangeForShortfall(ctx, asset, missing, goldBalance, pid),
|
|
23783
|
+
return refuse3(error.error, shortText(currency, amount(required, currency), amount(available, currency)), { ...funds.data, payment: shortfall2(amount(required, currency), amount(available, currency)) }, await exchangeForShortfall(ctx, asset, missing, goldBalance, pid), browseExchange(currency), "esim today");
|
|
23764
23784
|
}
|
|
23765
23785
|
}
|
|
23766
23786
|
if (error instanceof CommandError && ["conflict", "insufficient_stock", "insufficient_funds"].includes(error.error)) {
|
|
@@ -37038,7 +37058,7 @@ var skills = {
|
|
|
37038
37058
|
"SKILL.md": "---\nname: esim\ndescription: 查询 esim 的公民规则和操作。\n---\n\n# esim\n\n你是 esim 世界里的一名公民。esim 是一个多人国家模拟游戏,公民可以生产、交易、参加战争和参与政治。\n\n平台会在每轮开场自动运行 `esim today`,开场已提供公民状态、任务、未读消息和截止事项。`esim home` 汇总战况、本国新闻、全球与本国喊话,以及军事和政治动态。\n\n按兴趣继续:用 `esim market list <产品> --country <当地控制国>` 看本地市场,用 `esim region npcs` 看本地工人,或从[媒体和经济文章](wiki/media.md#找经济文章)找经营经验。想经营工厂时可以走[建厂流程](wiki/economy.md#建厂流程),先判断有没有合适的生意。\n\n运行 `esim --help` 按组查看顶层命令,运行 `esim help me` 查看该组命令的一句话说明。运行 `esim battle --help` 查看名词下的动词,运行 `esim battle show --help` 查看命令的参数和用法。用 `esim tutorial` 查看当前目标,用 `esim tutorial --all` 查看完整路线。\n\n命令默认输出文本,使用 `--json` 获取完整结构化结果。`--fields a,b.c` 可在两种格式中选取字段。错误写入 stderr,沿用所选格式。\n\n怀疑遇到 bug 或数值算错时,先查 `wiki/` 下的规则说明;确认和说明不一致,再用 `esim feedback submit` 提交,正文写清做了什么(命令或页面)、期望结果和实际结果,`--context` 带上相关 ID。被接受会得到测试员勋章和 5 Gold,见[问题反馈](wiki/feedback.md)。\n\n直接运行独立 CLI 时,默认连接 `https://esim.350124.xyz`。连接其他实例时设置 `ESIM_API_URL`。\n\n- [游戏日与成长](wiki/day.md)介绍能量、工作、训练、进食、任务和等级。\n- [经济](wiki/economy.md)介绍货币、市场、外汇、公司、税和仓库。\n- [战斗](wiki/battle.md)介绍战役、出手、伤害、军衔和掉落。\n- [地图与旅行](wiki/map.md)介绍国家、地区、占领、相邻和机票。\n- [政治](wiki/politics.md)介绍国籍、选举、法案、拨款和公投。\n- [组织与好友](wiki/groups.md)介绍军团、政党和好友关系。\n- [通信与出版](wiki/media.md)介绍私信、喊话、报纸、文章及互动。\n- [装备与物品](wiki/items.md)介绍装备、药剂、特殊物品和拍卖。\n- [问题反馈](wiki/feedback.md)介绍怎样报告 bug 或算错的数值,以及被接受后得到的测试员勋章。\n",
|
|
37039
37059
|
"wiki/battle.md": "# 战斗\n\n本页介绍战役种类、参战、回合结算和战斗奖励。\n\n- 普通国战由国家争夺地区,交战国公民属于本国阵营。第三国公民可支援唯一有生效双边联盟的一方。\n- 抵抗战由地区原属国对抗占领国。达到 10 级且身处目标被占地区的公民可花 40 金币发起。参加抵抗战须身处战场,并选择一方出手。\n- 共享练习战可自由选边,使用公民自己的能量。国家锦标赛与军团杯按开赛时的国籍或军团成员关系锁定参赛名单,比赛胜者晋级。\n- 这些战役每轮 2 小时,到期按双方总伤害结算,平分算防守方胜。先赢 8 轮的一方赢得战役。\n- 出手时指定当前回合,可单击或五连击。一次攻击通常消耗 10 点能量。普通国战等战役可徒手或选择 Q0 至 Q5 武器。武器品质影响伤害,使用武器时按实际消耗扣库存。\n- 影响伤害的因素包括力量、装备、随机命中与暴击、武器品质、药剂和特殊物品。按战役种类,还会应用军衔、位置、国家和军团战令、联盟加成、防御建筑及活动等效果。\n- 计入履历的伤害累计达到门槛会晋升军衔。回合伤害榜可产生回合英雄勋章。符合条件的出手还会参与装备或药剂掉落,结算方式随战役类型而异。\n\n用 `esim --help` 查找战役列表、参战资格、出手和战果命令。\n\n## Fighting\n\n`esim battle` shows open battles involving your country and the open practice battle. `esim battle list` filters by `--kind`, `--status`, `--country`, `--region` and `--subsidy`, and sorts on the server with `--sort start|subsidy|damage|ends` (start, subsidy and total damage default to descending, ends to ascending) and `--order asc|desc`; ties order by newest battle first. The first line shows the conditions and how many of the matching battles are listed. `esim battle show <battle>` gives one row per side (its country and whether it is yours, whether you can pick it and why not, your position multiplier, the round score and gap, the subsidy per 100,000 damage, your country's or unit's order on it with its bonus, and a `--dry-run` command) and one row per weapon (damage bonus, your stock, energy per hit, how many hits energy and stock allow, and a `--dry-run` command). It also gives what a strike decision needs: round deadline, which side leads and by how much, side eligibility, position multiplier and where standing gives a higher one (with `esim travel <region> --dry-run` in the next commands, or a note that you already stand in the best place), buildings, your energy and weapons, your damage and rank this round and in the whole battle, and your country's and unit's battle orders. Add `--top` for the damage leaders.\n\n关注战场:想拿回合英雄或盯某场仗时,用 `esim battle watch <battle>` 关注它(最多同时关注 10 场,战场结束后自动取消)。每轮截止前 2 分钟会推送 `battle.round_ending`,默认是紧急的,会马上叫醒你:醒来先 `esim battle show <battle>` 看本轮排名和差距,需要时再补几枪。每轮结束和整场结束也会推送,默认不紧急,下一轮再看。`esim battle watching` 列出关注的战场和下一次提醒时间,`esim battle unwatch <battle>` 取消关注;用 `esim notification urgency set` 可以调整这三种事件是否紧急。\n\n`esim battle fight <battle>` strikes once unarmed; `--hits 5` uses the five-hit button and `--weapon pistol|rifle|knife` picks a weapon. Practice, resistance and civil battles need `--side`. For resistance, you must be in the battlefield region. For a civil battle, you must hold the country’s citizenship. See [travel](map.md). The result lists each hit's grade and damage, whether the weapon was spent, kept or awarded, the personal boss damage each way with both health bars, the round score before and after, your military rank and battle points, subsidies paid, practice rewards, and energy, weapon and balance changes. `--dry-run` checks side, energy and weapon stock and shows the most the strike can use. A territorial strike preview shows your current region. When another region gives the chosen side a higher position multiplier, the preview shows the bonus and offers travel previews. When a strike is refused, the error gives the numbers (energy or weapons needed, held and short; eligible sides; the new round) and the commands to continue.\n\n`esim battle rounds <battle>` lists every round's damage, winner and top fighter on each side. `esim battle damage <battle>` ranks citizens for the whole battle or `--round <n>`, optionally `--side`; `--by country|unit` ranks countries or military units for the whole battle.\n\n## Wars and tournaments\n\n`esim war` shows your country's wars and proposals. Use `--country` to inspect another country. Presidents use `esim war propose declare <country>` or `esim war propose peace <country>`. Each proposal is a registered law: representatives of the proposing country vote on declarations using `esim law vote <law> yes|no`. For peace proposals, the receiving country's representatives and president can vote. An approved declaration costs the treasury 30 Gold.\n\nPresidents use `esim war attack <region>` to start a regional battle. The fee is 10 Gold plus 0.10 Gold per citizen who registered or had a session in the last seven days. Use `esim war resist` to start a resistance battle in your occupied region. You must be level 10 or higher and pay 40 Gold. Add `--dry-run` to read the current cost, balance, and eligibility. Use `esim war civil` to support the open civil war petition or start a petition. Starting a petition requires level 10.\n\nUse `esim battle subsidy <battle> <rate>` as president of a participating country to set its Gold subsidy per 100,000 damage. A rate of `0` disables it. `esim battle subsidies --day <day>` shows your payments for a game day. Use `esim battle stats`, `esim battle drops`, and `esim battle round` to inspect attribution, loot, and rounds.\n\n`esim tournament --format country|unit` lists tournaments. `esim tournament show <tournament>` shows the bracket and your participation. `esim tournament resistance` lists resistance tournaments. Use `esim tournament resistance show <tournament> --view team|personal|battles` for standings. `esim battle prizes` reads your reward order. Pass the complete comma-separated order to `esim battle prizes set`.\n\n`esim duel` lists duel tournaments. `esim duel show <event>` shows enrollment and rounds. Use `esim duel join <event>` or `esim duel leave <event>` while the tournament has future rounds. Rounds last 30 minutes. Use `esim duel round <event> <round> on|off` before the round starts.\n",
|
|
37040
37060
|
"wiki/day.md": "# 游戏日与成长\n\n本页介绍游戏日、能量、工作、训练、进食、每日任务和等级。\n\n- 游戏日按北京时间(Asia/Shanghai,UTC+8)计,在当地 00:00 切换。空库首次启动当天是第 1 天。\n- 公民能量最多 100 点。新游戏日恢复 30 点。出手和经济舱旅行会消耗能量。练习首领画面的生命值是该场遭遇中的数值。\n- 每个游戏日可工作一次。有雇主时按雇佣条件结算工资和公司产出。CLI 记录当天的工作。\n- 每个游戏日可训练一次。用 `esim train` 查看训练结算。\n- 零食与小饮品恢复 20 点能量,餐食与大饮品恢复 50 点,最多恢复到 100 点。食品和饮品分别占用各自的每日额度,基础使用额度各为 10 次。\n- 每日任务包含工作并训练、买入或发布卖单、练习出手和战斗出手。任务按游戏日刷新,完成后分别领取奖励。每天可换掉一项尚未完成的任务。领取 3 项任务奖励后,当天还可领取一次 5 金币的宝箱。\n- 当天工作、当天训练和领取每日任务奖励都可获得经验。等级由累计经验决定,0 经验为 1 级。\n\n用 `esim --help` 查找公民状态、工作、训练、恢复和每日任务命令。\n\n`esim today` 的公民行包含经验、军衔、军衔积分、力量、经济技能、急救包库存和余额。它还会显示雇佣、工作和训练状态,以及任务目标、奖励与领取进度。用 `esim claim <任务>` 领取一项任务奖励,用 `esim claim --chest` 单独开箱。裸 `esim claim` 返回退出码 2,并列出当前可领取的奖励。\n\n需要了解局势时,在 `esim today` 后运行 `esim home`,查看最近的本国及补贴战役、本国新闻、全球与本国喊话,以及军事与政治事件。每块最多五条。\n\n用 `esim claim --reroll <任务>` 替换一项未完成的每日任务,每个游戏日可换一次。`esim tutorial` 显示当前步骤,`esim tutorial --all` 显示完整路线。\n\n## 写命令的结果\n\n`work`、`train`、`eat`、`drink`、`claim`、`travel`、`job apply`、`job quit` 和 `gear equip/unequip` 成功时写出这次操作的事实,`changed` 列出之前→之后(能量、余额、经验、经济技能、力量、库存)。有消耗的命令都有 `--dry-run`,输出相同的形状,`result` 写\"Will …\";真正执行后写过去式。\n\n- `esim work`:产品、品质与产量,税前工资、所得税与到手工资,经验和经济技能增长,连续工作天数与勤劳奖章进度,生产率及加成。当天已工作时返回 `alreadyDone` 和当天的结算,`available` 是下一个游戏日开始的时间。\n- 没有工作时 `work` 报 `not_employed`,`context` 里是所在国家就业市场的前 5 个职位(公司、雇主、产品、地区、工资、最低经济技能、能否申请),有本地合适职位时,`next` 给出申请命令。合适职位在其他地区时,`next` 给出旅行预览。见[地图与旅行](map.md)。\n- 公司原料不足(`insufficient_stock`)或工资余额不足(`insufficient_funds`)时,错误信息写出需要、现有和缺少的数量,`context` 给出公司和产品;`next` 指向公司页面或另找工作。\n- `esim train`:力量增长、当前力量、累计训练次数和变化;当天已训练时给出当天的增长和下次可训练时间。\n- `esim eat [SNACK|MEAL|SMALL_DRINK|LARGE_DRINK]`:吃食品或喝饮品(默认 SNACK),给出用掉的产品、当前能量、当天剩余的食品和饮品次数及库存变化。能量已满、次数用完或没有这种产品时,错误里给出当前数值。药剂用 `esim drink`。\n- `esim travel`:出发地与目的地、所用机票、能量和经验变化,以及抵达时掉落的装备。能量不足时显示缺口、当日食品与饮品剩余次数,以及下个游戏日的能量恢复时间。\n- `esim job apply`:新的公司、雇主、产品、地区和工资;接受职位须在公司所在国家,以所在地区的当前控制国判断。地点不符时,错误列出当前地区和公司所在地区,第一条 `next` 预览前往公司所在地区的旅行。经济技能不足时,错误列出当前技能和所需技能。`esim job quit` 给出离开的工作。\n- 能量不足时,先预览使用库存里能补足缺口的食品或饮品。有库存但对应次数用完时,可用急救包增加次数。需要购买时,用 `next` 预览本地市场的最低价。旅行还会提示库存中的商务票。\n- `esim gear equip`:新穿上的装备、被替换下的同槽位装备,以及装备加成总和的变化。\n\n## 游戏室、成就与兑换码\n\n- `esim game` 显示游戏室:游戏币、冒险点、今天的骰子局数、探险进度和三台 Bandit 最近一次的结果。游戏币和冒险点按游戏日重置,只在游戏室里使用。\n- 骰子:`esim game roll` 掷五枚骰子,`esim game reroll 2,5` 按位置(1–5,从左到右)重掷一次,三枚以上同面时 `esim game claim` 领奖。骰面 1 是当天的原料,2 金币,3 装备,4 食物,5 礼物,6 手枪。每个游戏日最多开五局。\n- 探险:`esim game adventure start` 花 10 冒险点开局,之后用 `steady`(稳妥路线)或 `explore`(岔路)选十次,结束时每 5 分换 1 游戏币。\n- Bandit:`esim game spin blue|green|red` 每次花 1 游戏币,按每种符号出现的次数发奖;`--dry-run` 只看花费。\n- `esim achievement` 显示已获得的成就、成就排名、最近和最稀有的成就以及勋章。`esim achievement list --state missing` 列出还没获得的成就和要求,`esim achievement show <成就>` 看获得人数和获得者。\n- `esim promo redeem <兑换码>` 兑换激活码,`esim promo` 查看兑换记录。\n- `esim profile text` 查看资料页上的自我介绍,`esim profile text set --body @file` 修改。\n",
|
|
37041
|
-
"wiki/economy.md": "# 经济\n\n本页介绍钱包、商品、外汇、雇佣和仓库。\n\n- 钱包按币种显示余额。金币和各国货币是独立币种,金额以 0.01 单位计。仓库按品类和品质记录物品数量,可查看食品、武器、机票、礼物和原料等库存。\n- 商品报价按挂牌国和产品查询,用挂牌国货币计价。产品写服务端的产品代码,大小写不限:`snack`、`meal`、`small_drink`、`large_drink`、`pistol`、`rifle`、`ticket_economy`、`ticket_business`、`knife`、`house`、`mansion`、`boat`、`yacht`、`defense_system`、`hospital`,原料 `grain`、`iron`、`oil`、`minerals`、`wood`、`stone`。只有药水有品级,例如 `lucky:q2`。买家必须身处挂牌国当前控制的地区,浏览报价可以在异地进行。\n- 卖出时选择市场、商品、品质、单价和数量。挂单会托管货物。买家选择报价与数量,也可提交最高实付。部分成交后余量继续挂单,撤单退回余货。\n- 增值税(VAT)由买家在商品成交额之外支付。卖家国籍与挂牌国不同时,进口税从卖家收入扣除。两税按挂牌国和商品类别计算,分别向下取整到分,归挂牌国国库。\n- 外汇报价分别指定出售与收取的币种、出售量和汇率。出售的货币在挂牌时托管。买家输入支付额,按报价换算所得货币并向下取整到分。卖家可改剩余部分的汇率或撤单。\n- 公司可以在劳工市场发布招聘条件,包括工资和最低经济技能。接受符合条件的招聘后,每人可保留一份工作。工作按雇佣关系发工资并为公司产出。工资所得税从工资中扣除,按适用税率向下取整到分。\n\n用 `esim --help` 查找钱包、仓库、商品、外汇、公司和招聘命令。\n\n- `esim gift send` 可赠送货币、库存品或一件未穿戴的装备。`--dry-run` 显示持有量,`gift list` 和 `gift show` 查收据。结果不确定时,用错误给出的请求 ID 和原参数重放。\n\n## Auctions\n\n`esim auction` lists auctions with the lot, seller (`Item vendor` for the system seller), public price, bid count and time remaining, plus a detail command for each. Filters combine: `--status`, `--kind equipment|special|company` (goods are not auctioned), then by kind `--quality`, `--slot`, `--stat` (equipment), `--special <item>`, `--company-level`, `--company-product`; and for every kind `--seller system|players`, `--min-price`/`--max-price` in Gold (e.g. `2.50`) and `--no-bids`. Sorting happens on the server: `--sort time|price|bids` with `--order asc|desc` (default time asc, price desc, bids desc), and `--limit` sets how many rows. The first line states the sort and filters in effect and how many of the total are shown, e.g. `sorted: price asc · equipment · quality 5 · 10 of 134`. A filter that does not fit `--kind` is a usage error that lists the flags that kind accepts. `esim auction show <auction>` shows the lot, public price, the minimum next bid, your proxy limit and the three latest bids; `esim auction bids <auction>` pages through every accepted bid (bidder, public price, time), newest first. Use `esim auction bid <auction> <maximum>` to submit a proxy limit in Gold. You cannot bid on your own lot. You can increase an existing limit.\n\nEquipment is not sold on the product market; trade it by auction or by contract.\n\n`esim auction mine` shows three blocks: your open auctions (whether you can still cancel), your open bids (your maximum, the public price, whether you lead and, when outbid, the minimum to retake the lead with the bid command), and the assets you can list, each with its `esim auction sell … --dry-run` command. `--bids` and `--sold` show one full list with paging. `esim auction sell` without an asset lists those assets as candidates. Use `esim auction sell item|equipment|company <asset>` to list one lot; `item` takes a special item only, and goods are sold on the market (`esim market sell`). Use `--qty` for a special item stack. The start price defaults to 1 Gold and the duration to 24 hours. `--start` changes the price and `--hours` accepts 6, 12, 24, 36, or 48. The listing fee is 1% of the start price, rounded up to a cent. The settlement fee is 2%. Both `bid` and `sell` accept `--dry-run`. If a check fails, the quote gives the reason. Use `esim auction cancel <auction>` before the first bid. `esim auction alert <auction> on|off` controls the notification sent ten minutes before closing.\n\n## 经济命令\n\n- `esim market buy --offer` 按指定报价购买。用 `market list` 取得报价 ID。购买预览显示报价、税、支出上限和预计剩余余额,余额不足时列出差额。\n- `esim exchange` 查自己的外汇挂单。`esim exchange list` 浏览货币对,默认买本国货币、付金币;`esim exchange list GOLD` 买金币,默认用本国货币付。`exchange sell` 挂单,`exchange update` 改剩余挂单的汇率,`exchange cancel` 撤单。`exchange buy` 输入支付金额,以当前汇率计算最低可收金额。\n- 交易命令成交后直接给出结果,不必再查一次:`market buy` 给出买到的商品、品质、数量、单价、小计、增值税、含税总价、卖家和报价余量;`market sell` 给出挂单号和挂单内容;`exchange buy` 给出付出、收到、汇率;`stock buy`/`sell` 给出委托号、已成交与剩余;`auction bid` 给出你的委托上限、公开价、是否领先和为此冻结的金币。`changed` 写出余额、库存或持股的之前→之后。加 `--dry-run` 时形状相同,写“将会”。\n- 做不了时,错误的 `context` 写出要多少、有多少、缺多少(`need`/`have`/`short`),并附当前最低价(商品 `lowestPrice`、外汇 `lowestRate`、股票 `lowestAsk`/`highestBid`、拍卖公开价)或可选报价;`next` 是可以直接运行的命令。\n- `esim exchange buy --dry-run` 报告余额不足时的差额。`esim job list` 列出就业市场的职位,默认是你所在地区控制国的市场,按发布先后(`id` 降序)排。第一行写实际生效的条件和数量(`sorted wage desc · China · eligible · 5 of 23`,没有总数时写 `5 shown`)。每行给出公司、雇主(Game Bank 标成 `system`)、产品、地区、工资、最低经济技能(`minSkill`)、能否申请,不能申请时写原因(要去公司所在国家、经济技能不够,或已有工作),可以申请时给出 `esim job apply <招聘>`。筛选:`--country <国家|all>`、`--region`、`--company <ID>`、`--currency <货币代码>`、`--min-wage <金额>`(按显示值写,必须同时给 `--currency`)、`--search <公司名或雇主名>`、`--employer system|players`、`--eligible`(只看我现在能申请的)。排序:`--sort wage|skill|id`,`wage` 默认降序,`skill` 默认升序,`--order asc|desc` 反过来。例如 `esim job list --eligible --sort wage --limit 5` 找工资最高的五个能申请的职位,`esim job list --currency CNY --min-wage 1.50 --employer players` 只看玩家开的、工资不低于 1.50 CNY 的职位。`esim gear` 按部位显示已穿戴的装备和可换上的自有装备。\n- `esim company` 分页显示自有工厂的经营情况和当前工作。`company list` 浏览工厂,`company show` 查详情。`company regions --product minerals` 分页显示各地区的矿物质工厂数和工厂总数。用 `--json` 查看完整产品分布。`company create` 在你当前所在地区建厂,费用为 20 金币。原料厂要求当地有对应的 HIGH 资源。`company create-products` 列出你当前地区可建的产品。`company rename` 改名,`company change` 查费用并办理升级、降级、迁址和转产。工厂只能迁到本人所在地区。挂牌出售或拍卖期间不能执行这些变更。\n- `esim company hire` 发布招聘。`--slots` 填招聘人数,`--wage` 填每位员工每班的工资,使用工厂所在国货币。`company close-offer` 关闭招聘,`company workers` 查员工,`company wage` 改工资,`company fire` 结束雇佣。用 `company stats` 查生产和员工工作。股份公司工厂才使用 `company fund` 补工资币种、`company stock` 调拨库存。用 `GRAIN` 或 `SNACK` 这样的具名产品。药水需要品级,例如 `lucky:q5`。`company sales` 查挂牌,`company sell` 和 `company unsell` 管理自己的挂牌,用 `company buy` 按挂牌报价购买。\n- 工厂命令成交后直接给出结果:`company create` 给出工厂、产品、地区、20 金币费用和工资钱包余额,`next` 指向招聘;`company hire` 给出招聘号、工资、剩余名额、工资钱包余额和全部名额一班的工资,余额不足以覆盖所有名额的一班工资时,个人工厂的 `next` 指向 `esim wallet`,股份公司工厂则指向 `company fund --dry-run`;`company wage` 给出员工的旧→新工资;`company fire` 给出被解雇的员工和员工数的之前→之后;`company change` 给出等级、生产加成、产品、地区和金币余额的之前→之后;`company fund` 给出个人和工厂钱包的之前→之后;`company stock` 给出你和工厂两边库存的之前→之后。`company create`、`change`、`fire`、`fund`、`buy`、`donate`、`accept-donation` 都有 `--dry-run`,形状相同,写“将会”。\n- 工厂命令做不了时,`context` 写出缺口和当时的状态:钱不够给 `need`/`have`/`short` 和付款方(个人或股份公司);库存不够给要调多少、有多少、缺多少和另一边的库存,`next` 是买缺口数量的 `market buy <数量> <原料> --dry-run` 或 `company show`;不是经营者时给出工厂和所有者;迁址地区不对时给出工厂所在地区、你所在地区和目标地区;转产产品无效时给出可选产品和费用。\n- `company stats` 的 `production.material` 给出原料、对应经营仓的库存、前一游戏日的用量,以及按这个用量库存还够几天(`daysCovered`,前一天没有用量时不给)。\n- `company donate <工厂> <股份公司>` 提议把个人工厂捐给股份公司,`company donate <工厂> --withdraw` 撤回提议;接受方股份公司的 CEO 用 `company accept-donation <工厂>` 接受,工厂转入股份公司,不能撤销。\n- `esim contract` 查待处理提议和未清贷款,`contract show` 读提议条款。`contract templates` 和 `contract template save` 管理 JSON 条款模板。用 `contract propose` 向已接受好友发送提议,有效期 1–30 天,默认 2 天。收件人用 `contract accept` 或 `contract reject`,发件人用 `contract cancel`。`contract loans` 查贷款,借款人到期后用 `contract repay` 偿付,提交时核对欠款余额。\n- `esim stock` 查自己的持股、职务和挂单,`stock list` 浏览股份公司,`stock show` 查公司详情。用 `stock create` 在你当前所在地区创办,支付 50 金币费用与 50–5000 金币初始资本。用 `stock holders` 和 `stock roles` 查股东与职务,CEO 用 `stock role` 任免。用 `stock buy`、`stock sell` 下限价单,`stock cancel` 撤回自己的委托,`stock subscribe` 认购当前发行,`stock trades` 查成交。\n- `esim stock contribute` 向公司捐款。`stock proposal` 查议案,`stock propose` 发起议案。议案在 24 小时后到期,`stock vote` 按议案创建时的持股快照表决,`stock retry` 请求继续执行议案。`stock logs` 查公司记录,`stock shouts` 读公司频道,现任股东用 `stock shout` 发言。\n- `esim region npcs [<地区>]` 列出地区里的 NPC 工人:经济技能、雇主和工资。省略地区时查你当前所在地区。NPC 只在所在地区的公司工作,会和玩家竞争同一批职位。\n- `esim stock dividends` 列出你作为股东收到的分红;某家公司发过的分红用 `esim stock logs <公司> --type DIVIDEND_PAID` 查看。\n\n## 建厂流程\n\n1. 用 `esim company regions --product iron` 查目标产品的工厂与资源分布。建原料厂时选有对应 HIGH 资源的地区,资源栏会标出匹配的资源。工厂建在你当前所在地区。若需要移动,先用 `esim travel <地区> --dry-run` 看票和能量,再决定是否前往。见[地图与旅行](map.md)。\n2. 到达后用 `esim company create-products` 核对可建产品。以铁矿厂为例,运行 `esim company create Foundry --product iron --dry-run` 核对产品、地区、20 Gold 费用和余额。决定建厂后,运行 `esim company create Foundry --product iron`,核对创建结果并记下工厂 ID。\n3. 用 `esim company show <工厂>` 核对所有者、付薪账户和库存,再准备一班的工资和配方所需原料。\n - **个人工厂**直接从业主个人钱包扣工资,从个人仓库扣原料,产出也进个人仓库。用 `esim wallet` 和 `esim inventory` 核对工资币与库存。\n - **股份公司工厂**使用工厂工资钱包和工厂仓库。需要补给时,先用 `esim company fund <工厂> <金额> <工资币> --dry-run` 和 `esim company stock <工厂> deposit <数量> <原料> --dry-run` 分别预览充值和原料调拨,再按需执行。产出进入工厂仓,需要取出时用 `company stock` 的 `withdraw` 方向。这两个命令只适用于股份公司工厂。\n4. 用 `esim company hire <工厂> --wage <每班工资> --slots 1` 发一个名额的招聘。工资用工厂所在地区控制国的货币。用 `esim company workers <工厂>` 看是否有人入职和上工。\n5. 等第一班结算后,用 `esim company stats <工厂> --day <游戏日>` 查该日的员工产出,用 `esim company show <工厂>` 核对工资余额、原料消耗和产出库存。个人工厂也可以对照上工前后的个人钱包和库存;若同时有交易,以该班的生产记录核对产量。\n6. 按用途留下产出,或用 `esim market sell <数量> <产品> --price <单价> --country <挂牌国> --dry-run` 预览挂牌,再决定是否卖出。用实际班次成本、实际成交或自用省下的采购成本决定是否增聘或升级。\n\n### 可选:经营评估\n\n例如考虑在某地区生产手枪。用 `esim region npcs <地区>` 看空闲 NPC 和技能,用 `esim job list --region <地区> --sort wage` 比较当地招聘工资,再用 `esim company show <工厂>` 查看竞争工厂的开放名额。核对工资币余额能付几班。用 `esim market list iron --country <市场国>` 估算原料采购成本,用 `esim market list pistol --country <市场国>` 看同类挂牌和自用时的替代采购价。估算时把建厂费和旅费另列,按实际班次记录工资、原料和产量。\n\n可以写下这样的决定:当地有技能合适的空闲工人、工资币够付计划班次,而且保守估算的可成交收入或自用节省能覆盖工资和原料时,先试一班。若只看到挂牌、销量未知,就单算零成交时还能承担的开支;若这笔开支超出预算或用工条件不成立,暂缓。约定在第一班结算后复查,若还没开工,则在下个游戏日重看工人、空缺和价格。\n",
|
|
37061
|
+
"wiki/economy.md": "# 经济\n\n本页介绍钱包、商品、外汇、雇佣和仓库。\n\n- 钱包按币种显示余额。金币和各国货币是独立币种,金额以 0.01 单位计。仓库按品类和品质记录物品数量,可查看食品、武器、机票、礼物和原料等库存。\n- 商品报价按挂牌国和产品查询,用挂牌国货币计价。产品写服务端的产品代码,大小写不限:`snack`、`meal`、`small_drink`、`large_drink`、`pistol`、`rifle`、`ticket_economy`、`ticket_business`、`knife`、`house`、`mansion`、`boat`、`yacht`、`defense_system`、`hospital`,原料 `grain`、`iron`、`oil`、`minerals`、`wood`、`stone`。只有药水有品级,例如 `lucky:q2`。买家必须身处挂牌国当前控制的地区,浏览报价可以在异地进行。\n- 卖出时选择市场、商品、品质、单价和数量。挂单会托管货物。买家选择报价与数量,也可提交最高实付。部分成交后余量继续挂单,撤单退回余货。\n- 增值税(VAT)由买家在商品成交额之外支付。卖家国籍与挂牌国不同时,进口税从卖家收入扣除。两税按挂牌国和商品类别计算,分别向下取整到分,归挂牌国国库。\n- 外汇报价分别指定出售与收取的币种、出售量和汇率。出售的货币在挂牌时托管。买家输入支付额,按报价换算所得货币并向下取整到分。卖家可改剩余部分的汇率或撤单。\n- 公司可以在劳工市场发布招聘条件,包括工资和最低经济技能。接受符合条件的招聘后,每人可保留一份工作。工作按雇佣关系发工资并为公司产出。工资所得税从工资中扣除,按适用税率向下取整到分。\n\n用 `esim --help` 查找钱包、仓库、商品、外汇、公司和招聘命令。\n\n- `esim gift send` 可赠送货币、库存品或一件未穿戴的装备。`--dry-run` 显示持有量,`gift list` 和 `gift show` 查收据。结果不确定时,用错误给出的请求 ID 和原参数重放。\n\n## Auctions\n\n`esim auction` lists auctions with the lot, seller (`Item vendor` for the system seller), public price, bid count and time remaining, plus a detail command for each. Filters combine: `--status`, `--kind equipment|special|company` (goods are not auctioned), then by kind `--quality`, `--slot`, `--stat` (equipment), `--special <item>`, `--company-level`, `--company-product`; and for every kind `--seller system|players`, `--min-price`/`--max-price` in Gold (e.g. `2.50`) and `--no-bids`. Sorting happens on the server: `--sort time|price|bids` with `--order asc|desc` (default time asc, price desc, bids desc), and `--limit` sets how many rows. The first line states the sort and filters in effect and how many of the total are shown, e.g. `sorted: price asc · equipment · quality 5 · 10 of 134`. A filter that does not fit `--kind` is a usage error that lists the flags that kind accepts. `esim auction show <auction>` shows the lot, public price, the minimum next bid, your proxy limit and the three latest bids; `esim auction bids <auction>` pages through every accepted bid (bidder, public price, time), newest first. Use `esim auction bid <auction> <maximum>` to submit a proxy limit in Gold. You cannot bid on your own lot. You can increase an existing limit.\n\nEquipment is not sold on the product market; trade it by auction or by contract.\n\n`esim auction mine` shows three blocks: your open auctions (whether you can still cancel), your open bids (your maximum, the public price, whether you lead and, when outbid, the minimum to retake the lead with the bid command), and the assets you can list, each with its `esim auction sell … --dry-run` command. `--bids` and `--sold` show one full list with paging. `esim auction sell` without an asset lists those assets as candidates. Use `esim auction sell item|equipment|company <asset>` to list one lot; `item` takes a special item only, and goods are sold on the market (`esim market sell`). Use `--qty` for a special item stack. The start price defaults to 1 Gold and the duration to 24 hours. `--start` changes the price and `--hours` accepts 6, 12, 24, 36, or 48. The listing fee is 1% of the start price, rounded up to a cent. The settlement fee is 2%. Both `bid` and `sell` accept `--dry-run`. If a check fails, the quote gives the reason. Use `esim auction cancel <auction>` before the first bid. `esim auction alert <auction> on|off` controls the notification sent ten minutes before closing.\n\n## 跨国采购\n\n1. 用 `esim market list snack --country China` 查看中国的零食报价,记下报价 ID 和支付币种 CNY。指定商品后省略 `--country`,或传 `--country all`,会浏览所有国家;也可按国家名称、代码或 ID 筛选。浏览时可以身处任何地区。\n2. 用 `esim exchange list CNY --pay GOLD` 查用金币换 CNY 的报价,再用 `esim exchange buy <报价ID> <支付金额> --dry-run` 核对所付金币和最低可收 CNY。支付币种由报价决定;有其他币种的报价时,可用 `--pay <币种>` 找它。外汇兑换可以在旅行前完成。\n3. 购买前用 `esim country regions China` 找中国控制的地区,再用 `esim travel <地区> --dry-run` 预览行程。抵达后用 `esim market buy 1 snack --country China --offer <报价ID> --dry-run` 检查含 VAT 的总价。任何国籍都适用所在地条件。CNY 不足时,预览列出所需、持有与缺口;`next` 给出外汇列表,有一笔可负担且能补齐缺口的金币报价时也给出兑换预览。\n\n## 经济命令\n\n- `esim market buy --offer` 按指定报价购买。用 `market list` 取得报价 ID。购买预览显示报价、税、支出上限和预计剩余余额,余额不足时列出差额。\n- `esim exchange` 查自己的外汇挂单。`esim exchange list` 浏览货币对,默认买本国货币、付金币;`esim exchange list GOLD` 买金币,默认用本国货币付。`exchange sell` 挂单,`exchange update` 改剩余挂单的汇率,`exchange cancel` 撤单。`exchange buy` 输入支付金额,以当前汇率计算最低可收金额。\n- 交易命令成交后直接给出结果,不必再查一次:`market buy` 给出买到的商品、品质、数量、单价、小计、增值税、含税总价、卖家和报价余量;`market sell` 给出挂单号和挂单内容;`exchange buy` 给出付出、收到、汇率;`stock buy`/`sell` 给出委托号、已成交与剩余;`auction bid` 给出你的委托上限、公开价、是否领先和为此冻结的金币。`changed` 写出余额、库存或持股的之前→之后。加 `--dry-run` 时形状相同,写“将会”。\n- 做不了时,错误的 `context` 写出要多少、有多少、缺多少(`need`/`have`/`short`),并附当前最低价(商品 `lowestPrice`、外汇 `lowestRate`、股票 `lowestAsk`/`highestBid`、拍卖公开价)或可选报价;`next` 是可以直接运行的命令。\n- `esim exchange buy --dry-run` 报告余额不足时的差额。`esim job list` 列出就业市场的职位,默认是你所在地区控制国的市场,按发布先后(`id` 降序)排。第一行写实际生效的条件和数量(`sorted wage desc · China · eligible · 5 of 23`,没有总数时写 `5 shown`)。每行给出公司、雇主(Game Bank 标成 `system`)、产品、地区、工资、最低经济技能(`minSkill`)、能否申请,不能申请时写原因(要去公司所在国家、经济技能不够,或已有工作),可以申请时给出 `esim job apply <招聘>`。筛选:`--country <国家|all>`、`--region`、`--company <ID>`、`--currency <货币代码>`、`--min-wage <金额>`(按显示值写,必须同时给 `--currency`)、`--search <公司名或雇主名>`、`--employer system|players`、`--eligible`(只看我现在能申请的)。排序:`--sort wage|skill|id`,`wage` 默认降序,`skill` 默认升序,`--order asc|desc` 反过来。例如 `esim job list --eligible --sort wage --limit 5` 找工资最高的五个能申请的职位,`esim job list --currency CNY --min-wage 1.50 --employer players` 只看玩家开的、工资不低于 1.50 CNY 的职位。`esim gear` 按部位显示已穿戴的装备和可换上的自有装备。\n- `esim company` 分页显示自有工厂的经营情况和当前工作。`company list` 浏览工厂,`company show` 查详情。`company regions --product minerals` 分页显示各地区的矿物质工厂数和工厂总数。用 `--json` 查看完整产品分布。`company create` 在你当前所在地区建厂,费用为 20 金币。原料厂要求当地有对应的 HIGH 资源。`company create-products` 列出你当前地区可建的产品。`company rename` 改名,`company change` 查费用并办理升级、降级、迁址和转产。工厂只能迁到本人所在地区。挂牌出售或拍卖期间不能执行这些变更。\n- `esim company hire` 发布招聘。`--slots` 填招聘人数,`--wage` 填每位员工每班的工资,使用工厂所在国货币。`company close-offer` 关闭招聘,`company workers` 查员工,`company wage` 改工资,`company fire` 结束雇佣。用 `company stats` 查生产和员工工作。股份公司工厂才使用 `company fund` 补工资币种、`company stock` 调拨库存。用 `GRAIN` 或 `SNACK` 这样的具名产品。药水需要品级,例如 `lucky:q5`。`company sales` 查挂牌,`company sell` 和 `company unsell` 管理自己的挂牌,用 `company buy` 按挂牌报价购买。\n- 工厂命令成交后直接给出结果:`company create` 给出工厂、产品、地区、20 金币费用和工资钱包余额,`next` 指向招聘;`company hire` 给出招聘号、工资、剩余名额、工资钱包余额和全部名额一班的工资,余额不足以覆盖所有名额的一班工资时,个人工厂的 `next` 指向 `esim wallet`,股份公司工厂则指向 `company fund --dry-run`;`company wage` 给出员工的旧→新工资;`company fire` 给出被解雇的员工和员工数的之前→之后;`company change` 给出等级、生产加成、产品、地区和金币余额的之前→之后;`company fund` 给出个人和工厂钱包的之前→之后;`company stock` 给出你和工厂两边库存的之前→之后。`company create`、`change`、`fire`、`fund`、`buy`、`donate`、`accept-donation` 都有 `--dry-run`,形状相同,写“将会”。\n- 工厂命令做不了时,`context` 写出缺口和当时的状态:钱不够给 `need`/`have`/`short` 和付款方(个人或股份公司);库存不够给要调多少、有多少、缺多少和另一边的库存,`next` 是买缺口数量的 `market buy <数量> <原料> --dry-run` 或 `company show`;不是经营者时给出工厂和所有者;迁址地区不对时给出工厂所在地区、你所在地区和目标地区;转产产品无效时给出可选产品和费用。\n- `company stats` 的 `production.material` 给出原料、对应经营仓的库存、前一游戏日的用量,以及按这个用量库存还够几天(`daysCovered`,前一天没有用量时不给)。\n- `company donate <工厂> <股份公司>` 提议把个人工厂捐给股份公司,`company donate <工厂> --withdraw` 撤回提议;接受方股份公司的 CEO 用 `company accept-donation <工厂>` 接受,工厂转入股份公司,不能撤销。\n- `esim contract` 查待处理提议和未清贷款,`contract show` 读提议条款。`contract templates` 和 `contract template save` 管理 JSON 条款模板。用 `contract propose` 向已接受好友发送提议,有效期 1–30 天,默认 2 天。收件人用 `contract accept` 或 `contract reject`,发件人用 `contract cancel`。`contract loans` 查贷款,借款人到期后用 `contract repay` 偿付,提交时核对欠款余额。\n- `esim stock` 查自己的持股、职务和挂单,`stock list` 浏览股份公司,`stock show` 查公司详情。用 `stock create` 在你当前所在地区创办,支付 50 金币费用与 50–5000 金币初始资本。用 `stock holders` 和 `stock roles` 查股东与职务,CEO 用 `stock role` 任免。用 `stock buy`、`stock sell` 下限价单,`stock cancel` 撤回自己的委托,`stock subscribe` 认购当前发行,`stock trades` 查成交。\n- `esim stock contribute` 向公司捐款。`stock proposal` 查议案,`stock propose` 发起议案。议案在 24 小时后到期,`stock vote` 按议案创建时的持股快照表决,`stock retry` 请求继续执行议案。`stock logs` 查公司记录,`stock shouts` 读公司频道,现任股东用 `stock shout` 发言。\n- `esim region npcs [<地区>]` 列出地区里的 NPC 工人:经济技能、雇主和工资。省略地区时查你当前所在地区。NPC 只在所在地区的公司工作,会和玩家竞争同一批职位。\n- `esim stock dividends` 列出你作为股东收到的分红;某家公司发过的分红用 `esim stock logs <公司> --type DIVIDEND_PAID` 查看。\n\n## 建厂流程\n\n1. 用 `esim company regions --product iron` 查目标产品的工厂与资源分布。建原料厂时选有对应 HIGH 资源的地区,资源栏会标出匹配的资源。工厂建在你当前所在地区。若需要移动,先用 `esim travel <地区> --dry-run` 看票和能量,再决定是否前往。见[地图与旅行](map.md)。\n2. 到达后用 `esim company create-products` 核对可建产品。以铁矿厂为例,运行 `esim company create Foundry --product iron --dry-run` 核对产品、地区、20 Gold 费用和余额。决定建厂后,运行 `esim company create Foundry --product iron`,核对创建结果并记下工厂 ID。\n3. 用 `esim company show <工厂>` 核对所有者、付薪账户和库存,再准备一班的工资和配方所需原料。\n - **个人工厂**直接从业主个人钱包扣工资,从个人仓库扣原料,产出也进个人仓库。用 `esim wallet` 和 `esim inventory` 核对工资币与库存。\n - **股份公司工厂**使用工厂工资钱包和工厂仓库。需要补给时,先用 `esim company fund <工厂> <金额> <工资币> --dry-run` 和 `esim company stock <工厂> deposit <数量> <原料> --dry-run` 分别预览充值和原料调拨,再按需执行。产出进入工厂仓,需要取出时用 `company stock` 的 `withdraw` 方向。这两个命令只适用于股份公司工厂。\n4. 用 `esim company hire <工厂> --wage <每班工资> --slots 1` 发一个名额的招聘。工资用工厂所在地区控制国的货币。用 `esim company workers <工厂>` 看是否有人入职和上工。\n5. 等第一班结算后,用 `esim company stats <工厂> --day <游戏日>` 查该日的员工产出,用 `esim company show <工厂>` 核对工资余额、原料消耗和产出库存。个人工厂也可以对照上工前后的个人钱包和库存;若同时有交易,以该班的生产记录核对产量。\n6. 按用途留下产出,或用 `esim market sell <数量> <产品> --price <单价> --country <挂牌国> --dry-run` 预览挂牌,再决定是否卖出。用实际班次成本、实际成交或自用省下的采购成本决定是否增聘或升级。\n\n### 可选:经营评估\n\n例如考虑在某地区生产手枪。用 `esim region npcs <地区>` 看空闲 NPC 和技能,用 `esim job list --region <地区> --sort wage` 比较当地招聘工资,再用 `esim company show <工厂>` 查看竞争工厂的开放名额。核对工资币余额能付几班。用 `esim market list iron --country <市场国>` 估算原料采购成本,用 `esim market list pistol --country <市场国>` 看同类挂牌和自用时的替代采购价。估算时把建厂费和旅费另列,按实际班次记录工资、原料和产量。\n\n可以写下这样的决定:当地有技能合适的空闲工人、工资币够付计划班次,而且保守估算的可成交收入或自用节省能覆盖工资和原料时,先试一班。若只看到挂牌、销量未知,就单算零成交时还能承担的开支;若这笔开支超出预算或用工条件不成立,暂缓。约定在第一班结算后复查,若还没开工,则在下个游戏日重看工人、空缺和价格。\n",
|
|
37042
37062
|
"wiki/feedback.md": "# 问题反馈\n\n本页介绍怎样向游戏运营报告程序错误或算错的数值,以及被接受后得到的测试员勋章。\n\n- 怀疑出了 bug 或数值不对时,先查本目录 `/skills/esim/wiki/` 下对应的规则说明。只有确认和说明不一致,才提交反馈。\n- 种类:`bug` 是程序错误(报错、页面坏了、命令失败、显示不对);`numbers` 是数值或规则算错(伤害、价格、税、产出、奖励等和规则说明不一致);`other` 是其他意见。\n- 标题 1–100 个字符,正文 1–4000 个字符的纯文本,相关信息(`--context`)最多 1000 个字符。正文写清三件事:做了什么(命令或页面)、期望的结果、实际的结果。相关的战斗、公司、拍卖等 ID 放进 `--context`。\n- 每个公民每个游戏日最多提交 5 条,超出后要等下一个游戏日。同一标题和正文再次提交时返回原来那条,不会新建。\n- 运营处理后,反馈变为 `accepted`(确认是问题)、`rejected`(不是问题,例如和原版规则一致)或 `duplicate`(与另一条重复,给出那条的反馈号),并附回复;你会收到一条通知。关闭后不再改变。\n- 每条被接受的反馈奖励一枚测试员勋章(Tester Medal)和 5 Gold,按勋章通用规则发放。拥有测试员勋章解锁成就 Tester,收集 7 枚解锁成就 Bug trainer。被驳回或判为重复的不发勋章。\n- 反馈只有你自己能看到,不公开;公民档案照常显示测试员勋章数量。\n\n## CLI\n\n- `esim feedback` 列出你的反馈(新的在前),`--status open|accepted|rejected|duplicate` 按状态筛选。\n- `esim feedback submit --kind bug|numbers|other --title <标题> --body @report.txt [--context <相关 ID>]` 提交;`--body -` 从标准输入读正文。\n- `esim feedback show <反馈号>` 查看全文、状态和运营的回复。\n",
|
|
37043
37063
|
"wiki/groups.md": "# 组织与好友\n\n本页介绍军团、政党和好友关系。\n\n- 未入团的公民可申请本国军团,由团长审批。团长可批准或拒绝申请,批准也受军团容量限制。成员可退出军团。团长可向合资格成员移交领导权,并可指定成员管理军团公司。\n- 军团成员可捐献食物和武器。团长可设置日包及工作条件,也可把团库物资分发给成员。有指定工作条件时,成员须完成当日指定公司的工作才能领取日包。同一公民一个游戏日最多领一次,转团也沿用当天的领取记录。\n- 军团战令指定战役和阵营。团长设置或清除战令,成员可查看。在指定战役为指定阵营造成伤害时,军团级别影响战令的伤害加成。\n- 新加入政党的公民是学徒。党内有学徒、正式成员、委员会成员和主席。主席及委员会成员按各自权限晋升或移除成员。正式成员和委员会成员可在符合等级及党籍条件时参加本党的主席选举。\n- 向其他公民发送好友申请,对方可以接受或拒绝。接受后双方互为好友,任一方都可删除关系。删除或拒绝后可以重新申请。\n\n用 `esim --help` 查找军团、补给、战令、党务和好友命令。\n\n## 军团 CLI\n\n- `esim unit` 查看身份、待审申请、军团资金、日配给和战令。用 `esim unit list --country <国家>` 浏览目录,`esim unit show <军团>` 查看招募信息,`esim unit apply <军团> --message <留言>` 提交申请。同国且无军团的公民可申请。查看名单用 `esim unit members`,退团用 `esim unit leave`,团长须先用 `esim unit leader <公民>` 交接。\n- `esim unit create <名字> --dry-run` 查看建团资格和 50 金的费用。团长用 `esim unit upgrade --dry-run` 查看升一级的费用,用 `esim unit expand --dry-run` 查看加一个成员名额的费用;预览与实际执行给出同样的变化(等级、名额、战令伤害加成、金币之前→之后),钱不够时给出需要、持有和缺口。用 `esim unit profile --body @file` 修改简介,用 `esim unit recruit <招募信息>` 更新招募信息。用 `esim unit applications` 查申请,`esim unit accept <公民>` 或 `esim unit reject <公民>` 审批,结果给出申请人、审批后的成员数与容量和剩余待审数;军团已满时给出成员数、容量和扩容费用。\n- 团长用 `esim unit order <战斗> --side defend` 设置战令,省略阵营默认为防守。结果给出战役、地区、攻守双方、所选阵营、本轮截止时间和成员的战令伤害加成。用 `esim unit order clear` 清除。成员用 `esim unit company add <公司>` 转入自己的公司,团长用 `esim unit company manager <公民> on|off` 任免公司经理。\n- `esim unit funds` 查看资金与捐款。团员用 `esim unit donate <金额> <货币代码>` 捐款,有分发权限时可用 `esim unit pay <公民>[,<公民>…] <金额> <货币代码>` 按每人金额分发。结果给出该币种军团余额和个人余额的之前→之后;余额不足时给出需要、持有和缺口。\n- `esim unit supply` 查看配给和领取状态,`esim unit supply claim` 领取当日配给,`esim unit supply donate <数量> <种类>:<品质>` 捐赠。团长用 `esim unit supply policy <种类>:<品质>=<数量>…` 设定配给,用 `esim unit supply give <公民>[,<公民>…] <数量> <种类>:<品质>` 指定发放。发放和捐赠给出团库存或个人库存的之前→之后;库存不足时给出需要、持有和缺口。不能领取时给出当日配给和指定工作的公司。同一次资金或定向补给转账可以用原 `--request-id` 重放。\n\n- `esim friend` 查看好友和双向待审申请。用 `friend add` 发送申请,用 `friend accept` 或 `friend decline` 处理收到的申请,用 `friend remove` 删除已接受的好友关系。\n- `esim invite` 给出你的邀请链接、邀请人数、到 10 级的人数、因此获得的金币和护甲奖励,以及受邀者列表(`--sort registered|name|xp|gold|country`)。\n",
|
|
37044
37064
|
"wiki/items.md": `# 装备与物品
|
|
@@ -37123,7 +37143,7 @@ function saveCredentials(store, credentials) {
|
|
|
37123
37143
|
}
|
|
37124
37144
|
|
|
37125
37145
|
// version.ts
|
|
37126
|
-
var version2 = "2026.1201.
|
|
37146
|
+
var version2 = "2026.1201.186";
|
|
37127
37147
|
var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
|
|
37128
37148
|
var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
|
|
37129
37149
|
var releaseVersion = /^\d+\.\d+\.\d+$/;
|