power_curve
Compute a complete level-to-power curve from a growth table: sample rows, auto-detect attribute columns, and return start/mid/end power, growth multiplier, and curve shape classification.
Instructions
战力曲线(批量):读成长表逐行(可采样)属性面板调 computePowerStats,一次产出「等级→战力」全曲线与形态摘要(首/中位/末档战力、成长倍率、形态判定:匀速/后期加速/台阶断点)。属性列自动按常用名识别(攻击/攻击力→attack、体力/生命→hp、防御→defense、攻速/速度→speed、暴击率→crit),识别不到时用 columns 显式指定。适合全曲线分析与成长×装备联合推导,替代多次单点 compute_power。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | 成长表名(如 hero/成长表) | |
| columns | No | 显式列映射 {attack:'属性.攻击', hp:'属性.体力', defense?, speed?, crit?}——自动识别失败或需换列时用 | |
| levelColumn | No | 等级/序号列名,缺省取首列 | |
| sampleEvery | No | 采样间隔(默认自动:行数>60 时取 ceil(行数/60)),首末行恒在采样内 |