npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

poi-plugin-lbas-bis

v0.1.0

Published

Poi 陆航配装优化插件。

Readme

陆航优化

Poi 插件:基地航空队制空与配装优化器。

当前版本是手动模拟器 + 配装优化的 MVP,不做地图预设。上方模拟器用于手动设置目标半径、敌制空、基地队数、每队 4 格装备和 2/4/6 波目标状态;下方优化区会按模拟器当前条件搜索配装,并可一键导入回模拟器。

当前能力

  • 内嵌在 Poi 插件页,不新开独立页面。
  • 插件标题与默认界面为中文,支持 zh-CNzh-TWen-USja-JP 多语言。
  • 上方提供参考站风格的基地航空队模拟器,支持 1-3 个基地航空队;每个 base 按 2 波计算,所以最多显示 6 波目标状态。
  • 每个装备槽位可以锁定;优化和导入时会保留锁定装备。
  • 优化默认只使用 Poi 当前持有装备;可手动切换为“包含未持有理论装备”。
  • 优化结果可以一键导入到模拟器,只覆盖未锁定槽位。
  • 满足制空目标后,优先尽可能多放陆攻,再按陆攻伤害基准排序。
  • 计算出击制空、陆战拦截值、改修加成、熟练度可见加成、陆侦制空系数、侦察机/大艇延程和制空状态。
  • 计算陆攻对普通水上目标的伤害基准;该值是未扣敌装甲的攻击力估算。

使用方式

  1. 在 Poi 插件列表启用 陆航优化
  2. 在上方模拟器输入目标半径、敌制空和基地队数。
  3. 手动选择每队 4 格装备;需要固定的装备勾选 锁定
  4. 为每一波选择目标状态:劣势、均势、优势、确保。
  5. 在下方选择 仅持有装备包含未持有理论装备
  6. 点击 计算优化,确认方案后点击 导入到模拟器

结果会显示每个方案的总伤害基准、最小制空余量、6 波状态、缺少装备,以及每队使用的装备。

暂不包含

  • 不包含地图/节点预设。
  • 不模拟每波陆航削弱敌机后的连续敌制空变化;当前每波按同一个敌制空值验算。
  • 不计算蓝字、倍卡、舰娘日战/夜战伤害。
  • 陆攻伤害暂不输入敌舰装甲、目标类型、接触、暴击、熟练暴击等条件,因此不是最终扣血值。

本地安装到 Poi

本机开发时可以将仓库作为 file 依赖装入 Poi 插件目录:

cd "$HOME/Library/Application Support/poi/plugins"
npm install /Users/tianzema/Documents/kancolle/lbas_bis --save --no-prune

安装后应出现:

node_modules/poi-plugin-lbas-bis -> /Users/tianzema/Documents/kancolle/lbas_bis

Poi 需要重启后重新扫描插件。

开发

npm install
npm test
npm run typecheck
npm pack --dry-run

核心文件:

  • index.js:Poi 插件入口和界面。
  • src/poi-data.js:Poi 装备数据适配和装备类型识别。
  • src/air-power.js:制空、熟练度、陆侦、延程和制空状态计算。
  • src/damage.js:陆攻伤害基准估算。
  • src/optimizer.js:候选池、组合搜索、6 波验算和排序。