Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c923a818d |
@@ -20,7 +20,7 @@ The entire Skill invocation must remain read-only:
|
||||
- Do not fix findings, advance phase, or update tasks, state, verification reports, or review records.
|
||||
- Do not call this review a Verify pass or treat “no findings” as proof that tests passed.
|
||||
|
||||
Only run commands needed to read files, query state, and inspect Git diffs, plus the focused browser check in the [battle UI review checklist](../../../docs/reviews/mengsan-battle-ui.md). Run that check without screenshot output unless a temporary directory outside the repository has been designated for review evidence. All other checks that execute project code, install dependencies, or produce files are outside this entry's scope.
|
||||
Only run commands needed to read files, query state, and inspect Git diffs. Checks that might execute project code, install dependencies, or produce files are outside this entry's scope.
|
||||
|
||||
## 1. Locate the project and current change
|
||||
|
||||
@@ -80,8 +80,6 @@ If the available evidence still cannot establish a reliable, verifiable baseline
|
||||
|
||||
## 4. Perform the review
|
||||
|
||||
Apply the battle UI review checklist and record the results by scenario name in the evidence status. Reuse evidence bound to the current changes when available.
|
||||
|
||||
Review the requirements, tasks, and current diff, focusing only on:
|
||||
|
||||
- Implementation correctness and clear logic errors.
|
||||
@@ -112,7 +110,7 @@ Evidence: The specific relationship to the diff, task, spec, or verification rec
|
||||
Then include:
|
||||
|
||||
- `Review scope`: workflow, change, phase, baseline, included diffs, and any scope limitations.
|
||||
- `Evidence status`: report each battle UI scenario by its name in the checklist, together with the other test, build, and verification records inspected and whether they still apply to the current changes.
|
||||
- `Evidence status`: the test, build, and verification records inspected and whether they still apply to the current changes. Do not rerun tests.
|
||||
- `Open questions`: only questions that actually prevent a judgment.
|
||||
- `Conclusion`: the finding count, or an explicit “No concrete findings.”
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
throw "extension.js 的版本号必须为 $version"
|
||||
}
|
||||
|
||||
# The updater reads manifests from raw tag paths.
|
||||
# The updater reads raw tag paths, not release attachments.
|
||||
# Never generate new manifests after the release tag already exists.
|
||||
python (Join-Path $stage 'tools/verify_manifest.py') `
|
||||
--root $stage `
|
||||
@@ -109,11 +109,6 @@ jobs:
|
||||
'@ | python - $stage $package
|
||||
if ($LASTEXITCODE -ne 0) { throw '打包失败' }
|
||||
|
||||
$partsDir = Join-Path $env:RUNNER_TEMP "mengsan-parts-$tag"
|
||||
python (Join-Path $stage 'tools/build_mengsan_archives.py') `
|
||||
--root $stage --out-dir $partsDir --tag $tag
|
||||
if ($LASTEXITCODE -ne 0) { throw '梦三分包失败' }
|
||||
|
||||
Write-Host "版本:$version"
|
||||
Write-Host "文件数:$($manifest.file_count)"
|
||||
Write-Host "安装包:$package"
|
||||
@@ -157,18 +152,10 @@ jobs:
|
||||
$releaseFiles = @($manifestPath)
|
||||
$releaseFiles += $moduleManifests
|
||||
$releaseFiles += $package
|
||||
$partsDir = Join-Path $env:RUNNER_TEMP "mengsan-parts-$tag"
|
||||
$releaseFiles += @(Get-ChildItem -LiteralPath $partsDir `
|
||||
-Filter '*.zip' -File | Sort-Object Name | ForEach-Object { $_.FullName })
|
||||
foreach ($file in $releaseFiles) {
|
||||
$attachment = if ($file -like '*.zip') {
|
||||
"attachment=@$file;type=application/zip"
|
||||
} else {
|
||||
"attachment=@$file"
|
||||
}
|
||||
curl.exe --fail --silent --show-error `
|
||||
-H "Authorization: token $env:GITEA_TOKEN" `
|
||||
-F $attachment `
|
||||
-F "attachment=@$file" `
|
||||
$assetApi | Out-Null
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "上传附件失败:$file"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
name: Release extension
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "**"
|
||||
paths:
|
||||
- "extension.js"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "版本号,例如 2.0.1.2 或 2.0.1.2-rc.1"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -17,33 +17,23 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||
runs-on: windows-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
env:
|
||||
RELEASE_VERSION: ${{ inputs.version }}
|
||||
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
|
||||
BEFORE_SHA: ${{ github.event.before }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
steps:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.sha }}
|
||||
ref: ${{ github.event.repository.default_branch }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Read current version and detect change
|
||||
id: version
|
||||
run: |
|
||||
./tools/resolve_release_version.ps1 `
|
||||
-Root $env:GITHUB_WORKSPACE `
|
||||
-EventName $env:GITHUB_EVENT_NAME `
|
||||
-PreviousRef $env:BEFORE_SHA
|
||||
|
||||
- name: Generate manifest and create tag
|
||||
if: steps.version.outputs.should_release == 'true'
|
||||
run: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$version = $env:RELEASE_VERSION
|
||||
@@ -128,7 +118,6 @@ jobs:
|
||||
Write-Host "已创建包含清单的标签:$tag"
|
||||
|
||||
- name: Build ZIP from tag
|
||||
if: steps.version.outputs.should_release == 'true'
|
||||
run: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$version = $env:RELEASE_VERSION
|
||||
@@ -185,17 +174,11 @@ jobs:
|
||||
'@ | python - $stage $package
|
||||
if ($LASTEXITCODE -ne 0) { throw '打包失败' }
|
||||
|
||||
$partsDir = Join-Path $env:RUNNER_TEMP "mengsan-parts-$tag"
|
||||
python (Join-Path $stage 'tools/build_mengsan_archives.py') `
|
||||
--root $stage --out-dir $partsDir --tag $tag
|
||||
if ($LASTEXITCODE -ne 0) { throw '梦三分包失败' }
|
||||
|
||||
Write-Host "版本:$version"
|
||||
Write-Host "文件数:$($manifest.file_count)"
|
||||
Write-Host "安装包:$package"
|
||||
|
||||
- name: Publish GitHub Release
|
||||
if: steps.version.outputs.should_release == 'true'
|
||||
run: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
if (!$env:GITHUB_TOKEN) {
|
||||
@@ -227,10 +210,7 @@ jobs:
|
||||
-ContentType 'application/json' `
|
||||
-Body $body
|
||||
|
||||
$partsDir = Join-Path $env:RUNNER_TEMP "mengsan-parts-$tag"
|
||||
$partFiles = @(Get-ChildItem -LiteralPath $partsDir `
|
||||
-Filter '*.zip' -File | Sort-Object Name | ForEach-Object { $_.FullName })
|
||||
foreach ($file in (@($manifestPath, $package) + $partFiles)) {
|
||||
foreach ($file in @($manifestPath, $package)) {
|
||||
$name = [uri]::EscapeDataString([IO.Path]::GetFileName($file))
|
||||
$uploadUri = $release.upload_url.Split('{')[0] + "?name=$name"
|
||||
$contentType = if ($file -like '*.zip') {
|
||||
|
||||
@@ -11,17 +11,11 @@ tools/*.mjs
|
||||
/mengsan/.planning/
|
||||
/mengsan/verification
|
||||
/mengsan/assets/sts2/
|
||||
/mengsan/tools/.sts2-source
|
||||
|
||||
/Slay the Spire 2
|
||||
|
||||
*.mjs
|
||||
*.cjs
|
||||
!/tools/test_mengsan_zip_install.mjs
|
||||
!/mengsan/tools/test-hud-status.cjs
|
||||
!/mengsan/tools/test-battle-hud.cjs
|
||||
!/mengsan/tools/test-journey-ui-zoom.cjs
|
||||
!/mengsan/tools/import-status-icons.cjs
|
||||
|
||||
/.update_tmp/
|
||||
/.planning/
|
||||
@@ -52,5 +46,3 @@ Desktop.ini
|
||||
/.comet/*
|
||||
!/.comet/config.yaml
|
||||
# <<< Comet managed project state <<<
|
||||
# Added by code-review-graph
|
||||
.code-review-graph/
|
||||
|
||||
@@ -17,53 +17,3 @@ In this repository, before starting work that may need code changes or investiga
|
||||
- If configuration or state is invalid and `nextCommand` is absent, stop and report the reason; do not guess another workflow.
|
||||
- Never attach unrelated work merely because an active change exists. The Native entry inspects uncommitted work; the probe does not attribute it automatically.
|
||||
</comet-ambient-resume>
|
||||
|
||||
<!-- code-review-graph MCP tools -->
|
||||
## MCP Tools: code-review-graph
|
||||
|
||||
**This project has a knowledge graph. Start with the code-review-graph
|
||||
MCP tools to narrow scope, then read the source.** The graph is cheaper than scanning files and
|
||||
gives you structural context (callers, dependents, test coverage) that file search cannot.
|
||||
|
||||
### When to use graph tools FIRST
|
||||
|
||||
- **Exploring code**: `semantic_search_nodes_tool` or `query_graph_tool` instead of Grep
|
||||
- **Understanding impact**: `get_impact_radius_tool` instead of manually tracing imports
|
||||
- **Code review**: `detect_changes_tool` + `get_review_context_tool` instead of reading entire files
|
||||
- **Finding relationships**: `query_graph_tool` with callers_of/callees_of/imports_of/tests_for
|
||||
- **Architecture questions**: `get_architecture_overview_tool` + `list_communities_tool`
|
||||
|
||||
### Verify in the source
|
||||
|
||||
- Narrow scope with the graph, then read the source. Do not change code from graph output alone.
|
||||
- For any non-trivial change, read the implementation and the relevant tests before concluding.
|
||||
- Verify the exact source when touching behavior, database logic, migrations, retries, fallbacks,
|
||||
recovery, or compatibility code.
|
||||
- When the graph and the source disagree, the source wins. The graph may be stale or may not
|
||||
model that relationship.
|
||||
- An empty graph result can mean "not indexed" or "not statically visible", not "does not exist".
|
||||
|
||||
### Key Tools
|
||||
|
||||
| Tool | Use when |
|
||||
| ------ | ---------- |
|
||||
| `detect_changes_tool` | Reviewing code changes — gives risk-scored analysis |
|
||||
| `get_review_context_tool` | Need source snippets for review — token-efficient |
|
||||
| `get_impact_radius_tool` | Understanding blast radius of a change |
|
||||
| `get_affected_flows_tool` | Finding which execution paths are impacted |
|
||||
| `query_graph_tool` | Tracing callers, callees, imports, tests, dependencies |
|
||||
| `semantic_search_nodes_tool` | Finding functions/classes by name or keyword |
|
||||
| `get_architecture_overview_tool` | Understanding high-level codebase structure |
|
||||
| `refactor_tool` | Planning renames, finding dead code |
|
||||
|
||||
### Workflow
|
||||
|
||||
1. The graph auto-updates on file changes (via hooks).
|
||||
2. Use `detect_changes_tool` for code review.
|
||||
3. Use `get_affected_flows_tool` to understand impact.
|
||||
4. Use `query_graph_tool` pattern="tests_for" to check coverage.
|
||||
<!-- /code-review-graph MCP tools -->
|
||||
|
||||
## 梦三战斗 UI 审查
|
||||
|
||||
每次 review 都按 [梦三战斗 UI 回归清单](docs/reviews/mengsan-battle-ui.md) 逐项核验,并记录结果和验证环境。涉及战斗 UI 的改动须附本轮渲染截图,并单独记录 Android 实机验证状态。
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"version": "2.0.2.3-rc.11",
|
||||
"generated_at": "2026-11-24T06:10:42.618424+00:00",
|
||||
"version": "2.0.2.3-rc.5",
|
||||
"generated_at": "2026-10-14T10:45:26.004470+00:00",
|
||||
"algorithm": "sha256",
|
||||
"update_channels": true,
|
||||
"file_count": 288,
|
||||
"size_bytes": 48059903,
|
||||
"folder_sha256": "d9c01ad655f662ee47b2c946e5d5d03e2531059eac1e5d69bace975366ab9a8d",
|
||||
"size_bytes": 48045889,
|
||||
"folder_sha256": "4b5186b4b1631ac4010776aacf6fd0366b5a7ae5a650e8c57757b073a4592cd7",
|
||||
"core": [
|
||||
"extension.js",
|
||||
"menu.js",
|
||||
@@ -438,8 +438,8 @@
|
||||
"sha256": "0907c22921f33d3180378dfcec4cdea793227d325c281d5f3a3f698c83b42b85"
|
||||
},
|
||||
"extension.js": {
|
||||
"size": 15732,
|
||||
"sha256": "01bedc58c3acb22f3628ce8cad93795dd6e51488f5bbe93121934f48e4a9a384"
|
||||
"size": 15731,
|
||||
"sha256": "8fc4b551aa0fa833cc7412869f5ab0677679c70780153f1b06d8c0969d613e7a"
|
||||
},
|
||||
"function.js": {
|
||||
"size": 38588,
|
||||
@@ -1350,8 +1350,8 @@
|
||||
"sha256": "bd89818b8f535c19b51f107ca2c75dec669852e4a604ed55f6fa945ecec8e6d6"
|
||||
},
|
||||
"update.js": {
|
||||
"size": 91467,
|
||||
"sha256": "c8210c6cba50deff3442ec5c57eff869a703cdbee9aa945df788a1138e909f8b"
|
||||
"size": 77454,
|
||||
"sha256": "f2693e030c0008c788c3e1785e0d6b41dc1df1251624efc003ff0b51d4c2a9f0"
|
||||
},
|
||||
"update.txt": {
|
||||
"size": 4962,
|
||||
@@ -1695,8 +1695,8 @@
|
||||
},
|
||||
"extension.js": {
|
||||
"type": "file",
|
||||
"size": 15732,
|
||||
"sha256": "01bedc58c3acb22f3628ce8cad93795dd6e51488f5bbe93121934f48e4a9a384"
|
||||
"size": 15731,
|
||||
"sha256": "8fc4b551aa0fa833cc7412869f5ab0677679c70780153f1b06d8c0969d613e7a"
|
||||
},
|
||||
"function.js": {
|
||||
"type": "file",
|
||||
@@ -2965,8 +2965,8 @@
|
||||
},
|
||||
"update.js": {
|
||||
"type": "file",
|
||||
"size": 91467,
|
||||
"sha256": "c8210c6cba50deff3442ec5c57eff869a703cdbee9aa945df788a1138e909f8b"
|
||||
"size": 77454,
|
||||
"sha256": "f2693e030c0008c788c3e1785e0d6b41dc1df1251624efc003ff0b51d4c2a9f0"
|
||||
},
|
||||
"update.txt": {
|
||||
"type": "file",
|
||||
@@ -3115,8 +3115,8 @@
|
||||
"title": "梦三模式",
|
||||
"entry": "mengsan/register.js",
|
||||
"manifest": "dist/modules/mengsan.json",
|
||||
"file_count": 846,
|
||||
"size_bytes": 150439572,
|
||||
"file_count": 764,
|
||||
"size_bytes": 147695652,
|
||||
"legacy_manifest": "dist/modules/mengsan.legacy.json"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "2.0.2.3-rc.11",
|
||||
"version": "2.0.2.3-rc.5",
|
||||
"module_id": "mengsan",
|
||||
"snapshot": "legacy",
|
||||
"files": [
|
||||
@@ -249,7 +249,6 @@
|
||||
"mengsan/assets/portraits/bygone-effigy-original.png",
|
||||
"mengsan/assets/portraits/byrdonis-forest-portrait.png",
|
||||
"mengsan/assets/portraits/byrdonis-original.png",
|
||||
"mengsan/assets/portraits/caocao-portrait.jpg",
|
||||
"mengsan/assets/portraits/ceremonial-beast-forest-portrait.png",
|
||||
"mengsan/assets/portraits/ceremonial-beast-original.png",
|
||||
"mengsan/assets/portraits/cubex-construct-forest-portrait.png",
|
||||
@@ -291,7 +290,6 @@
|
||||
"mengsan/assets/portraits/slithering-strangler-original.png",
|
||||
"mengsan/assets/portraits/snapping-jaxfruit-forest-portrait.png",
|
||||
"mengsan/assets/portraits/snapping-jaxfruit-original.png",
|
||||
"mengsan/assets/portraits/sunquan-portrait.jpg",
|
||||
"mengsan/assets/portraits/sushuang-zhangshiping.png",
|
||||
"mengsan/assets/portraits/twig-slime-m-forest-portrait.png",
|
||||
"mengsan/assets/portraits/twig-slime-m-original.png",
|
||||
@@ -603,68 +601,6 @@
|
||||
"mengsan/assets/relics/wongo_customer_appreciation_badge.png",
|
||||
"mengsan/assets/relics/wongos_mystery_ticket.png",
|
||||
"mengsan/assets/relics/yummy_cookie.png",
|
||||
"mengsan/assets/scenes/pinefire-camp.webp",
|
||||
"mengsan/assets/status/aggression_power.png",
|
||||
"mengsan/assets/status/artifact_power.png",
|
||||
"mengsan/assets/status/automation_power.png",
|
||||
"mengsan/assets/status/barricade_power.png",
|
||||
"mengsan/assets/status/beacon_of_hope_power.png",
|
||||
"mengsan/assets/status/block_next_turn_power.png",
|
||||
"mengsan/assets/status/calamity_power.png",
|
||||
"mengsan/assets/status/colossus_power.png",
|
||||
"mengsan/assets/status/constrict_power.png",
|
||||
"mengsan/assets/status/corruption_power.png",
|
||||
"mengsan/assets/status/crimson_mantle_power.png",
|
||||
"mengsan/assets/status/curious_power.png",
|
||||
"mengsan/assets/status/dark_embrace_power.png",
|
||||
"mengsan/assets/status/demesne_power.png",
|
||||
"mengsan/assets/status/demon_form_power.png",
|
||||
"mengsan/assets/status/dexterity_power.png",
|
||||
"mengsan/assets/status/draw_cards_next_turn_power.png",
|
||||
"mengsan/assets/status/energy_next_turn_power.png",
|
||||
"mengsan/assets/status/entropy_power.png",
|
||||
"mengsan/assets/status/fasten_power.png",
|
||||
"mengsan/assets/status/feel_no_pain_power.png",
|
||||
"mengsan/assets/status/flame_barrier_power.png",
|
||||
"mengsan/assets/status/frail_power.png",
|
||||
"mengsan/assets/status/free_attack_power.png",
|
||||
"mengsan/assets/status/hellraiser_power.png",
|
||||
"mengsan/assets/status/inferno_power.png",
|
||||
"mengsan/assets/status/infested_power.png",
|
||||
"mengsan/assets/status/intangible_power.png",
|
||||
"mengsan/assets/status/juggernaut_power.png",
|
||||
"mengsan/assets/status/juggling_power.png",
|
||||
"mengsan/assets/status/manifest.json",
|
||||
"mengsan/assets/status/mayhem_power.png",
|
||||
"mengsan/assets/status/no_block_power.png",
|
||||
"mengsan/assets/status/no_draw_power.png",
|
||||
"mengsan/assets/status/no_energy_gain_power.png",
|
||||
"mengsan/assets/status/nostalgia_power.png",
|
||||
"mengsan/assets/status/one_two_punch_power.png",
|
||||
"mengsan/assets/status/panache_power.png",
|
||||
"mengsan/assets/status/plating_power.png",
|
||||
"mengsan/assets/status/plow_power.png",
|
||||
"mengsan/assets/status/prep_time_power.png",
|
||||
"mengsan/assets/status/rage_power.png",
|
||||
"mengsan/assets/status/retain_hand_power.png",
|
||||
"mengsan/assets/status/ringing_power.png",
|
||||
"mengsan/assets/status/rolling_boulder_power.png",
|
||||
"mengsan/assets/status/rupture_power.png",
|
||||
"mengsan/assets/status/shrink_power.png",
|
||||
"mengsan/assets/status/slippery_power.png",
|
||||
"mengsan/assets/status/slow_power.png",
|
||||
"mengsan/assets/status/stampede_power.png",
|
||||
"mengsan/assets/status/strength_power.png",
|
||||
"mengsan/assets/status/tangled_power.png",
|
||||
"mengsan/assets/status/tank_power.png",
|
||||
"mengsan/assets/status/territorial_power.png",
|
||||
"mengsan/assets/status/the_bomb_power.png",
|
||||
"mengsan/assets/status/the_gambit_power.png",
|
||||
"mengsan/assets/status/unmovable_power.png",
|
||||
"mengsan/assets/status/vicious_power.png",
|
||||
"mengsan/assets/status/vigor_power.png",
|
||||
"mengsan/assets/status/vulnerable_power.png",
|
||||
"mengsan/assets/status/weak_power.png",
|
||||
"mengsan/assets/sushuang-zhangshiping.png",
|
||||
"mengsan/battle/battle-director.js",
|
||||
"mengsan/battle/battle-flow.js",
|
||||
@@ -679,7 +615,6 @@
|
||||
"mengsan/battle/intent-damage.js",
|
||||
"mengsan/battle/intent-effects.js",
|
||||
"mengsan/battle/skill-teardown.js",
|
||||
"mengsan/battle/status-sources.js",
|
||||
"mengsan/battle/stun-intent.js",
|
||||
"mengsan/bonds/battle.js",
|
||||
"mengsan/bonds/definitions.js",
|
||||
@@ -807,14 +742,10 @@
|
||||
"mengsan/monsters/vantom-intent.js",
|
||||
"mengsan/monsters/vine-intent.js",
|
||||
"mengsan/monsters/vine-tangled.js",
|
||||
"mengsan/potions/battle.js",
|
||||
"mengsan/potions/presentation.js",
|
||||
"mengsan/potions/state.js",
|
||||
"mengsan/progression/dialogue-choice.js",
|
||||
"mengsan/progression/encounter-progress.js",
|
||||
"mengsan/progression/map-checkpoint.js",
|
||||
"mengsan/progression/mode-storage.js",
|
||||
"mengsan/progression/random-event.js",
|
||||
"mengsan/progression/reward-package.js",
|
||||
"mengsan/progression/reward.js",
|
||||
"mengsan/progression/state.js",
|
||||
@@ -856,10 +787,7 @@
|
||||
"mengsan/state.js",
|
||||
"mengsan/style.css",
|
||||
"mengsan/ui/bonds.js",
|
||||
"mengsan/ui/card-choice-names.js",
|
||||
"mengsan/ui/card-library.js",
|
||||
"mengsan/ui/character-select.css",
|
||||
"mengsan/ui/character-select.js",
|
||||
"mengsan/ui/dialogue.js",
|
||||
"mengsan/ui/energy-display.js",
|
||||
"mengsan/ui/flow-ui.js",
|
||||
@@ -871,25 +799,15 @@
|
||||
"mengsan/ui/hand/input.js",
|
||||
"mengsan/ui/hand/overlays.js",
|
||||
"mengsan/ui/hand/style.css",
|
||||
"mengsan/ui/hud/index.js",
|
||||
"mengsan/ui/hud/overlays.js",
|
||||
"mengsan/ui/hud/status-model.js",
|
||||
"mengsan/ui/hud/style.css",
|
||||
"mengsan/ui/intent-display.js",
|
||||
"mengsan/ui/map/index.js",
|
||||
"mengsan/ui/map/renderer.js",
|
||||
"mengsan/ui/navigation.js",
|
||||
"mengsan/ui/potions.css",
|
||||
"mengsan/ui/potions.js",
|
||||
"mengsan/ui/relic-icon.js",
|
||||
"mengsan/ui/relic-strip.js",
|
||||
"mengsan/ui/relics.js",
|
||||
"mengsan/ui/rest-ui.js",
|
||||
"mengsan/ui/rest.css",
|
||||
"mengsan/ui/reward-package.js",
|
||||
"mengsan/ui/reward-ui.js",
|
||||
"mengsan/ui/shop-ui.js",
|
||||
"mengsan/ui/shop.css",
|
||||
"mengsan/ui/style.css",
|
||||
"mengsan/ui/virtual-card-grid.js"
|
||||
]
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# 梦三战斗 UI 回归清单
|
||||
|
||||
每次 review 核验下表各项。在报告中逐项写明通过、失败或未验,并记录证据对应的代码版本、皮肤、尺寸和缩放。涉及战斗 UI 的改动,附受影响场景的渲染截图。
|
||||
|
||||
| 场景 | 操作与通过标准 |
|
||||
| --- | --- |
|
||||
| 触屏拖牌与目标连线 | 从手牌拖出一张【杀】并移动到可选敌人。线起点贴在拖动牌上缘中央,终点跟随触点,两端误差各不超过 2 CSS px。取消手势后线立即消失。对合法目标松手后拖线立即消失,原生提交只触发一次。完整对局中再检查提交后的出牌特效能指向实际目标。 |
|
||||
| 普通出牌布局与缩放 | 在主动出牌阶段检查手牌扇面、提示语和「确定/回合结束」按钮组。三者共用战场中线,误差不超过 2 CSS px。改变界面缩放后重新检查对齐和拖牌线两端。 |
|
||||
| 出牌响应布局与按钮交互 | 敌人出【杀】,选择【闪】,观察场上出牌副本、响应文字与「确定/取消」两键的整体边界。三者从上到下共用战场中线,横向中心误差不超过 2 CSS px,牌面、提示、按钮和选中手牌之间有可见间距。确认和取消分别可点击,响应结束后场上的牌恢复原生位置。 |
|
||||
| 弃牌时技能栏稳定 | 启用十周年 UI,进入需弃置两张手牌的场景并点选第一张。技能栏在重建的首帧起就不出现重复的药水按钮,普通技能仍可见,弃牌计数正常更新。 |
|
||||
| 战斗药水槽与计数信息 | 持有药水进入战斗。药水槽位于左上区域,可贴近轮数、时间及牌堆数量控件,各自的可见区域互不重叠。点按药水可打开详情,并能在可用阶段正常使用。 |
|
||||
|
||||
## 浏览器回归
|
||||
|
||||
从无名游戏目录内的术樱包根目录执行。脚本使用本地引擎、十周年 UI 样式、Playwright 和 Microsoft Edge。Playwright 安装在其他目录时,可将 `CODEX_NODE_MODULES` 指向包含它的 `node_modules`。
|
||||
|
||||
```powershell
|
||||
$env:HUD_REVIEW = '1'
|
||||
node mengsan/tools/test-battle-hud.cjs
|
||||
```
|
||||
|
||||
需要截图时,将 `HUD_ARTIFACTS` 指向已建立的临时目录。完整矩阵覆盖原生 UI、十周年 UI 的手杀、十周年和新杀风格,以及 1080×486、812×375、667×375,含非整数像素比。1080×486 使用无名杀「新版」布局,从 65% 缩放基线切换到 50%、85%、100% 和 120%,核验普通出牌位置和拖牌线。出牌后的默认及金龙连线均检查端点,完整金龙贴图需在客户端核验。
|
||||
|
||||
## Android 实机复核
|
||||
|
||||
在本轮改动对应的 Android 客户端启用十周年 UI,使用该客户端当前启用的皮肤复核各场景,并记录十周年 UI 版本和皮肤。拖牌时分别观察松手前的拖线和松手后的出牌特效。响应用两次事件分别检查确认和取消。弃牌时观察点牌瞬间,检查原生计数面板与药水槽能同时看清并各自操作。实机结果单独记录,实机不可用时写明未验。
|
||||
|
||||
涉及地图、剧情、奖励、牌库、遗物或其他公共弹窗时,一并使用[梦三界面缩放回归清单](mengsan-ui-zoom.md)。
|
||||
@@ -1,39 +0,0 @@
|
||||
# 梦三界面缩放回归清单
|
||||
|
||||
无名杀原生 UI 底层以 `transform: scale()` 缩放,十周年 UI 以 `body.zoom` 缩放。检查通用界面时覆盖两条入口,并记录界面缩放、窗口尺寸、UI 版本和实际使用的风格。
|
||||
|
||||
## 实施方案
|
||||
|
||||
- 地图用实际渲染尺寸换算鼠标位移,保证地图和指针同速移动。窄小布局允许行军菜单和顶部栏在各自区域滚动。
|
||||
- 选将和事件面板的高度随剩余空间调整,内容在面板内滚动,打开和关闭时恢复焦点也保持页面位置。
|
||||
- 剧情将文本和分支选项放进同一滚动容器,跳过和菜单留在顶部。较高倍率下可滚动查看并点按选项。
|
||||
- 牌库、牌堆、遗物、战斗状态、菜单确认和调试管理器沿用奖励与药水的原生对话框挂载方式,以可视窗口约束弹窗尺寸。打开、选择与关闭仍通过各自原有入口执行。
|
||||
- 战场右侧的牌堆和遗物入口随可用高度调整。战斗状态平时放在头像上方,上方空间不足时移到头像侧面。
|
||||
|
||||
## 验收项
|
||||
|
||||
| 范围 | 操作与通过标准 |
|
||||
| --- | --- |
|
||||
| 选将、事件、商店、休息处 | 能看到主操作,点按后返回正确选择或退出。 |
|
||||
| 地图和行军菜单 | 相同屏幕位移下,地图拖动与鼠标位移差不超过 2 CSS px。触屏能滚动,能点开菜单、查看行囊、返回和关闭,能选中可前往节点。 |
|
||||
| 剧情 | 文本和分支选项可浏览,点按分支写入正确剧情状态,跳过和继续均可用。 |
|
||||
| 奖励和战后结算 | 选牌、跳过和结算选项可到达,确认后继续流程。 |
|
||||
| 牌库、牌堆、遗物、药水和战斗状态 | 能通过实际入口打开,弹窗在可视区域内,详情和关闭可点按。内容较长时能滚动。 |
|
||||
| 菜单确认和调试管理器 | 对话框在可视区域内,所选操作返回正确结果,关闭后回到原界面。 |
|
||||
|
||||
## 浏览器复核
|
||||
|
||||
从术樱包根目录执行。脚本使用本地无名杀、十周年 UI、Playwright 和 Microsoft Edge。需要时将 `CODEX_NODE_MODULES` 指向包含 Playwright 的 `node_modules`,将 `HUD_ARTIFACTS` 指向已建立的截图目录。
|
||||
|
||||
```powershell
|
||||
$env:UI_ZOOM_REVIEW = '1'
|
||||
node mengsan/tools/test-battle-hud.cjs
|
||||
```
|
||||
|
||||
自动回归覆盖 16 个界面与交互。以 812×375 横屏为基线,十周年 UI 检查 50%、65%、100%、150%、200%、300%,原生 UI 检查 150% 和 300%。两条缩放入口均检查界面打开后从 65% 切到 200%。另检查 420×360 窄屏、390×720 竖屏和 1280×720 桌面。
|
||||
|
||||
脚本通过渲染出的按钮执行代表性操作,检查界面边界、返回值和关闭结果。鼠标地图拖动单独检查像素误差。完整战斗 HUD 和出牌响应按[战斗回归清单](mengsan-battle-ui.md)复核。
|
||||
|
||||
## Android 实机复核
|
||||
|
||||
用 Android 客户端实际启用的十周年 UI 风格,在常用倍率和一个较高倍率下复核受影响的操作。优先确认触屏地图滚动、剧情分支点按、较长内容滑动和弹窗关闭。报告逐项标注通过、失败或未验。
|
||||
@@ -1,75 +0,0 @@
|
||||
# 梦三模式首次安装分包 Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal** 让梦三首次安装优先使用同源同版本的分包 ZIP,降低请求数并控制解包内存。
|
||||
|
||||
**Architecture** 两个发布工作流调用同一个 Python 打包脚本。客户端在现有暂存阶段串行处理附件,对剩余文件复用原有逐文件下载,全部暂存成功后继续执行现有安装事务。
|
||||
|
||||
**Tech Stack** Python 标准库 `zipfile` 和 `unittest`、PowerShell 发布工作流、宿主 JSZip 2.7、`DecompressionStream`、Electron HTTPS、Cordova `FileTransfer`、Node.js 测试运行器。
|
||||
|
||||
**Spec** `docs/superpowers/specs/2026-11-24-mengsan-zip-install-design.md`
|
||||
|
||||
## 全局约束
|
||||
|
||||
- GitHub 和 Gitea 发布同一标签对应的分包。客户端使用玩家已选的源和渠道。
|
||||
- 单次只处理一个独立 ZIP。路径、大小和 SHA-256 以标签的模块清单为准。全部暂存后才安装。
|
||||
- ZIP 不可用时从同源同标签补齐未完成文件。保留现有事务式安装、卸载与重启后重试。
|
||||
- 首版只覆盖梦三首次安装。日常差量更新、查漏补缺、旧安装迁移、常规武将与天书乱斗继续使用现有下载方式。
|
||||
- 实现和验证阶段通过临时测试配置打开 ZIP。两个源的实机验收通过后,再在正式配置默认启用。
|
||||
|
||||
## 审查重点
|
||||
|
||||
- GitHub 已推送标签,Release 仍在草稿或上传中。首次安装应使用同标签文件下载。
|
||||
- 一包失败或重试时,其他包已通过校验的暂存文件只安装一次。
|
||||
- 错误的标签、越界条目和错误字节不得导致正式目录写入未验证的文件。
|
||||
- 文件系统写入失败应进入现有恢复逻辑。同源回退只处理附件下载、解包或内容校验失败。
|
||||
- 重启后已知的新装可以重新使用 ZIP。旧版待修复记录和已有安装更新继续走原路径。
|
||||
|
||||
## 文件分工
|
||||
|
||||
- `tools/build_mengsan_archives.py` · 从正式梦三清单生成并验证分包。
|
||||
- `.github/workflows/release.yml` 和 `.gitea/workflows/release.yml` · 在现有 ZIP 构建和草稿上传步骤加入分包。
|
||||
- `update.js` · 查询附件、复用有字节上限的下载、在安装暂存阶段解包及补齐。
|
||||
- `tools/test_mengsan_archives.py` 和 `tools/test_mengsan_zip_install.mjs` · 覆盖生成规则、正常安装入口及故障分支。
|
||||
- `tools/UPDATE.md` · 记录附件格式和实机启用条件。
|
||||
|
||||
## 任务一 · 构建及核验分包
|
||||
|
||||
**接口** `build_archives(root: Path, output: Path, tag: str) -> list[Path]` 使用 `root/dist/modules/mengsan.json`,生成 `mengsan-<tag>-part-001.zip` 等附件。条目名为 `mengsan/…`,与模块清单路径逐字一致。
|
||||
|
||||
- [ ] 在 `tools/test_mengsan_archives.py` 写 `test_parts_cover_packable_files_once` 和 `test_reject_inconsistent_release`。用临时目录验证 `Counter(written_paths) == Counter(packable_paths)`、条目 SHA-256 与清单一致、超出 10 MiB 的单文件不入包。对清单版本不匹配、源文件变化和单个分包成品超过 11 MiB 分别断言生成失败。
|
||||
- [ ] 运行 `python -m unittest discover -s tools -p test_mengsan_archives.py`,确认因生成器尚缺而失败。
|
||||
- [ ] 实现生成器及 CLI `python tools/build_mengsan_archives.py --root <snapshot> --out-dir <output> --tag <tag>`。按清单路径排序,依次填入每包合计最多 10 MiB 的未压缩文件。使用 `ZIP_DEFLATED`、压缩级别 6。关闭 ZIP 后检查成品不超过 11 MiB,逐项校验路径、大小和 SHA-256,并检查各包合计覆盖所有可打包条目。调整上限时同步客户端和测试。
|
||||
- [ ] 重跑 Python 测试并确认通过。以当前分支生成的清单和导出快照运行 CLI,检查实际分包数、最大包大小和完整覆盖。使用发布工作流同样的标签快照校验命令 `python tools/verify_manifest.py --root <snapshot> --version <version>`。
|
||||
|
||||
## 任务二 · 接入两个发布工作流
|
||||
|
||||
**接口** 复用任务一的 CLI。每个工作流向现有草稿 Release 上传生成器在单独输出目录产生的所有 `mengsan-<tag>-part-*.zip`,ZIP 附件使用 `application/zip`。
|
||||
|
||||
- [ ] 在两个 `release.yml` 的快照验证后调用 Python 构建,并在取消草稿前上传分包。沿用原来生成、上传完整 ZIP 和清单的步骤。CI 继续使用标签快照内的脚本与清单。
|
||||
- [ ] 更新 `tools/UPDATE.md` 的发布步骤及分包命名。区分标签 raw 清单、梦三 Release 附件和完整离线包。
|
||||
- [ ] 准备可发布的测试标签后,在获准的测试发布中运行两个工作流。核对同一标签均包含完整 ZIP 和相同编号的分包,完整 ZIP 的原有目录结构保持可用。发版附件下载验证归任务四。
|
||||
|
||||
## 任务三 · 在梦三首次安装的暂存阶段接入 ZIP
|
||||
|
||||
**接口** `getMengsanReleaseParts(manifest, shuYing) -> Promise<Array<{name: string, url: string, size: number}>>` 返回已选源的同标签分包。`stageMengsanArchives(shuYing, manifest, operationRoot, remaining: Set<string>, stageVerified, progress) -> Promise<void>` 串行读取这些包。`stageVerified(file: string, bytes: Uint8Array) -> Promise<void>` 在写盘前记录尝试,写盘成功后才从 `remaining` 移除文件。
|
||||
|
||||
- [ ] 在 `tools/test_mengsan_zip_install.mjs` 用 `node:test` 从正常菜单入口 `manageMengsanModule` 触发安装。`fresh install stages from selected release` 对两个源分别断言附件查询标签正确、成功分包文件无 raw 请求、所有文件备齐前无正式路径写入。`falls back for missing or unusable release parts` 覆盖 Release 404、草稿、标签不匹配、超限响应、损坏 ZIP、越界条目和错误 SHA-256,断言 `rawRequests` 恰好等于未成功暂存文件。`retries the failed ZIP once` 覆盖单包下载异常后成功。`staging write errors preserve recovery` 断言写入失败后无后续 raw 请求。`installed updates and legacy repairs stay on raw` 从 `checkVersion`、`repairMissingFiles` 和旧修复记录分别验证无 Release 请求。至少一个解析用例使用宿主实际捆绑的 JSZip 2.7 和脚本生成的 ZIP。
|
||||
- [ ] 运行 `node --experimental-vm-modules --test tools/test_mengsan_zip_install.mjs` 并确认新增 ZIP 场景因当前只请求 raw 文件而失败。可通过 `vm.SourceTextModule` 和测试用 `SyntheticModule` 为 `../../noname.js` 注入宿主 API,无需从产品代码导出测试接口。
|
||||
- [ ] 在 `update.js` 实现附件查询和下载。两源均请求所选 `<repoApi>/releases/tags/<tag>`,要求 `tag_name` 匹配且 `draft` 为 `false`。仅接收与版本文件名匹配、`size` 为正整数且不超过 11 MiB 的附件。使用该源的 HTTPS `browser_download_url`。GitHub 现有附件链接与 CDN 实测缺少浏览器跨域响应头,因此 Electron 使用支持 HTTPS 重定向的原生请求,Cordova 使用 `FileTransfer` 下载到本次操作目录,校验文件大小后读取并清理。网页 Fetch 用尽该附件的网络重试后回退同源逐文件下载。
|
||||
- [ ] 使用 `get.zip` 获取 JSZip,逐包调用 `load` 读取目录和压缩字节。解包前检查文件名、清单归属、单条目声明大小和包内合计上限。用 `DecompressionStream("deflate-raw")` 解压到按清单大小分配的缓冲区并限制实际输出,随后调用 `verifyFile` 和 `stageVerified`。缺少流式解压能力的客户端直接逐文件下载。异常 ZIP 至多重新取一次再回退。校验、网络和解包错误记录包名及原因。写盘错误从暂存阶段直接抛出。
|
||||
- [ ] 在 `manageMengsanModule` 判定首次安装。无既有安装,或已明确清空的卸载记录进入全新安装;旧待修复记录按原路径。操作记录只在已知首次安装进入 `installing` 时标记 `freshInstall: true`,失败后该标记用于重新发起完整下载。通过 `installMengsanFiles` 把这个选择传给 `updateAllFiles` 的暂存阶段;本次已完成的文件更新原进度和清理集合,原文件池仅处理剩余项。将 ZIP 网络进度与已验证文件字节分开,避免回退时重复计数。保留现有正式路径落盘前复核及安装记录提交逻辑。
|
||||
- [ ] 运行 `node --check update.js` 和 Node 测试,确认通过。分别用清单对比正常 ZIP 和逐文件回退的最终目录及安装记录,确认每个新文件大小和 SHA-256 一致。
|
||||
|
||||
## 任务四 · 实机验收和默认启用
|
||||
|
||||
- [ ] 在同一台受支持手机上,用同一客户端版本、梦三标签、下载源和网络条件,对逐文件和分包的干净安装各测三次。每次从确认安装计时到校验完成。通过网络记录统计资源请求数,从应用及其 WebView 进程记录内存峰值,报告原始样本和中位数。先测 10 MiB 展开、11 MiB 下载上限,再按实测调整。
|
||||
- [ ] 在客户端真实窗口验证 GitHub 与 Gitea Release 的匿名下载、重定向和跨域行为,并分别验证 ZIP 不可用时回退到当前源的同标签文件。测试手机端强制退出后再点击安装。通过安装记录、清单校验和重启后进入梦三确认结果。另跑桌面端首次安装及差量更新一次。
|
||||
- [ ] 对照同环境逐文件基线检验收益。建议启用条件为手机端资源请求数和总耗时中位数下降,内存峰值无可重复的上升,两个源与回退均通过。记录采用的包大小、测试设备和结果,再启用默认 ZIP 路径。
|
||||
|
||||
## 资料
|
||||
|
||||
- [GitHub 按标签查询 Release](https://docs.github.com/en/rest/releases/releases#get-a-release-by-tag-name)
|
||||
- [GitHub Release 附件字段](https://docs.github.com/en/rest/releases/assets#get-a-release-asset)
|
||||
- [Gitea 按标签查询 Release](https://docs.gitea.com/api/1.25/operations/repo-get-release-by-tag/)
|
||||
@@ -1,19 +0,0 @@
|
||||
# 梦三模式首次安装分包设计
|
||||
|
||||
梦三模式首次安装目前会逐个下载模块清单文件。当前仓库按发布清单规则筛出的梦三模块有 846 个文件,约 143.5 MiB。分包的目标是减少首次安装的网络请求,在手机端控制单次解包的数据量,并保留逐文件校验和安装恢复能力。
|
||||
|
||||
## 方案选择
|
||||
|
||||
- 逐文件下载适合日常差量更新和少量补缺,继续沿用现有流程。
|
||||
- 单个 ZIP 请求最少。现有客户端会在内存中拼接完整响应,单个 ZIP 需要持有整个模块的压缩数据。
|
||||
- 首次安装使用多个有大小上限的独立 ZIP。每次只处理一包,下载失败时可以单独重试。首版覆盖梦三,常规武将和天书乱斗等实测后再决定。
|
||||
|
||||
## 发布与安装
|
||||
|
||||
GitHub 和 Gitea 的现有发布工作流使用各自同一发布标签的梦三清单生成分包,将分包与完整离线安装包一起上传为 Release 附件。客户端继续使用选定的源和渠道,先获得同一标签的模块清单,再查询该标签的 Release。首次安装每次下载和解开一包,每个文件按清单验证大小和 SHA-256 后写入现有暂存区。全部文件备齐后,现有安装流程再次验证暂存文件并负责替换、回滚和提交安装记录。
|
||||
|
||||
旧标签无 ZIP、附件暂不可用、解包失败或内容校验失败时,从同源同标签逐文件补齐。本次已校验并写入暂存区的文件可以继续用。暂存写入失败走现有安装失败处理。退出游戏后,安装按现有方式重新发起,部分下载进度只用于当前操作。已安装的模块更新、查漏补缺、卸载和旧安装迁移沿用现有行为。
|
||||
|
||||
## 启用条件
|
||||
|
||||
同一部手机、同一版本和同一下载源下,对比两种方式的请求数、总耗时和内存峰值。验证两个源的附件在游戏内均可下载,且 ZIP 不可用时均可从同源回退。手机实测确认有收益后再默认启用。具体分包上限由实测确定。
|
||||
@@ -6,7 +6,7 @@ import { configureDiagnostics } from "./diagnostics/index.js";
|
||||
|
||||
export const type = "extension";
|
||||
export let shuYing = new Object();
|
||||
const shuYingLocalVersion = "2.0.2.3-rc.11";
|
||||
const shuYingLocalVersion = "2.0.2.3-rc.5";
|
||||
|
||||
shuYing.name = "术樱包";
|
||||
shuYing.editable = false;
|
||||
|
||||
@@ -39,8 +39,6 @@
|
||||
手牌 UI 子扩展没有单独关闭开关;实现边界、日志位置和验证结果见
|
||||
[手牌 UI 子扩展说明](docs/ui-hand-subextension.md)。
|
||||
|
||||
本机翻译、事件插图、药水及其他图集的位置见 [STS2 素材路径对照](docs/sts2-asset-paths.md)。
|
||||
|
||||
战后技能清理只针对本场角色。`fixed` / `superCharlotte` 的纯元数据技能
|
||||
保留在即将销毁的角色上,不阻断结算;含触发器、规则修正、标记清理或
|
||||
释放回调的技能在整角色销毁时正常卸载,等待回调完成。公共技能定义及
|
||||
@@ -64,7 +62,7 @@
|
||||
PC 和安卓客户端的完整对局验证。
|
||||
|
||||
梦三【杀】消耗 1 费用,基础伤害为 6;其他锦囊的基础伤害仍为 4。
|
||||
【重杀】(`mengsan_zhongsha`)是通用基本牌,只有允许通用卡的奖励才可从对应池抽到:
|
||||
【重杀】(`mengsan_zhongsha`)是普通战斗奖励池中的通用基本牌:
|
||||
消耗 2 费用,对攻击范围内的一名其他角色直接造成 8 点伤害,
|
||||
然后给予存活目标 2 层易伤,每回合使用次数不限。
|
||||
易伤沿用既有规则:受到攻击伤害增加 50%(向上取整),
|
||||
@@ -73,6 +71,6 @@ PC 和安卓客户端的完整对局验证。
|
||||
强化规则集中在 `cards/upgrades.js`,未配置的牌不可强化。
|
||||
【杀】最多强化一次,伤害由 6 变为 9;【重杀】最多强化一次,
|
||||
伤害由 8 变为 10,易伤由 2 层变为 3 层,费用均不变。
|
||||
随机强化只选有强化规则且尚未满级的牌。「永恒」限制移除和变化,仍可强化。
|
||||
随机强化只选尚未满级、可强化且没有“永恒”词缀的牌。
|
||||
没有候选牌时禁用休息节点的磨砺,并从随机奖励中排除强化。
|
||||
旧存档不重写:历史超限等级按当前上限结算,未配置牌的历史等级不生效。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 梦三卡牌立绘规范
|
||||
|
||||
2026-10-03:刘备94张已全部接入:新增67、沿用27、暂缓0;另有衍生巨石。68张新增完整5:7水墨立绘使用 `mengsan_ic_*.png`。刘备专属牌组与空无色牌组已分目录和牌组类,详情见 [制作清单](../../../../../sts2-card-capture-20261003/generation/刘备制作清单.md)、[全部立绘预览](../../../../../sts2-card-capture-20261003/generation/刘备立绘预览.md) 及 [牌组结构](../../cards/packs/README.md)。尚未进行实机验收。
|
||||
2026-10-03:铁甲战士94张已全部接入:新增67、沿用27、暂缓0;另有衍生巨石。68张新增完整5:7水墨立绘使用 `mengsan_ic_*.png`。刘备专属牌组与空无色牌组已分目录和牌组类,详情见 [制作清单](../../../../../sts2-card-capture-20261003/generation/铁甲战士制作清单.md)、[全部立绘预览](../../../../../sts2-card-capture-20261003/generation/铁甲战士立绘预览.md) 及 [牌组结构](../../cards/packs/README.md)。尚未进行实机验收。
|
||||
|
||||
用户于 2026-10-02 指定以截图 `C:\Users\Diuse\Downloads\Ai\49.png` 中“防御”为同系列基准。
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 785 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
@@ -3284,7 +3284,7 @@
|
||||
}
|
||||
],
|
||||
"notes": [
|
||||
"美味饼干使用刘备版本;四个其他角色版本仍保留在来源图集中。",
|
||||
"美味饼干使用铁甲战士版本;四个其他角色版本仍保留在来源图集中。",
|
||||
"遗忘之魂映射 lost_soul.png;布质果实映射 looming_fruit_2.png。",
|
||||
"图标是用户提供的原游戏拆包图片,逐字节复制,未重绘。"
|
||||
]
|
||||
|
||||
|
Before Width: | Height: | Size: 216 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,427 +0,0 @@
|
||||
{
|
||||
"sourceVersion": "v0.111.0",
|
||||
"source": "images/atlases/power_atlas.sprites",
|
||||
"entries": [
|
||||
{
|
||||
"name": "strength_power.png",
|
||||
"bytes": 3435,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "6584c67190bfd47255c0f333bfb7f2ab52720209d94ce9324a30b0a8e638d7ff"
|
||||
},
|
||||
{
|
||||
"name": "ringing_power.png",
|
||||
"bytes": 5038,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "c4a3d09f976788bca91d3a5011fc0f05c3f981eaa3482a33c31a0a661705f60c"
|
||||
},
|
||||
{
|
||||
"name": "slow_power.png",
|
||||
"bytes": 5762,
|
||||
"width": 64,
|
||||
"height": 63,
|
||||
"sha256": "b39d7af28b0fdcd773a44577a6635c8b23dc03bff6280de841dc831fe6c601b0"
|
||||
},
|
||||
{
|
||||
"name": "the_bomb_power.png",
|
||||
"bytes": 4421,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "862f05ed56d4d0ebd60afd777162d23fb4744991f6cace9e43640bee29f5db58"
|
||||
},
|
||||
{
|
||||
"name": "vigor_power.png",
|
||||
"bytes": 5912,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "551b7b93d139f30cf190887ea3eef197aa693a7a78e67aef48ef2b582b1532b3"
|
||||
},
|
||||
{
|
||||
"name": "draw_cards_next_turn_power.png",
|
||||
"bytes": 3178,
|
||||
"width": 58,
|
||||
"height": 64,
|
||||
"sha256": "c0a8c2781aff2e5c6bf73a2dd2938ef820a5fde651757954f5219113cf88ea22"
|
||||
},
|
||||
{
|
||||
"name": "energy_next_turn_power.png",
|
||||
"bytes": 2896,
|
||||
"width": 43,
|
||||
"height": 64,
|
||||
"sha256": "511314b05d5c223613b6d654816f7feb5607e7c40b0487207c5b1a75f5002f67"
|
||||
},
|
||||
{
|
||||
"name": "block_next_turn_power.png",
|
||||
"bytes": 4275,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "fd5c75f11f5719f9ffb52ceda3640cbc684ec178e783a3ceb2774548df1615f8"
|
||||
},
|
||||
{
|
||||
"name": "vulnerable_power.png",
|
||||
"bytes": 3725,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "1b9a9336dd7828cb1fb61b119ab765d3c713ce4e0e98bdbee7211724fe5c78b6"
|
||||
},
|
||||
{
|
||||
"name": "weak_power.png",
|
||||
"bytes": 4738,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "f8f4277c9fd848600a503b8d377bf9e83b4eaa06fa27f8f82ebefcfbd9714763"
|
||||
},
|
||||
{
|
||||
"name": "frail_power.png",
|
||||
"bytes": 3945,
|
||||
"width": 63,
|
||||
"height": 64,
|
||||
"sha256": "d772bf035190a650a9be735282c77ee9ab2276a775a9e7079710c8b09c4a4619"
|
||||
},
|
||||
{
|
||||
"name": "artifact_power.png",
|
||||
"bytes": 5717,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "2346d2425fd40cc5f8532df0f97afa9bbb782fa649a09bcb014fe6932e845f90"
|
||||
},
|
||||
{
|
||||
"name": "constrict_power.png",
|
||||
"bytes": 4543,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "5f29c6b3f8955e275d98f9ed47a893c1214a7bfb820ce1c696c9f16fddcbd8b4"
|
||||
},
|
||||
{
|
||||
"name": "tangled_power.png",
|
||||
"bytes": 5754,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "3d4d4686876ed0265f26696ab2d0ebde8366b0537994bf223bc388a0f104ec5e"
|
||||
},
|
||||
{
|
||||
"name": "shrink_power.png",
|
||||
"bytes": 4258,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "b19a0d045135bcc6cfa00f2fb11be78dba68f16ecc12f2ca8474caa9327c05dd"
|
||||
},
|
||||
{
|
||||
"name": "plow_power.png",
|
||||
"bytes": 5865,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "dc300ee907b06d300bcd01f2c2784cc06c761796206a090e1a94f0cecfa95a31"
|
||||
},
|
||||
{
|
||||
"name": "slippery_power.png",
|
||||
"bytes": 4722,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "06b4ac80cbf1f70c625be827047be79302f72c018cf8368bfb313a27744e568b"
|
||||
},
|
||||
{
|
||||
"name": "territorial_power.png",
|
||||
"bytes": 3829,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "cf1b1d401a6fd45dbb1f3eda64049edf8cdf7e91a55f3aaf7a10f138d54699dd"
|
||||
},
|
||||
{
|
||||
"name": "infested_power.png",
|
||||
"bytes": 3554,
|
||||
"width": 64,
|
||||
"height": 50,
|
||||
"sha256": "d6cd52278e0444a8f65fdc7d3c19b7ff9dc7067e2c1d21509f891238bae234f7"
|
||||
},
|
||||
{
|
||||
"name": "demon_form_power.png",
|
||||
"bytes": 4728,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "2e183f449fc07c30356d181a1b1a5814aad2ef077598642a35899f4d8cdc3bc3"
|
||||
},
|
||||
{
|
||||
"name": "demesne_power.png",
|
||||
"bytes": 5817,
|
||||
"width": 64,
|
||||
"height": 63,
|
||||
"sha256": "554fff2e62aaeaee7b1c9cc1c8283257139ce901a5191c39d143b757cd865e96"
|
||||
},
|
||||
{
|
||||
"name": "crimson_mantle_power.png",
|
||||
"bytes": 4706,
|
||||
"width": 64,
|
||||
"height": 61,
|
||||
"sha256": "7fdeb8f49fb6bfb3ef5f4ff52ec8bcad18bf8fd1e0357d9378ac657124cb8e23"
|
||||
},
|
||||
{
|
||||
"name": "inferno_power.png",
|
||||
"bytes": 5996,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "3775622f4ad2419ed897bb90e56d793fb383c1810bae514d3e9c17eaff53fe69"
|
||||
},
|
||||
{
|
||||
"name": "rupture_power.png",
|
||||
"bytes": 3897,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "101e3b473ec6d6b565aa94ed5946840f6c013f28e62f3f0961106c2c8cd54d95"
|
||||
},
|
||||
{
|
||||
"name": "vicious_power.png",
|
||||
"bytes": 3247,
|
||||
"width": 64,
|
||||
"height": 62,
|
||||
"sha256": "4b90144a9254bb155b1cce8180d91d919af99566b8841e2135eb86880ff0765a"
|
||||
},
|
||||
{
|
||||
"name": "rage_power.png",
|
||||
"bytes": 4937,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "a53721daa6996403e61e871aca8152ae50372c3255e509f1a6d4d99bbfd01d02"
|
||||
},
|
||||
{
|
||||
"name": "flame_barrier_power.png",
|
||||
"bytes": 4786,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "48a7543a8f87c8b360a3a23a67df23b51b4a54eb6f7747cc27c9f4a230610cdf"
|
||||
},
|
||||
{
|
||||
"name": "colossus_power.png",
|
||||
"bytes": 3875,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "cfe2be38931e40856d5388b6e3b8c86a7ee2de6688ab69294f348d383e1dfb7d"
|
||||
},
|
||||
{
|
||||
"name": "free_attack_power.png",
|
||||
"bytes": 4223,
|
||||
"width": 61,
|
||||
"height": 64,
|
||||
"sha256": "5bc861f0693c0b73e95be4a2faebd8d81441e1011004f7a0ff71ced6f913573b"
|
||||
},
|
||||
{
|
||||
"name": "no_draw_power.png",
|
||||
"bytes": 4335,
|
||||
"width": 58,
|
||||
"height": 64,
|
||||
"sha256": "7f8ac6cae6cc5611d7e8217619de9cc87dcef245e19bc70107bc299da790bed0"
|
||||
},
|
||||
{
|
||||
"name": "no_energy_gain_power.png",
|
||||
"bytes": 6746,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "c31490f89b758bd63564581218ede73d89438d833ece8d8da5a8f12f773a345d"
|
||||
},
|
||||
{
|
||||
"name": "one_two_punch_power.png",
|
||||
"bytes": 3986,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "458f05559a4efcd79bcbe0fb7e1d9aa4ae47d3a0c533f11e1a72ed3e67aec78b"
|
||||
},
|
||||
{
|
||||
"name": "plating_power.png",
|
||||
"bytes": 5036,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "10a27dd11231338120274c8b132ec82187b2cc00f81d0f7fa94e3637f4506b67"
|
||||
},
|
||||
{
|
||||
"name": "feel_no_pain_power.png",
|
||||
"bytes": 4244,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "92359b3a53e10600e864a502291be3b50cf00c1792dbf5203e8eaac09fab126e"
|
||||
},
|
||||
{
|
||||
"name": "dark_embrace_power.png",
|
||||
"bytes": 5545,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "f60e5524cf10b4da15f1b788a58e65e2765aa928988100d6fcb6012829520d99"
|
||||
},
|
||||
{
|
||||
"name": "juggling_power.png",
|
||||
"bytes": 4512,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "583f560f68a3b9df4ef60376b919ff51d85d862076f0ce09848644f3171d51af"
|
||||
},
|
||||
{
|
||||
"name": "stampede_power.png",
|
||||
"bytes": 3357,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "1aea977a121c451ef134581789f629dc61caba87b771e7bd684345baae573d03"
|
||||
},
|
||||
{
|
||||
"name": "aggression_power.png",
|
||||
"bytes": 4524,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "9ec47f0a5eb259c1cc131b82e6bb9e22343df7f64c7375db7580eb326b6a97f3"
|
||||
},
|
||||
{
|
||||
"name": "tank_power.png",
|
||||
"bytes": 3191,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "f8cfbc1bbf8832f4e83ffdf4172bfc37564c85d36a4a5c14d18c1ab60bd1b76e"
|
||||
},
|
||||
{
|
||||
"name": "hellraiser_power.png",
|
||||
"bytes": 4296,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "38ca8fc4c727fb936d057a78bfb9461a39b0266dd794d062e9d278505821efc6"
|
||||
},
|
||||
{
|
||||
"name": "unmovable_power.png",
|
||||
"bytes": 4784,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "f99e4f21fcfd6e57089d47e4bc4ed1cf1a813a759f76487c38852d66dc472a19"
|
||||
},
|
||||
{
|
||||
"name": "juggernaut_power.png",
|
||||
"bytes": 5096,
|
||||
"width": 57,
|
||||
"height": 64,
|
||||
"sha256": "c0c9382989b31f246678d1d33ecb3f17f3b75a97aa9a752dd1f6551733d76112"
|
||||
},
|
||||
{
|
||||
"name": "barricade_power.png",
|
||||
"bytes": 2828,
|
||||
"width": 64,
|
||||
"height": 60,
|
||||
"sha256": "1467ded14bfef8cdc15152e62a100ef7d3be85173ac5eea2f6960d4815d5c64c"
|
||||
},
|
||||
{
|
||||
"name": "corruption_power.png",
|
||||
"bytes": 4822,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "8228d730978170f60d9c429136a395b3de59b5c98726912812f708ec803836eb"
|
||||
},
|
||||
{
|
||||
"name": "dexterity_power.png",
|
||||
"bytes": 3073,
|
||||
"width": 63,
|
||||
"height": 64,
|
||||
"sha256": "6609f4d04f4613ba0001b6254a793ddd2c25a60e66a320ff31ef6724ef15f20e"
|
||||
},
|
||||
{
|
||||
"name": "no_block_power.png",
|
||||
"bytes": 4592,
|
||||
"width": 63,
|
||||
"height": 64,
|
||||
"sha256": "469f70ce5a86ea24751ef75461d20ec127014e16495ee23a86ca0255b4246d4b"
|
||||
},
|
||||
{
|
||||
"name": "intangible_power.png",
|
||||
"bytes": 4398,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "0368e806c412ca290796c58e1e1a96e6d84bd5dda67f39249433e688006eaf1f"
|
||||
},
|
||||
{
|
||||
"name": "the_gambit_power.png",
|
||||
"bytes": 3051,
|
||||
"width": 49,
|
||||
"height": 64,
|
||||
"sha256": "204284c28d48c60a8c73f7356bb3d5aa0fc8e4b44491cb1aec19717bb4f04784"
|
||||
},
|
||||
{
|
||||
"name": "retain_hand_power.png",
|
||||
"bytes": 4225,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "a8ee3da12b0774ffc9bba33d6da7695afdfc9b7904d31b3229df077489541784"
|
||||
},
|
||||
{
|
||||
"name": "panache_power.png",
|
||||
"bytes": 3489,
|
||||
"width": 55,
|
||||
"height": 64,
|
||||
"sha256": "61dd7bda14317085c4f6cb4ccecebc759b5468c5494d16fb1a2d78c5f3fd59e0"
|
||||
},
|
||||
{
|
||||
"name": "fasten_power.png",
|
||||
"bytes": 4680,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "13518361d51775876bf4cde87e88cc4a9e63a5a1d14ba49388eb12d57404bbe7"
|
||||
},
|
||||
{
|
||||
"name": "prep_time_power.png",
|
||||
"bytes": 6445,
|
||||
"width": 64,
|
||||
"height": 63,
|
||||
"sha256": "ce1698909dcb2e91bd67714c11f7c467ae083326b7f9f239751a4c202d50bf69"
|
||||
},
|
||||
{
|
||||
"name": "automation_power.png",
|
||||
"bytes": 4452,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "c7b5b35579dc1b2ff209e4be54a1982381b1096c640a3c21bb5c9e6aeb86a08f"
|
||||
},
|
||||
{
|
||||
"name": "curious_power.png",
|
||||
"bytes": 4106,
|
||||
"width": 57,
|
||||
"height": 64,
|
||||
"sha256": "77cb0e309fc148e2b2bb723fa5a227d4dc3c2503e22421b9d0e457fb3a85c7d7"
|
||||
},
|
||||
{
|
||||
"name": "rolling_boulder_power.png",
|
||||
"bytes": 4422,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "53c820c23f09cd07d2b0e3bd00493bdaef81fbd09d05bf2d15485c3c1ef7e4a0"
|
||||
},
|
||||
{
|
||||
"name": "nostalgia_power.png",
|
||||
"bytes": 3856,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "836674ba8a9e8d0ea2263e90944acdf7078dc1f6c835771650bfcf84825d84a4"
|
||||
},
|
||||
{
|
||||
"name": "entropy_power.png",
|
||||
"bytes": 4849,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "5042bd71bd07fd605cba2c39677dd21df704439ed5d0ad9610f1102d8ed782ad"
|
||||
},
|
||||
{
|
||||
"name": "beacon_of_hope_power.png",
|
||||
"bytes": 5248,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "0d33f9098425c3d740e699926809c0c7c9121cdd05e52508284a1e34d7b7bd8d"
|
||||
},
|
||||
{
|
||||
"name": "mayhem_power.png",
|
||||
"bytes": 5287,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "354b3fe4b63c064cc96302d46b27829f6d51fd37e703aec15d53ed53a14e2d51"
|
||||
},
|
||||
{
|
||||
"name": "calamity_power.png",
|
||||
"bytes": 5331,
|
||||
"width": 64,
|
||||
"height": 64,
|
||||
"sha256": "8d510b86daa72a8066729bc5d0a3943acf5c77903be69525f325b65607c7cdd7"
|
||||
}
|
||||
],
|
||||
"missing": []
|
||||
}
|
||||
|
Before Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
@@ -1,6 +1,5 @@
|
||||
// Candidate external coordinator. Finish callbacks return a boolean, NEVER a drain promise.
|
||||
import { getDiagnostics } from "../../diagnostics/index.js";
|
||||
import { potionSlots } from "../potions/state.js";
|
||||
const copy = value => JSON.parse(JSON.stringify(value));
|
||||
export function createBattleFlow({settlement, chooseReward, chooseDefeat, showMap, showEnding, quiesce, releaseSkills = async () => {}, releaseBattle = () => {}, presentVictory = async () => {}}) {
|
||||
let state = "map", active = null, work = null, job = null, error = null;
|
||||
@@ -38,15 +37,10 @@ export function createBattleFlow({settlement, chooseReward, chooseDefeat, showMa
|
||||
elite: job.pending.elite,
|
||||
fixedRewards: copy(job.pending.fixedRewards || []),
|
||||
rewardPackage: copy(job.pending.rewardPackage || null),
|
||||
potionChoices: copy(job.pending.potionChoices || []),
|
||||
potionSlots: potionSlots(job.pending.base.player),
|
||||
}), false);
|
||||
if (job.pending.outcome !== "defeat" && !job.pending.rewardPackage) {
|
||||
const rewardId = job.pending.potionChoices?.length ? job.choiceId?.rewardId : job.choiceId;
|
||||
if (rewardId !== null && !job.pending.choices.some(c => c.id === rewardId && c.kind !== "gold")) {
|
||||
throw new Error("Invalid reward selection");
|
||||
}
|
||||
}
|
||||
if (job.pending.outcome !== "defeat" && !job.pending.rewardPackage &&
|
||||
job.choiceId !== null &&
|
||||
!job.pending.choices.some(c => c.id === job.choiceId && c.kind !== "gold")) throw new Error("Invalid reward selection");
|
||||
job.hasChoice = true;
|
||||
}
|
||||
job.pending = await step("applyChoice", () => settlement.choose(job.input.run.runId, job.pending.id, job.choiceId));
|
||||
|
||||
@@ -18,12 +18,6 @@ export function createBattleResources(session, {game, ui, _status}) {
|
||||
const counters = {phaseNumber:game.phaseNumber, roundNumber:game.roundNumber};
|
||||
game.phaseNumber = 0; game.roundNumber = 0;
|
||||
session.ownResource({}, () => {
|
||||
// 弃牌展示用的副本在开战后才挂到场上,实体牌回收时不会带走它们。
|
||||
const arenaBefore = before.get(ui.arena);
|
||||
const thrown = new Set(Array.from(ui.arena?.children || []).filter(node =>
|
||||
!arenaBefore?.has(node) && node.classList.contains("card") && node.classList.contains("thrown")));
|
||||
for (const node of thrown) node.remove();
|
||||
if (thrown.size && Array.isArray(ui.thrown)) ui.thrown = ui.thrown.filter(node => !thrown.has(node));
|
||||
for (const card of cards) card.remove();
|
||||
for (const [node,parent] of nodes) if (node.parentNode === parent) node.remove();
|
||||
for (const {object,key,value,descriptor} of fields.slice().reverse()) {
|
||||
|
||||
@@ -9,7 +9,6 @@ import { heldRelics } from "../relics/definitions.js";
|
||||
import { getDiagnostics } from "../../diagnostics/index.js";
|
||||
import { prepareRewardPackage, applyRewardPackage }
|
||||
from "../progression/reward-package.js";
|
||||
import { applyPotionReward, rollPotionReward, samplePotions } from "../potions/state.js";
|
||||
|
||||
const copy = value => JSON.parse(JSON.stringify(value));
|
||||
const idFor = (run, node) => JSON.stringify([run.runId, run.actIndex, node.id]);
|
||||
@@ -90,9 +89,6 @@ export function createBattleSettlement({
|
||||
getRandomRewardChoices) : null;
|
||||
item = {id, state:"awaitingChoice", nodeId:node.id, base, choices:copy(choices), fixedRewards:copy(fixedRewards), victoryDialogue:copy(encounter.victoryDialogue || []), boss:!!encounter.boss, elite, outcome, relicRecovery, bondGrowth};
|
||||
item.rewardPackage = copy(rewardPackage);
|
||||
item.potionChoices = outcome !== "victory" ? []
|
||||
: encounter.rewardPackage ? samplePotions(base, encounter.rewardPackage.potionChoices ?? 0)
|
||||
: !encounter.boss && (encounter.tier === "normal" || elite) ? rollPotionReward(base, elite) : [];
|
||||
diagnostics.info("prepared", {
|
||||
outcome, choices: choices.map(choice => choice.id), fixedRewards,
|
||||
expectedRevision: snapshot.revision, actualRevision: run.revision,
|
||||
@@ -136,26 +132,20 @@ export function createBattleSettlement({
|
||||
const sameChoice = item.rewardPackage
|
||||
? item.choiceId?.cardId === choiceId?.cardId &&
|
||||
item.choiceId?.relicId === choiceId?.relicId
|
||||
: item.potionChoices.length ? item.choiceId?.rewardId === choiceId?.rewardId
|
||||
: item.choiceId === choiceId;
|
||||
if (!sameChoice || item.choiceId?.potion?.id !== choiceId?.potion?.id ||
|
||||
item.choiceId?.potion?.replaceIndex !== choiceId?.potion?.replaceIndex) {
|
||||
throw new Error("Choice already locked");
|
||||
}
|
||||
: item.choiceId === choiceId;
|
||||
if (!sameChoice) throw new Error("Choice already locked");
|
||||
return copy(item);
|
||||
}
|
||||
const result = copy(item.base);
|
||||
let route = "defeat";
|
||||
if (item.outcome === "victory") {
|
||||
applyPotionReward(result.player, item.potionChoices, choiceId?.potion);
|
||||
if (item.rewardPackage) {
|
||||
applyRewardPackage(result, item.rewardPackage, choiceId,
|
||||
applyReward);
|
||||
}
|
||||
if (!item.rewardPackage) {
|
||||
const rewardId = item.potionChoices.length ? choiceId?.rewardId : choiceId;
|
||||
const reward = item.choices.find(c => c.id === rewardId && c.kind !== "gold");
|
||||
if (rewardId !== null && !reward) {
|
||||
const reward = item.choices.find(c => c.id === choiceId && c.kind !== "gold");
|
||||
if (choiceId !== null && !reward) {
|
||||
throw new Error("Choose one pending reward or skip");
|
||||
}
|
||||
// 结果只计算一次;保存失败后的重试不再次发放金币。
|
||||
|
||||
@@ -13,19 +13,18 @@ export function hasPendingDeathBlow(source) {
|
||||
return pendingDeathBlows.has(source);
|
||||
}
|
||||
|
||||
export async function beginDeathBlow(source, target, intent, battle) {
|
||||
export async function beginDeathBlow(source, target, intent) {
|
||||
if (!isDeathBlowIntent(intent)) {
|
||||
throw new TypeError("濒死一击需要 death_blow 意图类型");
|
||||
}
|
||||
if (attackHitCount(intent) !== 1) {
|
||||
throw new RangeError("濒死一击只能造成一次伤害");
|
||||
}
|
||||
const damage = outgoingAttackDamage(intent, source, battle);
|
||||
const damage = outgoingAttackDamage(intent, source);
|
||||
if (!source?.isAlive() || !target?.isAlive()) return false;
|
||||
|
||||
const hit = target.damage(damage, source);
|
||||
hit.mengsanAttack_shuying = true;
|
||||
hit.mengsanScriptedSkill_shuying = true;
|
||||
await hit;
|
||||
if (source.isAlive()) pendingDeathBlows.add(source);
|
||||
return true;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { slowAttackDamage } from "../monsters/effigy-slow.js";
|
||||
import { shrinkAttackDamage } from "../monsters/shrinker-status.js";
|
||||
import { applyBodyguardDamage, ironcladStrengthPenalty } from "../cards/ironclad-hooks.js";
|
||||
import { applyInterceptDamage, applyIntangibleDamage } from "../cards/shared-hooks.js";
|
||||
import { campEnemy } from "./camps.js";
|
||||
import { ironcladStrengthPenalty } from "../cards/ironclad-hooks.js";
|
||||
|
||||
export function attackHitCount(intent) {
|
||||
const hits = intent.hits ?? 1;
|
||||
@@ -12,28 +10,23 @@ export function attackHitCount(intent) {
|
||||
return hits;
|
||||
}
|
||||
|
||||
export function applyAttackWeakness(damage, source, owner, relics) {
|
||||
if (!(source?.storage?.mengsanWeak_shuying > 0)) return damage;
|
||||
const multiplier = campEnemy(owner, source) && relics?.has("paper_krane") ? 0.6 : 0.75;
|
||||
return Math.floor(damage * multiplier);
|
||||
}
|
||||
|
||||
export function outgoingAttackDamage(intent, source, battle) {
|
||||
export function outgoingAttackDamage(intent, source) {
|
||||
if (!Number.isInteger(intent.damage) || intent.damage < 0) {
|
||||
throw new RangeError("预测伤害必须是非负整数");
|
||||
}
|
||||
const storedStrength = source?.storage?.mengsanStrength_shuying;
|
||||
const strength = Number.isInteger(storedStrength) ? storedStrength : 0;
|
||||
const damage = Math.max(0, intent.damage + strength - ironcladStrengthPenalty(source));
|
||||
return shrinkAttackDamage(applyAttackWeakness(damage, source, battle?.owner, battle?.relics), source);
|
||||
let damage = Math.max(0, intent.damage + strength - ironcladStrengthPenalty(source));
|
||||
if (source?.storage?.mengsanWeak_shuying > 0) {
|
||||
damage = Math.floor(damage * 0.75);
|
||||
}
|
||||
return shrinkAttackDamage(damage, source);
|
||||
}
|
||||
|
||||
export function previewAttackDamage(intent, source, target, battle) {
|
||||
let damage = outgoingAttackDamage(intent, source, battle);
|
||||
export function previewAttackDamage(intent, source, target) {
|
||||
let damage = outgoingAttackDamage(intent, source);
|
||||
if (target?.storage?.mengsanVulnerable_shuying > 0) {
|
||||
damage = Math.ceil(damage * 1.5);
|
||||
}
|
||||
damage = applyInterceptDamage(damage, source, target, battle?.players);
|
||||
damage = applyBodyguardDamage(damage, source, target, battle?.players);
|
||||
return applyIntangibleDamage(slowAttackDamage(damage, target), target);
|
||||
return slowAttackDamage(damage, target);
|
||||
}
|
||||
|
||||
@@ -20,14 +20,14 @@ export function createIntentExecutor(game, getActiveBattle) {
|
||||
if (!active(source)) break;
|
||||
if (!target.isAlive()) continue;
|
||||
if (isDeathBlowIntent(move)) {
|
||||
await beginDeathBlow(source, target, move, getActiveBattle());
|
||||
await beginDeathBlow(source, target, move);
|
||||
continue;
|
||||
}
|
||||
if (move.damage != null) {
|
||||
for (let hitIndex = 0; hitIndex < attackHitCount(move); hitIndex++) {
|
||||
if (!target.isAlive() || !active(source)) break;
|
||||
const hit = target.damage(
|
||||
outgoingAttackDamage(move, source, getActiveBattle()), source);
|
||||
outgoingAttackDamage(move, source), source);
|
||||
hit.mengsanAttack_shuying = true;
|
||||
hit.mengsanScriptedSkill_shuying = true;
|
||||
await hit;
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
// Display-only readers. Entries belong to a battle session, never to the run/save.
|
||||
const sources = new WeakMap();
|
||||
|
||||
export function bindCombatStatusSource(player, session, id, read) {
|
||||
if (!player || !session?.active || typeof read !== 'function') return;
|
||||
let group = sources.get(player);
|
||||
if (!group) sources.set(player, group = new Map());
|
||||
const entry = { session, read };
|
||||
group.set(id, entry);
|
||||
session.ownResource(entry, () => {
|
||||
if (group.get(id) !== entry) return;
|
||||
group.delete(id);
|
||||
if (!group.size && sources.get(player) === group) sources.delete(player);
|
||||
});
|
||||
}
|
||||
|
||||
export function readCombatStatusSources(player, session) {
|
||||
if (!session?.active) return [];
|
||||
const result = [];
|
||||
for (const [id, entry] of sources.get(player) || []) {
|
||||
if (entry.session !== session) continue;
|
||||
const state = entry.read();
|
||||
if (state) result.push({ id, state });
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
import { cardPackDefinitions } from "./packs/data.js";
|
||||
import { cardTypes, cardRarityLabels } from "./classification-types.js";
|
||||
import { liubeiCardTraits } from "./packs/liubei/traits.js";
|
||||
import { isRetiredDeckCard } from "./retired-cards.js";
|
||||
const definitions = [
|
||||
...cardPackDefinitions,
|
||||
{ name: "sha", category: "damage", owner: null, ...liubeiCardTraits.sha },
|
||||
@@ -43,6 +42,6 @@ export const cardDefinitions = createCardRegistry(definitions);
|
||||
|
||||
export function canAcquireCard(character, name, registry = cardDefinitions) {
|
||||
const definition = Object.hasOwn(registry, name) ? registry[name] : null;
|
||||
return !!definition && !definition.generatedOnly && !isRetiredDeckCard(character, name) &&
|
||||
return !!definition && !definition.generatedOnly &&
|
||||
(definition.owner === null || definition.owner === character);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,3 @@ export function cleanCardDescription(value) {
|
||||
.replace(/^(?:主动使用消耗\s*\d+\s*(?:点)?费用|响应不消耗费用|\d+\s*(?:点)?费(?:用)?)[。;::,,]\s*/, "")
|
||||
.replace(/^(?:主动使用消耗X费用|X费)[。;]\s*/, "消耗当前剩余费用,消耗量为X。");
|
||||
}
|
||||
|
||||
export function cardDescriptionText(card, definition, fallback) {
|
||||
const prompt = typeof definition?.cardPrompt === "function" ? definition.cardPrompt(card) : null;
|
||||
return prompt || fallback || "暂无卡牌介绍。";
|
||||
}
|
||||
|
||||
@@ -26,17 +26,6 @@ export const ironcladSkillExhausts = (player,card) => Boolean(ironcladHooks(play
|
||||
export const ironcladCost = (player,card,cost) => ironcladHooks(player)?.cost(card,cost) ?? cost;
|
||||
export const ironcladCardIsFree = (player,card) => Boolean(ironcladHooks(player)?.isFree(card));
|
||||
export const ironcladStrengthPenalty = player => (ironcladHooks(player)?.strengthPenalty() || 0) + sharedStrengthPenalty(player);
|
||||
|
||||
export function applyBodyguardDamage(damage, source, target, players) {
|
||||
if (!source || !target || !players) return damage;
|
||||
let multiplier = 1;
|
||||
for (const holder of players) {
|
||||
if (ironcladHooks(holder)?.hasBodyguard?.() && holder.isFriendOf(target) && holder.isEnemyOf(source)) {
|
||||
multiplier *= holder === target ? 2 : 0.5;
|
||||
}
|
||||
}
|
||||
return multiplier === 1 ? damage : Math.floor(damage * multiplier);
|
||||
}
|
||||
export const queueIroncladExhaust = (player,card) => ironcladHooks(player)?.queueExhaust(card);
|
||||
export const flushIroncladExhaust = async player => { await ironcladHooks(player)?.flushExhaust(); await flushRelicExhaust(player); };
|
||||
export const afterIroncladDraw = async (player,cards) => { await ironcladHooks(player)?.afterDraw(cards); };
|
||||
|
||||
@@ -58,12 +58,12 @@ export function createMengsanCards({ cardPacks, isBattleActive = () => true } =
|
||||
card.sha.cardPrompt = used => {
|
||||
const damage = cardUpgradeLevel(used)
|
||||
? cardUpgradeRule("sha").damage : SHA_DAMAGE;
|
||||
return `出牌阶段,对攻击范围内的一名角色使用。目标须使用【闪】,否则受到${damage}点伤害。每回合使用次数不限。`;
|
||||
return `梦三:主动使用消耗1费用;目标须使用【闪】,` +
|
||||
`否则受到${damage}点伤害。每回合使用次数不限。`;
|
||||
};
|
||||
translate.sha_info = card.sha.cardPrompt({ name: "sha" });
|
||||
translate.sha_info = `梦三:主动使用消耗1费用。出牌阶段,对攻击范围内的一名角色使用;其须使用【闪】,否则受到${SHA_DAMAGE}点伤害。每回合使用次数不限。`;
|
||||
card.tao.content = async function (event) { await event.target.recover(8); };
|
||||
translate.tao_info = "出牌阶段,为自己回复8点生命。救援濒死角色时,为该角色回复8点生命,且不消耗费用。";
|
||||
card.tao.cardPrompt = () => translate.tao_info;
|
||||
translate.tao_info = "梦三:主动使用消耗1费用,回复8点生命;濒死救援不消耗费用,同样回复8点生命。";
|
||||
card.taoyuan.content = async function (event) { await event.target.recover(8); };
|
||||
translate.taoyuan_info = "梦三:主动使用消耗2费用。所有角色各回复8点生命。";
|
||||
card.taoyuan.cardPrompt = () => translate.taoyuan_info;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 角色牌组
|
||||
|
||||
当前刘备主表 94 张:新增 67 张、沿用 27 张;另有衍生牌【巨石】。专属牌归刘备,基础打击/痛击分别沿用杀/重杀。所有正常获得入口沿用 `canAcquireCard` 的角色检查。杀、重杀保留原有通用牌归属,并纳入刘备的随机生成牌池。旧存档的独立打击/痛击转换为杀/重杀,保留实例ID、强化和词缀;待结算候选保留原ID以避免冲突。
|
||||
当前铁甲战士主表 94 张:新增 67 张、沿用 27 张;另有衍生牌【巨石】。专属牌归刘备,基础打击/痛击分别沿用杀/重杀。所有正常获得入口沿用 `canAcquireCard` 的角色检查。杀、重杀保留原有通用牌归属,并纳入刘备的随机生成牌池。旧存档的独立打击/痛击转换为杀/重杀,保留实例ID、强化和词缀;待结算候选保留原ID以避免冲突。
|
||||
|
||||
| 目录/文件 | 职责 |
|
||||
| --- | --- |
|
||||
|
||||
@@ -80,7 +80,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "对目标造成8点伤害,再对其余敌人造成等量的非攻击伤害。",
|
||||
"description": "造成8点伤害。对所有其他敌人造成等量的伤害。",
|
||||
"base": {
|
||||
"damage": 8,
|
||||
"hits": 1
|
||||
@@ -89,7 +89,7 @@ export const colorlessCards = Object.freeze([
|
||||
"damage": 11,
|
||||
"hits": 1,
|
||||
"cost": 0,
|
||||
"description": "对目标造成11点伤害,再对其余敌人造成等量的非攻击伤害。"
|
||||
"description": "造成11点伤害。对所有其他敌人造成等量的伤害。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -122,7 +122,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "造成7点伤害,并获得等量格挡。被敌人格挡吸收的伤害也计入。",
|
||||
"description": "造成7点伤害。获得等量于所造成伤害的格挡。",
|
||||
"base": {
|
||||
"damage": 7,
|
||||
"hits": 1
|
||||
@@ -131,7 +131,7 @@ export const colorlessCards = Object.freeze([
|
||||
"damage": 9,
|
||||
"hits": 1,
|
||||
"cost": 1,
|
||||
"description": "造成9点伤害,并获得等量格挡。被敌人格挡吸收的伤害也计入。"
|
||||
"description": "造成9点伤害。获得等量于所造成伤害的格挡。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -143,7 +143,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "造成5点伤害。本回合每有一次其他友方角色对该目标的攻击,此牌的基础伤害增加5点。",
|
||||
"description": "造成5点伤害。本回合其他玩家每攻击过一次该敌人,该牌造成的伤害就额外增加5点。",
|
||||
"base": {
|
||||
"damage": 5,
|
||||
"hits": 1,
|
||||
@@ -154,7 +154,7 @@ export const colorlessCards = Object.freeze([
|
||||
"hits": 1,
|
||||
"perAllyAttack": 7,
|
||||
"cost": 1,
|
||||
"description": "造成5点伤害。本回合每有一次其他友方角色对该目标的攻击,此牌的基础伤害增加7点。"
|
||||
"description": "造成5点伤害。本回合其他玩家每攻击过一次该敌人,该牌造成的伤害就额外增加7点。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -229,7 +229,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "使一名敌人失去9点力量,直到该敌人自己的回合结束。消耗。",
|
||||
"description": "使一名敌人在本回合失去9点力量。消耗。",
|
||||
"base": {
|
||||
"exhaust": true,
|
||||
"negativeStrength": 9
|
||||
@@ -238,7 +238,7 @@ export const colorlessCards = Object.freeze([
|
||||
"exhaust": true,
|
||||
"negativeStrength": 15,
|
||||
"cost": 0,
|
||||
"description": "使一名敌人失去15点力量,直到该敌人自己的回合结束。消耗。"
|
||||
"description": "使一名敌人在本回合失去15点力量。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -354,7 +354,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "补充2点费用。消耗。",
|
||||
"description": "获得2点能量。消耗。",
|
||||
"base": {
|
||||
"exhaust": true,
|
||||
"energy": 2
|
||||
@@ -363,7 +363,7 @@ export const colorlessCards = Object.freeze([
|
||||
"exhaust": true,
|
||||
"energy": 3,
|
||||
"cost": 0,
|
||||
"description": "补充3点费用。消耗。"
|
||||
"description": "获得3点能量。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -375,14 +375,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "为另一名友方角色补充2点费用。若当前轮到该角色,立即生效,否则在其下个回合开始时补充。",
|
||||
"description": "另一名玩家获得2点能量。",
|
||||
"base": {
|
||||
"allyEnergy": 2
|
||||
},
|
||||
"upgraded": {
|
||||
"allyEnergy": 3,
|
||||
"cost": 0,
|
||||
"description": "为另一名友方角色补充3点费用。若当前轮到该角色,立即生效,否则在其下个回合开始时补充。"
|
||||
"description": "另一名玩家获得3点能量。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -394,7 +394,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "保留。若结算时你没有手牌,抽2张牌并补充2点费用。",
|
||||
"description": "保留。如果你的手牌为空,则抽2张牌并获得2点能量。",
|
||||
"base": {
|
||||
"retain": true,
|
||||
"emptyDraw": 2,
|
||||
@@ -405,7 +405,7 @@ export const colorlessCards = Object.freeze([
|
||||
"emptyDraw": 3,
|
||||
"emptyEnergy": 3,
|
||||
"cost": 0,
|
||||
"description": "保留。若结算时你没有手牌,抽3张牌并补充3点费用。"
|
||||
"description": "保留。如果你的手牌为空,则抽3张牌并获得3点能量。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -417,13 +417,13 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "记录你当前的格挡值。在你的下个回合开始时,获得等量格挡。消耗。",
|
||||
"description": "在下个回合获得等量于你当前格挡值的格挡。消耗。",
|
||||
"base": {
|
||||
"exhaust": true
|
||||
},
|
||||
"upgraded": {
|
||||
"cost": 0,
|
||||
"description": "记录你当前的格挡值。在你的下个回合开始时,获得等量格挡。"
|
||||
"description": "在下个回合获得等量于你当前格挡值的格挡。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -435,7 +435,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "获得30点格挡。此后,直到你的回合结束两次,你无法再通过卡牌获得格挡。消耗。",
|
||||
"description": "获得30点格挡。你在接下来的2回合内无法再从卡牌中获得格挡。消耗。",
|
||||
"base": {
|
||||
"exhaust": true,
|
||||
"block": 30
|
||||
@@ -444,7 +444,7 @@ export const colorlessCards = Object.freeze([
|
||||
"exhaust": true,
|
||||
"block": 40,
|
||||
"cost": 0,
|
||||
"description": "获得40点格挡。此后,直到你的回合结束两次,你无法再通过卡牌获得格挡。消耗。"
|
||||
"description": "获得40点格挡。你在接下来的2回合内无法再从卡牌中获得格挡。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -456,7 +456,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "你和每名其他友方角色各抽2张牌。消耗。",
|
||||
"description": "所有玩家抽2张牌。消耗。",
|
||||
"base": {
|
||||
"exhaust": true,
|
||||
"teamDraw": 2
|
||||
@@ -465,7 +465,7 @@ export const colorlessCards = Object.freeze([
|
||||
"exhaust": true,
|
||||
"teamDraw": 3,
|
||||
"cost": 1,
|
||||
"description": "你和每名其他友方角色各抽3张牌。消耗。"
|
||||
"description": "所有玩家抽3张牌。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -514,14 +514,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "获得9点格挡。选择一名其他友方角色。直到你的下个回合开始,敌人对其的攻击伤害归零,对你的攻击伤害翻倍。",
|
||||
"description": "获得9点格挡。将本回合所有要对另一名玩家发起的攻击转移到你的身上。",
|
||||
"base": {
|
||||
"block": 9
|
||||
},
|
||||
"upgraded": {
|
||||
"block": 13,
|
||||
"cost": 1,
|
||||
"description": "获得13点格挡。选择一名其他友方角色。直到你的下个回合开始,敌人对其的攻击伤害归零,对你的攻击伤害翻倍。"
|
||||
"description": "获得13点格挡。将本回合所有要对另一名玩家发起的攻击转移到你的身上。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -533,14 +533,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "让另一名友方角色获得11点格挡。",
|
||||
"description": "给另一名玩家11点格挡。",
|
||||
"base": {
|
||||
"allyBlock": 11
|
||||
},
|
||||
"upgraded": {
|
||||
"allyBlock": 16,
|
||||
"cost": 1,
|
||||
"description": "让另一名友方角色获得16点格挡。"
|
||||
"description": "给另一名玩家16点格挡。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -552,14 +552,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "每名其他友方角色各获得5点力量,持续到各自的行动回合结束。",
|
||||
"description": "在本回合给予其他玩家5点力量。",
|
||||
"base": {
|
||||
"teamStrength": 5
|
||||
},
|
||||
"upgraded": {
|
||||
"teamStrength": 8,
|
||||
"cost": 1,
|
||||
"description": "每名其他友方角色各获得8点力量,持续到各自的行动回合结束。"
|
||||
"description": "在本回合给予其他玩家8点力量。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -571,14 +571,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 2,
|
||||
"description": "从你的抽牌堆随机选取2张牌并免费打出。",
|
||||
"description": "从你的抽牌堆中随机打出2张牌。",
|
||||
"base": {
|
||||
"autoDraw": 2
|
||||
},
|
||||
"upgraded": {
|
||||
"autoDraw": 3,
|
||||
"cost": 2,
|
||||
"description": "从你的抽牌堆随机选取3张牌并免费打出。"
|
||||
"description": "从你的抽牌堆中随机打出3张牌。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -609,14 +609,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "uncommon",
|
||||
"cost": 2,
|
||||
"description": "在你的第3次回合结束阶段,对所有敌人造成40点非攻击伤害。",
|
||||
"description": "在3回合结束后,对所有敌人造成40点伤害。",
|
||||
"base": {
|
||||
"bombDamage": 40
|
||||
},
|
||||
"upgraded": {
|
||||
"bombDamage": 50,
|
||||
"cost": 2,
|
||||
"description": "在你的第3次回合结束阶段,对所有敌人造成50点非攻击伤害。"
|
||||
"description": "在3回合结束后,对所有敌人造成50点伤害。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -653,14 +653,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "uncommon",
|
||||
"cost": 0,
|
||||
"description": "你每打出5张牌,对所有敌人造成10点非攻击伤害。计数在你的回合开始时清零。",
|
||||
"description": "每当你在一回合内打出五张牌时,对所有敌人造成10点伤害。",
|
||||
"base": {
|
||||
"panache": 10
|
||||
},
|
||||
"upgraded": {
|
||||
"panache": 14,
|
||||
"cost": 0,
|
||||
"description": "你每打出5张牌,对所有敌人造成14点非攻击伤害。计数在你的回合开始时清零。"
|
||||
"description": "每当你在一回合内打出五张牌时,对所有敌人造成14点伤害。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -693,14 +693,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "名称含「防御」的牌使你获得格挡时,额外增加4点格挡。",
|
||||
"description": "从“防御”牌中额外获得4点格挡。",
|
||||
"base": {
|
||||
"defendBonus": 4
|
||||
},
|
||||
"upgraded": {
|
||||
"defendBonus": 6,
|
||||
"cost": 1,
|
||||
"description": "名称含「防御」的牌使你获得格挡时,额外增加6点格挡。"
|
||||
"description": "从“防御”牌中额外获得6点格挡。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -731,14 +731,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "累计每抽满10张牌,补充1点费用。",
|
||||
"description": "你每抽10张牌,获得1点能量。",
|
||||
"base": {
|
||||
"automation": 1
|
||||
},
|
||||
"upgraded": {
|
||||
"automation": 1,
|
||||
"cost": 0,
|
||||
"description": "累计每抽满10张牌,补充1点费用。"
|
||||
"description": "你每抽10张牌,获得1点能量。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -792,7 +792,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "rare",
|
||||
"cost": 1,
|
||||
"description": "本场战斗中,玩家方每打出1张牌,此牌便造成1点基础伤害。本次打出也计入。",
|
||||
"description": "造成本场战斗中所打出牌数的伤害。",
|
||||
"base": {
|
||||
"hits": 1
|
||||
},
|
||||
@@ -800,7 +800,7 @@ export const colorlessCards = Object.freeze([
|
||||
"retain": true,
|
||||
"hits": 1,
|
||||
"cost": 1,
|
||||
"description": "保留。本场战斗中,玩家方每打出1张牌,此牌便造成1点基础伤害。本次打出也计入。"
|
||||
"description": "保留。造成本场战斗中所打出牌数的伤害。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -835,7 +835,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "rare",
|
||||
"cost": 2,
|
||||
"description": "造成20点伤害。若玩家用此牌击杀敌人,获得20金币。",
|
||||
"description": "造成20点伤害。斩杀时,获得20金币。",
|
||||
"base": {
|
||||
"damage": 20,
|
||||
"hits": 1,
|
||||
@@ -846,7 +846,7 @@ export const colorlessCards = Object.freeze([
|
||||
"hits": 1,
|
||||
"killGold": 25,
|
||||
"cost": 2,
|
||||
"description": "造成25点伤害。若玩家用此牌击杀敌人,获得25金币。"
|
||||
"description": "造成25点伤害。斩杀时,获得25金币。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -858,7 +858,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "rare",
|
||||
"cost": 3,
|
||||
"description": "造成25点伤害。从基础费用为0的牌中随机生成3张,加入你的手牌。",
|
||||
"description": "造成25点伤害。将3张随机0能量的牌加入你的手牌。",
|
||||
"base": {
|
||||
"damage": 25,
|
||||
"hits": 1,
|
||||
@@ -870,7 +870,7 @@ export const colorlessCards = Object.freeze([
|
||||
"generateZero": 3,
|
||||
"generatedUpgrade": 1,
|
||||
"cost": 3,
|
||||
"description": "造成30点伤害。从基础费用为0的牌中随机生成3张,能强化的先强化,再加入你的手牌。"
|
||||
"description": "造成30点伤害。将3张随机升级过的0能量的牌加入你的手牌。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -882,7 +882,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "rare",
|
||||
"cost": 3,
|
||||
"description": "造成10点伤害。直到你的下个回合开始,其他友方角色对该敌人造成的伤害翻倍。",
|
||||
"description": "造成10点伤害。该敌人在本回合受到的来自其他玩家的伤害变为两倍。",
|
||||
"base": {
|
||||
"damage": 10,
|
||||
"hits": 1,
|
||||
@@ -893,7 +893,7 @@ export const colorlessCards = Object.freeze([
|
||||
"hits": 1,
|
||||
"allyDamageMultiplier": 3,
|
||||
"cost": 3,
|
||||
"description": "造成14点伤害。直到你的下个回合开始,其他友方角色对该敌人造成的伤害变为3倍。"
|
||||
"description": "造成14点伤害。该敌人在本回合受到的来自其他玩家的伤害变为三倍。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -981,7 +981,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "rare",
|
||||
"cost": 1,
|
||||
"description": "抽牌直到手牌数量达到当前上限。消耗。",
|
||||
"description": "抽牌直到抽满手牌。消耗。",
|
||||
"base": {
|
||||
"exhaust": true
|
||||
},
|
||||
@@ -989,7 +989,7 @@ export const colorlessCards = Object.freeze([
|
||||
"exhaust": true,
|
||||
"retain": true,
|
||||
"cost": 1,
|
||||
"description": "保留。抽牌直到手牌数量达到当前上限。消耗。"
|
||||
"description": "保留。抽牌直到抽满手牌。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1001,13 +1001,13 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "rare",
|
||||
"cost": 1,
|
||||
"description": "选择另一名友方角色,获得等同于其当前格挡值的格挡。消耗。",
|
||||
"description": "获得等同于另一位玩家格挡值的格挡。消耗。",
|
||||
"base": {
|
||||
"exhaust": true
|
||||
},
|
||||
"upgraded": {
|
||||
"cost": 1,
|
||||
"description": "选择另一名友方角色,获得等同于其当前格挡值的格挡。"
|
||||
"description": "获得等同于另一位玩家格挡值的格挡。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1039,14 +1039,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "rare",
|
||||
"cost": 2,
|
||||
"description": "你和每名其他友方角色各获得12点格挡。",
|
||||
"description": "所有玩家获得12点格挡。",
|
||||
"base": {
|
||||
"teamBlock": 12
|
||||
},
|
||||
"upgraded": {
|
||||
"teamBlock": 17,
|
||||
"cost": 2,
|
||||
"description": "你和每名其他友方角色各获得17点格挡。"
|
||||
"description": "所有玩家获得17点格挡。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1058,14 +1058,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "rare",
|
||||
"cost": 3,
|
||||
"description": "从你的弃牌堆随机选择至多3张攻击牌并免费打出。",
|
||||
"description": "打出你弃牌堆中的3张随机攻击牌。",
|
||||
"base": {
|
||||
"autoDiscard": 3
|
||||
},
|
||||
"upgraded": {
|
||||
"autoDiscard": 4,
|
||||
"cost": 3,
|
||||
"description": "从你的弃牌堆随机选择至多4张攻击牌并免费打出。"
|
||||
"description": "打出你弃牌堆中的4张随机攻击牌。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1077,11 +1077,11 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "rare",
|
||||
"cost": 1,
|
||||
"description": "每回合第一次打出攻击牌或技能牌后,将该牌从弃牌堆放回抽牌堆顶部。",
|
||||
"description": "每回合首次打出攻击或技能牌时,将其置于你的抽牌堆顶端。",
|
||||
"base": {},
|
||||
"upgraded": {
|
||||
"cost": 0,
|
||||
"description": "每回合第一次打出攻击牌或技能牌后,将该牌从弃牌堆放回抽牌堆顶部。"
|
||||
"description": "每回合首次打出攻击或技能牌时,将其置于你的抽牌堆顶端。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1093,12 +1093,12 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "rare",
|
||||
"cost": 1,
|
||||
"description": "在你的回合开始时,选择一张可以变化的手牌,将它随机变为另一张牌。",
|
||||
"description": "在你的回合开始时,变化你手牌中的1张牌。",
|
||||
"base": {},
|
||||
"upgraded": {
|
||||
"innate": true,
|
||||
"cost": 1,
|
||||
"description": "固有。在你的回合开始时,选择一张可以变化的手牌,将它随机变为另一张牌。"
|
||||
"description": "固有。在你的回合开始时,变化你手牌中的1张牌。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1110,12 +1110,12 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "rare",
|
||||
"cost": 1,
|
||||
"description": "在你的回合内,每当你获得格挡,其他友方角色各获得其一半,向下取整。",
|
||||
"description": "每当你在你的回合获得格挡时,其他玩家获得相应一半的格挡。",
|
||||
"base": {},
|
||||
"upgraded": {
|
||||
"innate": true,
|
||||
"cost": 1,
|
||||
"description": "固有。在你的回合内,每当你获得格挡,其他友方角色各获得其一半,向下取整。"
|
||||
"description": "固有。每当你在你的回合获得格挡时,其他玩家获得相应一半的格挡。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1127,11 +1127,11 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "rare",
|
||||
"cost": 2,
|
||||
"description": "你的摸牌阶段结束后,免费打出抽牌堆最上面的一张牌。",
|
||||
"description": "在你的回合开始时,打出你抽牌堆顶部的牌。",
|
||||
"base": {},
|
||||
"upgraded": {
|
||||
"cost": 1,
|
||||
"description": "你的摸牌阶段结束后,免费打出抽牌堆最上面的一张牌。"
|
||||
"description": "在你的回合开始时,打出你抽牌堆顶部的牌。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1178,14 +1178,14 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "rare",
|
||||
"cost": 3,
|
||||
"description": "获得9层覆甲。回合结束时获得等同于层数的格挡,你的回合开始时减少1层。",
|
||||
"description": "获得9层覆甲。",
|
||||
"base": {
|
||||
"plating": 9
|
||||
},
|
||||
"upgraded": {
|
||||
"plating": 12,
|
||||
"cost": 3,
|
||||
"description": "获得12层覆甲。回合结束时获得等同于层数的格挡,你的回合开始时减少1层。"
|
||||
"description": "获得12层覆甲。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1197,7 +1197,7 @@ export const colorlessCards = Object.freeze([
|
||||
"cardType": "attack",
|
||||
"rarity": "uncommon",
|
||||
"cost": 1,
|
||||
"description": "造成10点伤害。此牌在本场战斗中的伤害增加15点。若有可以接收此牌的其他友方角色,将此牌交给随机一名。",
|
||||
"description": "造成10点伤害。将这张牌在本场战斗中的伤害增加15,然后将其交给一名随机盟友。",
|
||||
"base": {
|
||||
"damage": 10,
|
||||
"hits": 1,
|
||||
@@ -1208,7 +1208,7 @@ export const colorlessCards = Object.freeze([
|
||||
"hits": 1,
|
||||
"ballGrowth": 25,
|
||||
"cost": 1,
|
||||
"description": "造成10点伤害。此牌在本场战斗中的伤害增加25点。若有可以接收此牌的其他友方角色,将此牌交给随机一名。"
|
||||
"description": "造成10点伤害。将这张牌在本场战斗中的伤害增加25,然后将其交给一名随机盟友。"
|
||||
}
|
||||
}
|
||||
]);
|
||||
|
||||
@@ -52,7 +52,7 @@ export const curseCards = Object.freeze([
|
||||
"cardType": "curse",
|
||||
"rarity": "curse",
|
||||
"cost": null,
|
||||
"description": "不能被打出。此牌在你手中时,若本回合已主动打出3张牌,你不能再主动打牌。",
|
||||
"description": "不能被打出。你在本回合不能打出超过3张牌。",
|
||||
"base": {
|
||||
"unplayable": true
|
||||
}
|
||||
@@ -66,7 +66,7 @@ export const curseCards = Object.freeze([
|
||||
"cardType": "curse",
|
||||
"rarity": "curse",
|
||||
"cost": null,
|
||||
"description": "不能被打出。你的弃牌阶段开始时,若此牌仍在手牌中,你受到2点伤害。",
|
||||
"description": "不能被打出。在你的回合结束时,如果这张牌在你的手牌中, 你受到2点伤害。",
|
||||
"base": {
|
||||
"unplayable": true,
|
||||
"endDamage": 2
|
||||
@@ -81,7 +81,7 @@ export const curseCards = Object.freeze([
|
||||
"cardType": "curse",
|
||||
"rarity": "curse",
|
||||
"cost": null,
|
||||
"description": "不能被打出。你的弃牌阶段开始时,若此牌仍在手牌中,你每持有1张手牌便失去1点生命。",
|
||||
"description": "不能被打出。在你的回合结束时,如果这张牌在你的手牌中,失去相当于手牌数量的生命。",
|
||||
"base": {
|
||||
"unplayable": true
|
||||
}
|
||||
@@ -126,7 +126,7 @@ export const curseCards = Object.freeze([
|
||||
"cardType": "curse",
|
||||
"rarity": "curse",
|
||||
"cost": null,
|
||||
"description": "不能被打出。带着此牌赢得5场战斗后,它会从永久牌组移除。",
|
||||
"description": "不能被打出。在5场战斗后从你的牌组中移除。",
|
||||
"base": {
|
||||
"unplayable": true
|
||||
}
|
||||
|
||||
@@ -188,14 +188,14 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "event",
|
||||
"cost": 0,
|
||||
"description": "本回合,你当前手牌的费用最高为1点。消耗。",
|
||||
"description": "在这个回合,你当前手牌中所有牌的耗能降低至1。消耗。",
|
||||
"base": {
|
||||
"exhaust": true
|
||||
},
|
||||
"upgraded": {
|
||||
"exhaust": true,
|
||||
"cost": 0,
|
||||
"description": "本场战斗中,你当前手牌的费用最高为1点。消耗。"
|
||||
"description": "在这场战斗,你当前手牌中所有牌的耗能降低至1。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -207,7 +207,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "event",
|
||||
"cost": 1,
|
||||
"description": "获得8点格挡,再补充2点费用。",
|
||||
"description": "获得8点格挡。获得2点能量。",
|
||||
"base": {
|
||||
"block": 8,
|
||||
"energy": 2
|
||||
@@ -217,7 +217,7 @@ export const eventCards = Object.freeze([
|
||||
"block": 8,
|
||||
"energy": 2,
|
||||
"cost": 1,
|
||||
"description": "固有。获得8点格挡,再补充2点费用。"
|
||||
"description": "固有。获得8点格挡。获得2点能量。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -229,7 +229,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "event",
|
||||
"cost": 1,
|
||||
"description": "获得8点格挡,再抽3张牌。",
|
||||
"description": "获得8点格挡。抽3张牌",
|
||||
"base": {
|
||||
"block": 8,
|
||||
"draw": 3
|
||||
@@ -239,7 +239,7 @@ export const eventCards = Object.freeze([
|
||||
"block": 8,
|
||||
"draw": 3,
|
||||
"cost": 1,
|
||||
"description": "固有。获得8点格挡,再抽3张牌。"
|
||||
"description": "固有。获得8点格挡。抽3张牌"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -337,7 +337,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "event",
|
||||
"cost": 1,
|
||||
"description": "本场战斗中,你打出能力牌的费用减少1点。",
|
||||
"description": "能力牌的耗能减少1能量。",
|
||||
"base": {
|
||||
"powerDiscount": 1
|
||||
},
|
||||
@@ -345,7 +345,7 @@ export const eventCards = Object.freeze([
|
||||
"innate": true,
|
||||
"powerDiscount": 1,
|
||||
"cost": 1,
|
||||
"description": "固有。本场战斗中,你打出能力牌的费用减少1点。"
|
||||
"description": "固有。能力牌的耗能减少1能量。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -357,7 +357,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "power",
|
||||
"rarity": "event",
|
||||
"cost": 1,
|
||||
"description": "赢得本场战斗后,随机强化永久牌组中一张可强化的牌。",
|
||||
"description": "在战斗结束时,升级你牌组中的一张随机牌。",
|
||||
"base": {
|
||||
"battleUpgrade": 1
|
||||
},
|
||||
@@ -365,7 +365,7 @@ export const eventCards = Object.freeze([
|
||||
"innate": true,
|
||||
"battleUpgrade": 1,
|
||||
"cost": 1,
|
||||
"description": "固有。赢得本场战斗后,随机强化永久牌组中一张可强化的牌。"
|
||||
"description": "固有。在战斗结束时,升级你牌组中的一张随机牌。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -468,7 +468,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "ancient",
|
||||
"cost": 0,
|
||||
"description": "补充2点费用,抽2张牌。若此时生命已满,先失去1点生命。随后降低1点最大生命。",
|
||||
"description": "获得2点能量。抽2张牌。失去1点最大生命。",
|
||||
"base": {
|
||||
"draw": 2,
|
||||
"energy": 2
|
||||
@@ -477,7 +477,7 @@ export const eventCards = Object.freeze([
|
||||
"draw": 3,
|
||||
"energy": 3,
|
||||
"cost": 0,
|
||||
"description": "补充3点费用,抽3张牌。若此时生命已满,先失去1点生命。随后降低1点最大生命。"
|
||||
"description": "获得3点能量。抽3张牌。失去1点最大生命。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -511,7 +511,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "ancient",
|
||||
"cost": 2,
|
||||
"description": "固有。强化本场战斗中属于你的所有可强化牌。消耗。",
|
||||
"description": "固有。升级你的全部卡牌。消耗。",
|
||||
"base": {
|
||||
"exhaust": true,
|
||||
"innate": true
|
||||
@@ -520,7 +520,7 @@ export const eventCards = Object.freeze([
|
||||
"exhaust": true,
|
||||
"innate": true,
|
||||
"cost": 1,
|
||||
"description": "固有。强化本场战斗中属于你的所有可强化牌。消耗。"
|
||||
"description": "固有。升级你的全部卡牌。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -532,7 +532,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "ancient",
|
||||
"cost": 3,
|
||||
"description": "获得15点格挡。在你的下个回合开始时,抽2张牌并补充2点费用。消耗。",
|
||||
"description": "获得15点格挡。下个回合,抽2张牌并获得2点能量。消耗。",
|
||||
"base": {
|
||||
"exhaust": true,
|
||||
"block": 15,
|
||||
@@ -545,7 +545,7 @@ export const eventCards = Object.freeze([
|
||||
"nextDraw": 3,
|
||||
"nextEnergy": 3,
|
||||
"cost": 3,
|
||||
"description": "获得17点格挡。在你的下个回合开始时,抽3张牌并补充3点费用。消耗。"
|
||||
"description": "获得17点格挡。下个回合,抽3张牌并获得3点能量。消耗。"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -557,7 +557,7 @@ export const eventCards = Object.freeze([
|
||||
"cardType": "skill",
|
||||
"rarity": "ancient",
|
||||
"cost": 1,
|
||||
"description": "从随机出现的至多3张能力牌中选一张,加入手牌。本回合可免费打出该牌。消耗。",
|
||||
"description": "从3张能力牌中选择1张加入你的手牌。这张牌在本回合可以免费打出。消耗。",
|
||||
"base": {
|
||||
"exhaust": true
|
||||
},
|
||||
@@ -565,7 +565,7 @@ export const eventCards = Object.freeze([
|
||||
"exhaust": true,
|
||||
"generatedUpgrade": 1,
|
||||
"cost": 1,
|
||||
"description": "从随机出现的至多3张能力牌中选一张,能强化时将其强化,再加入手牌。本回合可免费打出该牌。消耗。"
|
||||
"description": "从3张升级过的能力牌中选择1张加入你的手牌。这张牌在本回合可以免费打出。消耗。"
|
||||
}
|
||||
}
|
||||
]);
|
||||
|
||||
@@ -7,7 +7,7 @@ import { isStrikeCard } from "../../strike-counter.js";
|
||||
import { snapshotRampage, copyRampageGrowth } from "../../rampage.js";
|
||||
import { isAttackCard } from "../../../monsters/vine-tangled.js";
|
||||
import { authorizeFreeCardUse, takeXCardUse, cardCost } from "../../../battle/combat-rules.js";
|
||||
import { applyBodyguardDamage, bindIroncladHooks } from "../../ironclad-hooks.js";
|
||||
import { bindIroncladHooks } from "../../ironclad-hooks.js";
|
||||
import { sharedHooks } from "../../shared-hooks.js";
|
||||
import { temporaryStrengthAmount } from "../../temporary-strength.js";
|
||||
import { shrinkAttackDamage } from "../../../monsters/shrinker-status.js";
|
||||
@@ -36,12 +36,9 @@ const originalOf = event => {
|
||||
return use?.mengsanIcRepeatOriginal_shuying || use?.cards?.find(c=>c.name===use.card?.name) || event.card;
|
||||
};
|
||||
|
||||
import { bindCombatStatusSource } from "../../../battle/status-sources.js";
|
||||
|
||||
export function createAdvancedIronclad({game,get,lib,status,getBattle,battleEnergy,random}) {
|
||||
const states=new WeakMap(), uses=new WeakMap(), hits=new WeakMap(), growth=new WeakMap();
|
||||
const seenUses=new WeakSet(), seenBlocks=new WeakSet(), seenDraws=new WeakSet();
|
||||
const bridgeSignals = new WeakMap();
|
||||
const valid=(player,token)=>Boolean(token && getBattle()===token.battle && token.session.active &&
|
||||
token.battle.session===token.session && token.battle.root===token.root &&
|
||||
token.battle.players.has(player) && player?.isAlive?.());
|
||||
@@ -81,13 +78,11 @@ export function createAdvancedIronclad({game,get,lib,status,getBattle,battleEner
|
||||
s={player,token,powers:Object.create(null),turn:Object.create(null),queue:[],flushing:false,
|
||||
autoQueue:[],autoBusy:false,freeCards:new WeakSet(),negativeStrength:0,autoCount:0};
|
||||
states.set(player,s); player.addSkill(MARK);
|
||||
bindCombatStatusSource(player,token.session,"ironclad-advanced",()=>stateOf(player));
|
||||
token.session.ownResource(s,()=>{if(states.get(player)===s){states.delete(player);player.removeSkill(MARK);s.queue.length=0;s.autoQueue.length=0;}});
|
||||
bindIroncladHooks(player,token.session,{
|
||||
valid:()=>valid(player,token),
|
||||
blocksDraw:()=>Boolean(s.turn.noDraw), blocksEnergy:()=>Boolean(s.turn.noEnergy),
|
||||
preservesBlock:()=>Boolean(s.powers.barricade),
|
||||
hasBodyguard: () => Boolean(s.powers.bodyguard),
|
||||
skillExhausts:card=>Boolean(s.powers.corruption && skillCard(card)),
|
||||
strengthPenalty:()=>s.negativeStrength,
|
||||
isFree:card=>{
|
||||
@@ -421,17 +416,9 @@ export function createAdvancedIronclad({game,get,lib,status,getBattle,battleEner
|
||||
async content(event,trigger,player){trigger.num=Math.max(0,trigger.num-stateOf(player).negativeStrength);}},
|
||||
[BRIDGE]:{trigger:{global:["useCard1","useCardAfter","cardsDiscardAfter","loseAfter","phaseBefore","phaseJieshuBegin","phaseAfter","drawAfter","changeHujiaAfter","damageBegin2"]},
|
||||
forced:true,silent:true,popup:false,priority:60,
|
||||
filter(event, player, name) {
|
||||
const battle = getBattle();
|
||||
return Boolean(battle?.session.active && !bridgeSignals.get(event)?.has(name) && belongs(event, battle.root));
|
||||
},
|
||||
filter(event){const battle=getBattle();return Boolean(battle?.session.active&&belongs(event,battle.root));},
|
||||
async content(event,trigger){
|
||||
const name=event.triggername;
|
||||
// 同一事件的不同阶段分别结算一次,跨座位的副本跳过。
|
||||
const signals = bridgeSignals.get(trigger) || new Set();
|
||||
if (signals.has(name)) return;
|
||||
signals.add(name);
|
||||
bridgeSignals.set(trigger, signals);
|
||||
if(name==="useCard1")await onUse(trigger);
|
||||
else if(name==="useCardAfter")await onUseAfter(trigger);
|
||||
else if(name==="phaseBefore")await turnBegin(trigger.player);
|
||||
@@ -442,7 +429,10 @@ export function createAdvancedIronclad({game,get,lib,status,getBattle,battleEner
|
||||
if(!seenDraws.has(trigger)&&!trigger.mengsanIcDrawHandled_shuying){seenDraws.add(trigger);await afterDraw(ensure(trigger.player),trigger.result?.cards||[]);}
|
||||
} else if(name==="changeHujiaAfter")await afterBlock(trigger);
|
||||
else if(name==="damageBegin2" && (trigger.mengsanAttack_shuying||isAttackCard(trigger.card))){
|
||||
trigger.num = applyBodyguardDamage(trigger.num, trigger.source, trigger.player, getBattle().players);
|
||||
let multiplier=1;
|
||||
for(const holder of getBattle().players){const s=stateOf(holder);if(s?.powers.bodyguard&&valid(holder,s.token)&&holder.isFriendOf(trigger.player)&&holder.isEnemyOf(trigger.source))
|
||||
multiplier*=holder===trigger.player?2:0.5;}
|
||||
if(multiplier!==1)trigger.num=Math.floor(trigger.num*multiplier);
|
||||
} else await flushAll();
|
||||
}},
|
||||
};
|
||||
@@ -450,19 +440,19 @@ export function createAdvancedIronclad({game,get,lib,status,getBattle,battleEner
|
||||
const r=cardUpgradeLevel(card)?spec.upgraded:spec.base,parts=[];
|
||||
if(r.damage)parts.push(`对${r.all?"所有敌人":"一名敌人"}造成${r.damage+(r.absorbAttack?growthOf(card):0)}点伤害${r.hits?`${r.hits}次`:""}。`);
|
||||
if(r.nextFreeAttack)parts.push("下一张攻击牌费用变为0。");
|
||||
if(r.exhaustReplay)parts.push("你的回合结束时,若此牌在你的消耗牌堆中,免费打出它。");
|
||||
if(r.attackDiscount)parts.push("本回合你每打出1张攻击牌,此牌的费用减少1点。");
|
||||
if(r.exhaustReplay)parts.push("回合结束时,此牌在消耗牌堆中则免费打出。");
|
||||
if(r.attackDiscount)parts.push("本回合每打出一张攻击牌,费用减少1。");
|
||||
if(r.draw)parts.push(`抽${r.draw}张牌。`);
|
||||
if(r.stopDraw)parts.push("本回合不能再抽牌。");
|
||||
if(r.generateAttack)parts.push("随机生成一张刘备攻击牌至手牌,本回合费用为0。");
|
||||
if(r.exhaustEnergy)parts.push(`当此牌被消耗时,补充${r.exhaustEnergy}点费用。`);
|
||||
if(r.energyPerAttack)parts.push("结算时,手中每有1张攻击牌便补充1点费用。");
|
||||
if(r.stopEnergy)parts.push("此后,本回合无法再获得费用。");
|
||||
if(r.generateAttack)parts.push("随机生成一张铁甲战士攻击牌至手牌,本回合费用为0。");
|
||||
if(r.exhaustEnergy)parts.push(`被消耗时获得${r.exhaustEnergy}费用。`);
|
||||
if(r.energyPerAttack)parts.push("每张攻击手牌获得1费用。");
|
||||
if(r.stopEnergy)parts.push("本回合不能再获得费用。");
|
||||
if(r.exhaustBlock)parts.push(`每张牌被消耗时获得${r.exhaustBlock}点格挡。`);
|
||||
if(r.exhaustDraw)parts.push(`每张牌被消耗时抽${r.exhaustDraw}张牌。`);
|
||||
if(r.vulnerableDraw)parts.push(`每次成功施加易伤抽${r.vulnerableDraw}张牌。`);
|
||||
if(r.plating)parts.push(`获得${r.plating}层覆甲:回合末获得等量格挡,下个自身回合开始减少1层。`);
|
||||
if(r.juggle)parts.push("每回合你打出第3张攻击牌时,将它的一张副本加入手牌。");
|
||||
if(r.juggle)parts.push("每个自身回合的第三张攻击牌复制一张至手牌。");
|
||||
if(r.innate)parts.push("固有。");
|
||||
if(r.endAttack)parts.push("回合结束时,随机免费打出一张攻击手牌,目标随机。");
|
||||
if(r.feed)parts.push(`斩杀敌人时永久增加${r.feed}点最大生命。`);
|
||||
@@ -471,9 +461,9 @@ export function createAdvancedIronclad({game,get,lib,status,getBattle,battleEner
|
||||
if(r.topPlays)parts.push(`免费打出抽牌堆顶的X${r.xBonus?"+1":""}张牌。`);
|
||||
if(r.transformAttacks)parts.push(`所有攻击手牌变为巨石${r.boulderUpgrade?"+":""},仅本场战斗。`);
|
||||
if(r.doubleTap)parts.push(`本回合接下来的${r.doubleTap}张攻击牌额外打出一次。`);
|
||||
if(r.stoke)parts.push(`消耗你的全部手牌。每消耗1张,随机获得1张刘备牌或无色牌${r.generatedUpgrade?",能强化的先强化再加入手牌":",加入手牌"}。`);
|
||||
if(r.retrieveAttack)parts.push("你的回合开始时,从你的弃牌堆随机取回1张攻击牌到手牌,并在本场战斗中强化它。");
|
||||
if(r.bodyguard)parts.push("敌人对你造成的攻击伤害翻倍,对其他友方角色造成的攻击伤害减半。");
|
||||
if(r.stoke)parts.push(`消耗所有手牌,每张随机生成一张${r.generatedUpgrade?"已强化":""}铁甲战士或无色牌至手牌。`);
|
||||
if(r.retrieveAttack)parts.push("自身回合开始,从弃牌堆随机获得一张攻击牌并强化。");
|
||||
if(r.bodyguard)parts.push("你承受敌人双倍伤害,敌人对其他友方的伤害减半。");
|
||||
if(r.autoStrike)parts.push("抽到【杀】或名称含“打击”的攻击牌时,免费向随机敌人打出。");
|
||||
if(r.firstBlock)parts.push("每个自身回合首张获得格挡的卡牌,其获得的格挡翻倍;叠加时增加可翻倍的牌数。");
|
||||
if(r.blockDamage)parts.push(`每次获得格挡,对随机敌人造成${r.blockDamage}点非攻击伤害。`);
|
||||
@@ -481,7 +471,7 @@ export function createAdvancedIronclad({game,get,lib,status,getBattle,battleEner
|
||||
if(r.copies)parts.push(`选择一张攻击或能力手牌,复制${r.copies}张至手牌。`);
|
||||
if(r.corruption)parts.push("技能牌费用变为0,打出后被消耗。");
|
||||
if(r.exhaustDiscount)parts.push("本场任意角色每消耗一张牌,费用减少1。");
|
||||
if(r.partyCopies)parts.push("在所有存活角色的弃牌堆中各放入1张此牌的副本,包括敌方角色。");
|
||||
if(r.partyCopies)parts.push("在所有存活角色的个人弃牌堆加入此牌副本。");
|
||||
if(r.grapple)parts.push(`本回合每次获得格挡,对此目标造成${r.grapple}点非攻击伤害。`);
|
||||
if(r.exhaust)parts.push("消耗。");
|
||||
if(r.power)parts.push("能力持续本场战斗,打出后退出牌堆。");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// 2026-10-03 灰机Wiki卡牌详情页主表;本作品中归刘备专属牌组。
|
||||
// 2026-10-03 灰机Wiki铁甲战士详情页主表;所有值均为当前状态。
|
||||
// 纯数据模块可被费用、升级、注册表及运行时共同导入,不依赖引擎。
|
||||
import { ironcladAdvancedEntries } from "./advanced-data.js";
|
||||
import { liubeiCardTraits } from "./traits.js";
|
||||
|
||||
@@ -41,13 +41,17 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
: { damage: 8, vulnerable: 2 };
|
||||
return "梦三:主动使用消耗2费用。对攻击范围内的" +
|
||||
`一名其他角色造成${effect.damage}点伤害,然后给予其` +
|
||||
`${effect.vulnerable}层易伤。易伤使受到的攻击伤害增加50%` +
|
||||
`${effect.vulnerable}层易伤。受到攻击伤害增加50%` +
|
||||
"(向上取整),每个自身回合结束减少1层。" +
|
||||
"每回合使用次数不限。";
|
||||
},
|
||||
};
|
||||
translate.mengsan_zhongsha = "重杀";
|
||||
translate.mengsan_zhongsha_info = card.mengsan_zhongsha.cardPrompt({ name: "mengsan_zhongsha" });
|
||||
translate.mengsan_zhongsha_info =
|
||||
"梦三:主动使用消耗2费用。出牌阶段,对攻击范围内的" +
|
||||
"一名其他角色造成8点伤害,然后给予其2层易伤。" +
|
||||
"易伤使受到的攻击伤害增加50%(向上取整)," +
|
||||
"每个自身回合结束减少1层。每回合使用次数不限。";
|
||||
// STS2 Setup Strike: the new temporary strength does not enhance its own hit.
|
||||
// STS2 Cinder: damage first, then exhaust one random remaining hand card.
|
||||
card.mengsan_yujin = {
|
||||
@@ -270,12 +274,12 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
const block = upgraded ? rule.block : rule.baseBlock;
|
||||
const damage = upgraded ? rule.damage : rule.baseDamage;
|
||||
return '梦三:主动使用消耗1费用。获得' + block +
|
||||
'点格挡,然后对一名敌方角色造成' + damage +
|
||||
'点格挡(护甲),然后对一名敌方角色造成' + damage +
|
||||
'点伤害。每回合使用次数不限。';
|
||||
},
|
||||
};
|
||||
translate.mengsan_tiezhanbo = "铁斩波";
|
||||
translate.mengsan_tiezhanbo_info = "梦三:主动使用消耗1费用。获得5点格挡," +
|
||||
translate.mengsan_tiezhanbo_info = "梦三:主动使用消耗1费用。获得5点格挡(护甲)," +
|
||||
"然后对一名敌方角色造成5点伤害。每回合使用次数不限。";
|
||||
// STS2 Twin Strike: each hit resolves on the same target separately.
|
||||
card.mengsan_shuangchongdaji = {
|
||||
@@ -395,7 +399,8 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
},
|
||||
};
|
||||
translate.mengsan_feijianhuixuanbiao = "飞剑回旋镖";
|
||||
translate.mengsan_feijianhuixuanbiao_info = card.mengsan_feijianhuixuanbiao.cardPrompt({ name: "mengsan_feijianhuixuanbiao" });
|
||||
translate.mengsan_feijianhuixuanbiao_info = "梦三:主动使用消耗1费用。随机对敌人造成3点伤害3次。" +
|
||||
"每次攻击重新随机选择存活的敌人,可以重复命中同一敌人。每回合使用次数不限。";
|
||||
// Resolve damage before drawing from the acting player's mode-owned pile.
|
||||
card.mengsan_jianbingdaji = {
|
||||
type: "basic", fullimage: true,
|
||||
@@ -467,13 +472,13 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
},
|
||||
cardPrompt(used) {
|
||||
const cost = cardCost(used || { name: "mengsan_quanshenzhuangji" });
|
||||
return `梦三:主动使用消耗${cost}费用。对一名敌方角色造成等同于你当前格挡值的伤害。` +
|
||||
return `梦三:主动使用消耗${cost}费用。对一名敌方角色造成等同于你当前格挡(护甲)值的伤害。` +
|
||||
"不消耗格挡,可以受到力量加成。" +
|
||||
"每回合使用次数不限。";
|
||||
},
|
||||
};
|
||||
translate.mengsan_quanshenzhuangji = "全身撞击";
|
||||
translate.mengsan_quanshenzhuangji_info = "梦三:主动使用消耗1费用。对一名敌方角色造成等同于你当前格挡值的伤害。" +
|
||||
translate.mengsan_quanshenzhuangji_info = "梦三:主动使用消耗1费用。对一名敌方角色造成等同于你当前格挡(护甲)值的伤害。" +
|
||||
"不消耗格挡,可以受到力量加成。每回合使用次数不限。";
|
||||
// Double only the surviving target's existing vulnerable after damage resolves.
|
||||
card.mengsan_rongrongzhiquan = {
|
||||
@@ -513,7 +518,8 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
},
|
||||
};
|
||||
translate.mengsan_rongrongzhiquan = "熔融之拳";
|
||||
translate.mengsan_rongrongzhiquan_info = card.mengsan_rongrongzhiquan.cardPrompt({ name: "mengsan_rongrongzhiquan" });
|
||||
translate.mengsan_rongrongzhiquan_info = "梦三:主动使用消耗1费用。对一名敌方角色造成10点伤害,然后将该目标已有的易伤层数翻倍。" +
|
||||
"消耗:使用后退出本场战斗。";
|
||||
// STS2【愤怒】:攻击后生成独立的战斗复制品,不扩充永久牌组。
|
||||
card.mengsan_fennu = {
|
||||
type: "basic", fullimage: true,
|
||||
@@ -548,7 +554,9 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
},
|
||||
};
|
||||
translate.mengsan_fennu = "愤怒";
|
||||
translate.mengsan_fennu_info = card.mengsan_fennu.cardPrompt({ name: "mengsan_fennu" });
|
||||
translate.mengsan_fennu_info = "梦三:主动使用消耗0费用。对一名敌方角色造成6点伤害," +
|
||||
"然后将一张此牌的复制品加入你的个人弃牌堆。复制品保留原牌状态和词缀,仅存在于本场战斗。" +
|
||||
"每回合使用次数不限。";
|
||||
// STS2【放血】:先等待原生生命流失及濒死救援,再增加当前战斗费用。
|
||||
card.mengsan_fangxue = {
|
||||
type: "basic", fullimage: true,
|
||||
@@ -607,13 +615,13 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
const rule = cardUpgradeRule("mengsan_jianyi");
|
||||
const current = cardUpgradeLevel(used);
|
||||
const block = current ? rule.block : rule.baseBlock;
|
||||
return "梦三:主动使用消耗1费用。获得" + block + "点格挡,然后" +
|
||||
return "梦三:主动使用消耗1费用。获得" + block + "点格挡(护甲),然后" +
|
||||
(current && rule.chooseExhaust ? "选择消耗" : "随机消耗") +
|
||||
"一张你的手牌(退出本场战斗,不进入弃牌堆或洗牌)。没有手牌时不消耗牌。";
|
||||
},
|
||||
};
|
||||
translate.mengsan_jianyi = "坚毅";
|
||||
translate.mengsan_jianyi_info = "梦三:主动使用消耗1费用。获得7点格挡,然后随机消耗一张你的手牌(退出本场战斗,不进入弃牌堆或洗牌)。没有手牌时不消耗牌。";
|
||||
translate.mengsan_jianyi_info = "梦三:主动使用消耗1费用。获得7点格挡(护甲),然后随机消耗一张你的手牌(退出本场战斗,不进入弃牌堆或洗牌)。没有手牌时不消耗牌。";
|
||||
// STS2【破灭】:免费使用自己的堆顶原牌,再将这一原牌消耗。
|
||||
card.mengsan_pomie = {
|
||||
type: "basic", fullimage: true,
|
||||
@@ -657,11 +665,11 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
cardPrompt(used) {
|
||||
const rule = cardUpgradeRule("mengsan_songjianwushi");
|
||||
const block = cardUpgradeLevel(used) ? rule.block : rule.baseBlock;
|
||||
return "梦三:主动使用消耗1费用。获得" + block + "点格挡,然后抽" + rule.draw + "张牌。";
|
||||
return "梦三:主动使用消耗1费用。获得" + block + "点格挡(护甲),然后抽" + rule.draw + "张牌。";
|
||||
},
|
||||
};
|
||||
translate.mengsan_songjianwushi = "耸肩无视";
|
||||
translate.mengsan_songjianwushi_info = "梦三:主动使用消耗1费用。获得8点格挡,然后抽1张牌。";
|
||||
translate.mengsan_songjianwushi_info = "梦三:主动使用消耗1费用。获得8点格挡(护甲),然后抽1张牌。";
|
||||
// STS2【暴走】:先攻击,再仅增加本场这张实体牌的伤害。
|
||||
card.mengsan_baozou = {
|
||||
type: "basic", fullimage: true,
|
||||
@@ -743,8 +751,8 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
cardPrompt(used) {
|
||||
const rule = cardUpgradeRule("mengsan_xuanfengzhan");
|
||||
const amount = cardUpgradeLevel(used) ? rule.damage : rule.baseDamage;
|
||||
return `消耗当前剩余费用,对所有敌方角色各造成${amount}点伤害,结算X次。` +
|
||||
"X按本次用于攻击的费用计算。缠结时先扣除1点附加费用。";
|
||||
return "梦三:X费用。消耗当前剩余费用,对所有敌方角色各造成" + amount +
|
||||
"点伤害X次,每次分别结算。X为本次用于攻击的费用;缠结时先扣除1点附加费用。X为0时不造成伤害。";
|
||||
},
|
||||
};
|
||||
translate.mengsan_xuanfengzhan = "旋风斩";
|
||||
@@ -808,11 +816,11 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
cardPrompt(used) {
|
||||
const rule = cardUpgradeRule("mengsan_xueqiang");
|
||||
const block = cardUpgradeLevel(used) ? rule.block : rule.baseBlock;
|
||||
return "梦三:主动使用消耗2费用。失去2点生命,然后获得" + block + "点格挡。";
|
||||
return "梦三:主动使用消耗2费用。失去2点生命,然后获得" + block + "点格挡(护甲)。";
|
||||
},
|
||||
};
|
||||
translate.mengsan_xueqiang = "血墙";
|
||||
translate.mengsan_xueqiang_info = "梦三:主动使用消耗2费用。失去2点生命,然后获得16点格挡。";
|
||||
translate.mengsan_xueqiang_info = "梦三:主动使用消耗2费用。失去2点生命,然后获得16点格挡(护甲)。";
|
||||
// STS2【战栗】:施加易伤走既有人工制品入口,消耗走原生用牌及个人牌堆。
|
||||
card.mengsan_zhanli = {
|
||||
type: "basic", fullimage: true,
|
||||
@@ -868,11 +876,11 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
ai: { order: 8, result: { player: 1 } },
|
||||
cardPrompt(used) {
|
||||
const selection = cardUpgradeLevel(used) ? "所有牌" : "一张牌";
|
||||
return "梦三:主动使用消耗1费用。获得5点格挡,然后强化你手牌中的" + selection + "(仅本场战斗)。";
|
||||
return "梦三:主动使用消耗1费用。获得5点格挡(护甲),然后强化你手牌中的" + selection + "(仅本场战斗)。";
|
||||
},
|
||||
};
|
||||
translate.mengsan_wuzhuang = "武装";
|
||||
translate.mengsan_wuzhuang_info = "梦三:主动使用消耗1费用。获得5点格挡,然后强化你手牌中的一张牌(仅本场战斗)。";
|
||||
translate.mengsan_wuzhuang_info = "梦三:主动使用消耗1费用。获得5点格挡(护甲),然后强化你手牌中的一张牌(仅本场战斗)。";
|
||||
// 【防御】沿用梦三护甲事件,保留脆弱与伤害抵扣等既有规则。
|
||||
card.mengsan_fangyu = {
|
||||
type: "basic",
|
||||
@@ -891,10 +899,12 @@ export function createLegacyLiuBeiCards({ copyToDiscard, reclaimFromDiscard, tem
|
||||
await player.changeHujia(cardUpgradeLevel(event.card) ? 8 : 5);
|
||||
},
|
||||
ai: { order: 7, result: { target: 1 } },
|
||||
cardPrompt(used) { return `梦三:主动使用消耗1费用。获得${cardUpgradeLevel(used) ? 8 : 5}点格挡。`; },
|
||||
cardPrompt(used) { return `梦三:主动使用消耗1费用。获得${cardUpgradeLevel(used) ? 8 : 5}点格挡(护甲)。`; },
|
||||
};
|
||||
translate.mengsan_fangyu = "防御";
|
||||
translate.mengsan_fangyu_info = card.mengsan_fangyu.cardPrompt({ name: "mengsan_fangyu" });
|
||||
translate.mengsan_fangyu_info =
|
||||
"梦三:主动使用消耗1费用。出牌阶段,对自己使用,获得5点格挡(护甲)。" +
|
||||
"每回合使用次数不限。";
|
||||
// 【桃】的回复量也由梦三牌本体提供;救援仍不消耗费用。
|
||||
return { cards:card, translate, names:Object.keys(card) };
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import { canPayCard, cardCost, isActiveCardUse } from "../../../battle/combat-ru
|
||||
import { isAttackCard } from "../../../monsters/vine-tangled.js";
|
||||
import { applyMengsanDebuff } from "../../../monsters/artifact-status.js";
|
||||
import { createAdvancedIronclad } from "./advanced.js";
|
||||
import { bindCombatStatusSource } from "../../../battle/status-sources.js";
|
||||
|
||||
const POWER_SKILL = "mengsan_ic_powers_shuying";
|
||||
const belongsTo = (event, root) => {
|
||||
@@ -43,13 +42,12 @@ export function createIroncladRuntime({ game, get, lib, status, getBattle, handE
|
||||
player.removeSkill(POWER_SKILL);
|
||||
});
|
||||
states.set(player, s);
|
||||
bindCombatStatusSource(player, token.session, "ironclad", () => stateOf(player));
|
||||
player.addSkill(POWER_SKILL);
|
||||
return s;
|
||||
};
|
||||
const add = (object, key, n) => {
|
||||
const next = (object[key] || 0) + n;
|
||||
if (!Number.isFinite(next) || next < 0 || next > Number.MAX_SAFE_INTEGER) throw new RangeError("刘备效果数值越界");
|
||||
if (!Number.isFinite(next) || next < 0 || next > Number.MAX_SAFE_INTEGER) throw new RangeError("铁甲战士效果数值越界");
|
||||
object[key] = next;
|
||||
};
|
||||
const strength = (player, n, token) => {
|
||||
@@ -79,7 +77,7 @@ export function createIroncladRuntime({ game, get, lib, status, getBattle, handE
|
||||
};
|
||||
const exhaustHands = async (player, event, token, filter = () => true, afterEach = null) => {
|
||||
const pile = pileOf(player, token);
|
||||
if (typeof pile?.exhaustFromHand !== "function") throw new Error("刘备缺少个人消耗接口");
|
||||
if (typeof pile?.exhaustFromHand !== "function") throw new Error("铁甲战士缺少个人消耗接口");
|
||||
const playing = new Set(event.cards || []);
|
||||
const cards = player.getCards("h").filter(c => !playing.has(c) && filter(c));
|
||||
let count = 0;
|
||||
@@ -101,39 +99,39 @@ export function createIroncladRuntime({ game, get, lib, status, getBattle, handE
|
||||
if (r.block) out.push(`获得${r.block}点格挡。`);
|
||||
if (r.exhaustTurnBlock) out.push(`本回合消耗过卡牌时,再获得${r.block}点格挡。`);
|
||||
if (r.doubleBlock) out.push("将当前格挡翻倍。");
|
||||
if (r.allyBlock) out.push("令另一名友方角色获得格挡,数值等于你失去生命后的格挡值。");
|
||||
if (r.allyBlock) out.push("给予另一名友方角色等于自己当前格挡值的格挡。");
|
||||
if (r.chooseExhaust) out.push("消耗一张手牌。");
|
||||
if (r.exhaustNonAttacks) out.push(`消耗所有非攻击手牌,每张获得${r.blockPerExhaust}点格挡。`);
|
||||
if (r.hitsPerExhaust) out.push(`消耗所有手牌。每消耗1张,对同一名敌人造成${r.damage}点伤害。`);
|
||||
if (r.hitsPerExhaust) out.push(`消耗所有手牌,每张对一名敌人造成${r.damage}点伤害。`);
|
||||
else if (r.damage) {
|
||||
let text = `${r.all ? "对所有敌人" : "对一名敌人"}造成${r.damage}点伤害`;
|
||||
if (r.hits) text += `${r.hits}次`;
|
||||
out.push(text + "。");
|
||||
}
|
||||
if (r.minExhaust) out.unshift(`仅当个人消耗牌堆至少${r.minExhaust}张时造成伤害。`);
|
||||
if (r.vulnerableHits) out.push(`若目标已有易伤,改为造成${r.vulnerableHits}次上述伤害。`);
|
||||
if (r.hitsPerHpLoss) out.push("本场战斗中,你每有一次实际失去生命的记录,便多攻击1次。");
|
||||
if (r.vulnerableHits) out.push(`目标已有易伤时,攻击${r.vulnerableHits}次。`);
|
||||
if (r.hitsPerHpLoss) out.push("本场战斗每次实际失去生命,额外攻击一次。");
|
||||
if (r.perExhaust) out.push(`每张个人消耗牌额外增加${r.perExhaust}点基础伤害。`);
|
||||
if (r.drawUntilSkill) out.push("抽牌直到抽到一张非攻击牌。");
|
||||
if (r.weak) out.push(`给予目标${r.weak}层虚弱。`);
|
||||
if (r.vulnerable) out.push(`给予目标${r.vulnerable}层易伤。`);
|
||||
if (r.strengthFromVulnerable) out.push("结算易伤后,目标每有1层易伤,你获得1点力量。");
|
||||
if (r.weak) out.push(`给予目标${r.weak}层虚弱。`);
|
||||
if (r.strengthFromVulnerable) out.push("目标每有一层易伤,获得1点力量。");
|
||||
if (r.strength) out.push(`获得${r.strength}点力量。`);
|
||||
if (r.enemyStrength) out.push(`目标获得${r.enemyStrength}点力量。`);
|
||||
if (r.strength) out.push(`你获得${r.strength}点力量。`);
|
||||
if (r.allyStrength) out.push(`给予另一名友方角色${r.allyStrength}点力量。`);
|
||||
if (r.energy) out.push(`补充${r.energy}点费用。`);
|
||||
if (r.exhaustTurnEnergy) out.push(`若你本回合消耗过牌,补充${r.exhaustTurnEnergy}点费用。`);
|
||||
if (r.energy) out.push(`获得${r.energy}费用。`);
|
||||
if (r.exhaustTurnEnergy) out.push(`本回合消耗过卡牌时,获得${r.exhaustTurnEnergy}费用。`);
|
||||
if (r.draw) out.push(`抽${r.draw}张牌。`);
|
||||
if (r.heal) out.push(`回复${r.heal}点生命。`);
|
||||
if (r.turnStrength) out.push(`每个自身回合开始时获得${r.turnStrength}点力量。`);
|
||||
if (r.turnEnergy) out.push(`你的回合开始时,额外补充${r.turnEnergy}点费用。`);
|
||||
if (r.turnEnergy) out.push(`每个自身回合开始时获得${r.turnEnergy}费用。`);
|
||||
if (r.turnBlock) out.push(`每个自身回合开始时失去${r.turnLoseHp}点生命,再获得${r.turnBlock}点格挡。`);
|
||||
if (r.attackBlock) out.push(`本次自身回合内,每打出一张攻击牌获得${r.attackBlock}点格挡。`);
|
||||
if (r.lossStrength) out.push(`在自身回合内每次实际失去生命,获得${r.lossStrength}点力量。`);
|
||||
if (r.lossDamage) out.push(`自身回合开始时失去${r.infernoLoseHp}点生命;自身回合每次实际失血,对全部敌人造成${r.lossDamage}点非攻击伤害。`);
|
||||
if (r.retaliation) out.push(`直到你的下个回合开始,每次受到攻击伤害,便对攻击者造成${r.retaliation}点非攻击伤害。`);
|
||||
if (r.vulnerableReduction) out.push("直到你的下个回合开始,带有易伤的角色对你造成的攻击伤害减半,向下取整。");
|
||||
if (r.vulnerableBonus) out.push(`你攻击易伤敌人时,该次伤害的易伤倍率增加${r.vulnerableBonus * 100}个百分点。`);
|
||||
if (r.retaliation) out.push(`至下个自身回合开始,每受到一次攻击,对攻击者造成${r.retaliation}点伤害。`);
|
||||
if (r.vulnerableReduction) out.push("至下个自身回合开始,易伤敌人对你的攻击伤害降低50%。");
|
||||
if (r.vulnerableBonus) out.push(`你攻击易伤敌人的易伤伤害倍率额外增加${r.vulnerableBonus * 100}%。`);
|
||||
if (r.exhaust) out.push("消耗。");
|
||||
if (r.power) out.push("能力持续本场战斗,打出后退出牌堆。");
|
||||
return `梦三:主动使用消耗${cardCost(card || { name: spec.name })}费用。` + out.join("");
|
||||
@@ -193,7 +191,7 @@ export function createIroncladRuntime({ game, get, lib, status, getBattle, handE
|
||||
if (r.hitsPerExhaust) hits = await exhaustHands(player, event, token);
|
||||
else if (r.vulnerableHits && target.storage?.mengsanVulnerable_shuying > 0) hits = r.vulnerableHits;
|
||||
const amount = (r.damage || 0) + (r.perExhaust ? r.perExhaust * exhaustCount(player, token) : 0);
|
||||
if (!positive(amount) || !positive(hits)) throw new RangeError("刘备攻击数值越界");
|
||||
if (!positive(amount) || !positive(hits)) throw new RangeError("铁甲战士攻击数值越界");
|
||||
if (amount > 0) for (let i = 0; i < hits && valid(player, token); i++) {
|
||||
const targets = r.all ? [...token.battle.players].filter(p => p !== player && p.isAlive() && player.isEnemyOf(p)) : [target];
|
||||
for (const t of targets) {
|
||||
@@ -262,7 +260,7 @@ export function createIroncladRuntime({ game, get, lib, status, getBattle, handE
|
||||
mark: true, marktext: "战",
|
||||
intro: { content(storage, player) {
|
||||
const s = stateOf(player);
|
||||
if (!s) return "本场战斗的刘备效果";
|
||||
if (!s) return "本场战斗的铁甲战士效果";
|
||||
const names = { turnStrength: "每回合力量", turnEnergy: "每回合费用", turnBlock: "每回合格挡", turnLoseHp: "披风每回合失血", infernoLoseHp: "狱火每回合失血", lossDamage: "失血全体伤害", lossStrength: "失血获得力量", vulnerableBonus: "易伤倍率加成", attackBlock: "攻击获得格挡", retaliation: "反击伤害", colossus: "巨像减伤" };
|
||||
return Object.entries({ ...s.powers, ...s.turn, ...s.defense }).map(([k, v]) => `${names[k] || k}:${v === true ? "50%" : k === "vulnerableBonus" ? `${v * 100}%` : v}`).join("<br>");
|
||||
} },
|
||||
|
||||
@@ -7,16 +7,14 @@ import { cardUpgradeLevel, cardUpgradeRule, canUpgradeCard } from "../../upgrade
|
||||
import { generationPool } from "../../card-pools.js";
|
||||
import { cardPackCosts } from "../data.js";
|
||||
import { ironcladStrengthPenalty } from "../../ironclad-hooks.js";
|
||||
import { applyInterceptDamage, applyIntangibleDamage, installSharedHookResolver } from "../../shared-hooks.js";
|
||||
import { installSharedHookResolver } from "../../shared-hooks.js";
|
||||
import { isAttackCard } from "../../../monsters/vine-tangled.js";
|
||||
import { applyMengsanDebuff, consumeArtifact } from "../../../monsters/artifact-status.js";
|
||||
import { isStunned } from "../../../battle/stun-intent.js";
|
||||
import { canPayCard, isActiveCardUse, authorizeFreeCardUse, takeXCardUse, cardCost } from "../../../battle/combat-rules.js";
|
||||
import { grantGold } from "../../../relics/progression.js";
|
||||
import { bindCombatStatusSource } from "../../../battle/status-sources.js";
|
||||
|
||||
const BRIDGE="mengsan_shared_bridge_shuying", RULES="mengsan_shared_rules_shuying", END="mengsan_shared_end_shuying", LIMIT="mengsan_shared_limit_shuying";
|
||||
const TRACK = "mengsan_shared_track_use_shuying";
|
||||
const BRIDGE="mengsan_shared_bridge_shuying", RULES="mengsan_shared_rules_shuying", END="mengsan_shared_end_shuying", LIMIT="mengsan_shared_limit_shuying", AFTER="mengsan_shared_after_shuying";
|
||||
const safe=n=>Number.isSafeInteger(n) && n>=0;
|
||||
function belongs(event,root) {
|
||||
const seen=new Set();
|
||||
@@ -34,7 +32,6 @@ const rule=card=>{const c=sharedByName[card?.name];return c ? cardUpgradeLevel(c
|
||||
export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEnergy,temporaryStrength,random}) {
|
||||
const states=new WeakMap(), uses=new WeakMap(), replays=new WeakMap(), costCaps=new WeakMap(), ballBonuses=new WeakMap();
|
||||
const seenUses=new WeakSet(), seenDraws=new WeakSet(), seenEnds=new WeakSet(), kills=new WeakMap();
|
||||
const bridgeSignals = new WeakMap();
|
||||
const tokenOf=player=>{
|
||||
const b=getBattle();
|
||||
return b?.session?.active && b.root && b.players?.has(player) && player?.isAlive?.()
|
||||
@@ -54,7 +51,6 @@ export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEne
|
||||
s={player,token,powers:Object.create(null),turn:Object.create(null),freeTurn:new WeakSet(),freeBattle:new WeakSet(),
|
||||
nextTurn:[],bombs:[],negativeStrength:0,autoCount:0,drawCount:0,returns:[],maulBonus:0,vigor:0,queuedAllyEnergy:0};
|
||||
states.set(player,s);player.addSkill(RULES);
|
||||
bindCombatStatusSource(player,token.session,"shared",()=>stateOf(player));
|
||||
token.session.ownResource(s,()=>{if(states.get(player)===s){states.delete(player);player.removeSkill(RULES);s.nextTurn.length=0;s.returns.length=0;}});
|
||||
return s;
|
||||
}
|
||||
@@ -188,11 +184,10 @@ export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEne
|
||||
}
|
||||
return n;
|
||||
}
|
||||
installSharedHookResolver((player, create = true)=>{
|
||||
const s=create ? ensure(player) : stateOf(player);if(!s)return null;
|
||||
installSharedHookResolver(player=>{
|
||||
const s=ensure(player);if(!s)return null;
|
||||
return {isFree:card=>s.freeTurn.has(physical(card))||s.freeBattle.has(physical(card)),cost:(card,n)=>cost(s,card,n),
|
||||
strengthPenalty:()=>s.negativeStrength,blockAmount:(n,e)=>cardBlock(s,n,e),afterDraw:cards=>afterDraw(s,cards),
|
||||
interceptTarget:()=>s.turn.intercept,isIntangible:()=>Boolean(s.powers.intangible),
|
||||
snapshotCard:card=>sharedByName[card.name]?.id==="the_ball"?{ballBonus:ballBonus(s,card),ballSession:s.token.session.id}:{},
|
||||
copyCard(source,target){
|
||||
if(sharedByName[source.name]?.id==="the_ball"&&target.name===source.name)ballBonuses.set(target,{session:s.token.session,amount:ballBonus(s,source)});
|
||||
@@ -344,31 +339,16 @@ export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEne
|
||||
refresh(s);
|
||||
}
|
||||
|
||||
function trackUse(use, battle) {
|
||||
const pending = battle.sharedPendingUses ||= new Set();
|
||||
if (pending.has(use)) return;
|
||||
pending.add(use);
|
||||
|
||||
// 确认原牌及追加结算离开原生 after 队列后,再检查胜负。
|
||||
async function finishUse() {
|
||||
try {
|
||||
if (!use.after.length) await onUseAfter(use);
|
||||
} finally {
|
||||
if (use.after.length) {
|
||||
use.insertAfter(finishUse, { forceDie: true });
|
||||
} else {
|
||||
pending.delete(use);
|
||||
if (getBattle() === battle && battle.session.active && !pending.size) game.checkResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
use.insertAfter(finishUse, { forceDie: true });
|
||||
}
|
||||
|
||||
async function onUse(use) {
|
||||
const s=ensure(use.player);if(!s || seenUses.has(use))return;seenUses.add(use);
|
||||
const b=s.token.battle,entry={s,snapshot:snapshot(use),vigor:0,echoes:[]};uses.set(use,entry);
|
||||
trackUse(use, b);
|
||||
b.sharedPendingUses||=new Set();b.sharedPendingUses.add(use);
|
||||
// Death can omit useCardAfter/Cancelled while the native use event still
|
||||
// drains its after queue. Release only this use's entry after that unwind;
|
||||
// onUseAfter is idempotent and ignores effects owned by a dead player.
|
||||
use.insertAfter(async () => {
|
||||
await onUseAfter(use);
|
||||
}, { forceDie: true });
|
||||
if(game.me.isFriendOf(s.player))b.sharedCardUses=(b.sharedCardUses||0)+1;
|
||||
if(isAttackCard(use.card)){
|
||||
b.sharedAttackRecords||=[];entry.attackRecord={turn:status.currentPhase,source:s.player,targets:(use.targets||[]).filter(t=>valid(t,s.token)&&s.player.isEnemyOf(t))};b.sharedAttackRecords.push(entry.attackRecord);
|
||||
@@ -399,21 +379,30 @@ export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEne
|
||||
}
|
||||
async function onUseAfter(use) {
|
||||
const entry=uses.get(use);if(!entry)return;
|
||||
uses.delete(use);const {s}=entry;
|
||||
if (!valid(s.player,s.token) || use._cancelled) return;
|
||||
for(const targets of entry.echoes){if(!valid(s.player,s.token))break;await autoPlay(s,entry.snapshot.original,{echo:entry.snapshot,targets});}
|
||||
if(entry.returnTop && valid(s.player,s.token))pileOf(s)?.moveDiscardToTop(entry.snapshot.original);
|
||||
if(entry.ballHandoff && valid(s.player,s.token)){
|
||||
const card=entry.snapshot.original,source=pileOf(s),recipients=friends(s).filter(p=>p!==s.player).map(ensure)
|
||||
.filter(other=>pileOf(other)?.canReceiveTransfer(card,s.token.session));
|
||||
const recipient=rand(s,recipients);
|
||||
if(recipient){
|
||||
const turnFree=s.freeTurn.has(card),battleFree=s.freeBattle.has(card);
|
||||
if(await source?.transferTo(card,pileOf(recipient))){
|
||||
if(turnFree)recipient.freeTurn.add(card);if(battleFree)recipient.freeBattle.add(card);
|
||||
refresh(recipient);
|
||||
uses.delete(use);const {s}=entry,b=s.token.battle;
|
||||
try {
|
||||
if(valid(s.player,s.token) && !use._cancelled){
|
||||
for(const targets of entry.echoes){if(!valid(s.player,s.token))break;await autoPlay(s,entry.snapshot.original,{echo:entry.snapshot,targets});}
|
||||
if(entry.returnTop && valid(s.player,s.token))pileOf(s)?.moveDiscardToTop(entry.snapshot.original);
|
||||
if(entry.ballHandoff && valid(s.player,s.token)){
|
||||
const card=entry.snapshot.original,source=pileOf(s),recipients=friends(s).filter(p=>p!==s.player).map(ensure)
|
||||
.filter(other=>pileOf(other)?.canReceiveTransfer(card,s.token.session));
|
||||
const recipient=rand(s,recipients);
|
||||
if(recipient){
|
||||
const turnFree=s.freeTurn.has(card),battleFree=s.freeBattle.has(card);
|
||||
if(await source?.transferTo(card,pileOf(recipient))){
|
||||
if(turnFree)recipient.freeTurn.add(card);if(battleFree)recipient.freeBattle.add(card);
|
||||
refresh(recipient);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
b.sharedPendingUses?.delete(use);
|
||||
if(getBattle()===b && b.session.active && !b.sharedPendingUses?.size){
|
||||
if(b.sharedDeferredVictory && game.me?.isAlive()){b.sharedDeferredVictory=false;game.mengsanFinishBattle_shuying();}
|
||||
else game.checkResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
async function turnStart(player) {
|
||||
@@ -515,10 +504,7 @@ export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEne
|
||||
cardPrompt(card){const r=rule(card||{name:spec.name});let description=r?.description||spec.description;
|
||||
if(spec.id==="the_ball"){const s=stateOf(game.me);if(s)description=description.replace("造成10点伤害",`造成${10+ballBonus(s,card)}点伤害`);}
|
||||
if(spec.id==="wither")description=description.replace("受到3点伤害",`受到${witherDamage(card)}点伤害`);
|
||||
if (spec.cost == null) return description;
|
||||
const cost = spec.cost === "X" ? "X" : cardCost(card || { name: spec.name });
|
||||
return `梦三:${cost}费。${description}`;
|
||||
},
|
||||
return `梦三:${spec.cost==null?"不能被打出":`${spec.cost==="X"?"X":cardCost(card||{name:spec.name})}费`}。${description}`;},
|
||||
ai:{order:spec.cardType==="power"?7:6,value:spec.cardType==="curse"?0:5,useful:spec.cardType==="curse"?0:5,
|
||||
result:{target:enemy?-1:1},tag:spec.cardType==="attack"?{damage:1}:{}},
|
||||
};
|
||||
@@ -541,28 +527,14 @@ export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEne
|
||||
filter(event){const b=getBattle();return Boolean(b?.session.active && belongs(event,b.root) && limited(event.player,event.card,event));},
|
||||
async content(event,trigger){trigger.cancel();},
|
||||
},
|
||||
[TRACK]: {
|
||||
trigger: { player: "useCard1" },
|
||||
forced: true, silent: true, popup: false, firstDo: true,
|
||||
filter(event) {
|
||||
const token = tokenOf(event.player);
|
||||
return Boolean(token && belongs(event, token.root));
|
||||
},
|
||||
async content(event, trigger) { trackUse(trigger, getBattle()); },
|
||||
[AFTER]:{trigger:{global:["useCardAfter","useCardCancelled"]},forced:true,silent:true,popup:false,priority:-500,
|
||||
filter(event){return uses.has(event);},async content(event,trigger){await onUseAfter(trigger);},
|
||||
},
|
||||
[BRIDGE]:{group:[TRACK,END,LIMIT],trigger:{global:["useCard1","phaseBefore","phaseDrawAfter","phaseDiscardBegin","phaseJieshuBegin","phaseAfter","drawAfter","damageBegin1","damageBegin2","damageBegin4","loseHpBegin","damage","changeHujiaAfter"]},
|
||||
[BRIDGE]:{group:[END,LIMIT,AFTER],trigger:{global:["useCard1","phaseBefore","phaseDrawAfter","phaseDiscardBegin","phaseJieshuBegin","phaseAfter","drawAfter","damageBegin1","damageBegin2","damageBegin4","loseHpBegin","damage","changeHujiaAfter"]},
|
||||
forced:true,silent:true,popup:false,priority:300,
|
||||
filter(event, player, name) {
|
||||
const battle = getBattle();
|
||||
return Boolean(battle?.session.active && !bridgeSignals.get(event)?.has(name) && belongs(event, battle.root));
|
||||
},
|
||||
filter(event){const b=getBattle();return Boolean(b?.session.active&&belongs(event,b.root));},
|
||||
async content(event,trigger){
|
||||
const name=event.triggername,b=getBattle();if(!b?.session.active)return;
|
||||
// 同一事件的不同阶段分别结算一次,跨座位的副本跳过。
|
||||
const signals = bridgeSignals.get(trigger) || new Set();
|
||||
if (signals.has(name)) return;
|
||||
signals.add(name);
|
||||
bridgeSignals.set(trigger, signals);
|
||||
if(name==="useCard0"){if(limited(trigger.player,trigger.card,trigger))trigger.cancel();return;}
|
||||
if(name==="useCard1"){await onUse(trigger);return;}
|
||||
if(name==="phaseBefore"){await turnStart(trigger.player);return;}
|
||||
@@ -582,10 +554,16 @@ export function createSharedCardRuntime({game,get,lib,status,getBattle,battleEne
|
||||
return;
|
||||
}
|
||||
if(name==="damageBegin4"||name==="loseHpBegin"){
|
||||
trigger.num=applyIntangibleDamage(trigger.num,trigger.player);return;
|
||||
const s=stateOf(trigger.player);if(s?.powers.intangible&&trigger.num>1)trigger.num=1;return;
|
||||
}
|
||||
if(name==="damageBegin2" && (trigger.mengsanAttack_shuying||isAttackCard(trigger.card))){
|
||||
trigger.num=applyInterceptDamage(trigger.num,trigger.source,trigger.player,b.players);return;
|
||||
// Wiki's interception is attack damage suppression + doubled holder damage, not native retargeting.
|
||||
let multiplier=1;
|
||||
for(const p of b.players){const s=stateOf(p);if(!s?.turn.intercept || !valid(p,s.token) || !p.isEnemyOf(trigger.source))continue;
|
||||
if(trigger.player===s.turn.intercept)multiplier=0;
|
||||
if(trigger.player===p)multiplier*=2;
|
||||
}
|
||||
trigger.num=Math.floor(trigger.num*multiplier);return;
|
||||
}
|
||||
if(name==="damage"){
|
||||
const s=stateOf(trigger.player);
|
||||
|
||||