How liangshi233/liangshi-calc works
liangshi-calc is a Miao-Plugin extension for game character damage calculations, panel workflows, and game-data updates. Users issue bot commands; the plugin handles the requested panel, calculation, wiki, or update operation and returns a result or writes panel/resource data. Calculation modules combine shared game-specific parameters, talent definitions, team buffs, and reaction buffs; the README also documents preset/custom panels and artifact/weapon calculation extensions. Several documented subsystems are represented by their listed paths, but their internal calls were not sampled, so those links are documented at feature level only.
Main entry points: index.js Genshin model · sharePanel.js Panel sharing · GSnanoka.js Genshin updater · SRnanoka.js Star Rail updater
Components 21
Bot Features
- Wiki expansion
apps/wiki.js
Damage Calculations
- Genshin damage
damage/calc_basic_gs.js - Star Rail damage
damage/calc_basic_sr.js - Genshin model
damage/liangshi-gs/index.js - Wuthering Waves model
damage/liangshi-mc/index.js - Star Rail model
damage/liangshi-sr/index.js - Team buffs
damage/liangshi-gs - Weapon and artifact
damage/liangshi-gs/weapon
Panel Workflows
- Preset panels
apps/预设替换.js - Custom panels
apps/panel/panel.js - Panel sharing
apps/sharePanel.js - Player panels
Data Updates
- Genshin updater
apps/new/GenshinImpact/GSnanoka.js - Star Rail updater
apps/new/StarRail/SRnanoka.js - Wuthering updater
apps/new/WutheringWaves/MCencore.js - Game resources
damage/liangshi-gs/data
Shared Calculation Support
- Shared components
components/index.js - Reaction and buffs
resources/CalcBuff/index.js - Configuration
components/Cfg.js
Other components
- Bot user
- Nanoka service
Connections 24
- Bot user → Wiki expansion: requests wiki
- Bot user → Preset panels: requests preset
- Bot user → Custom panels: customizes panel
- Bot user → Panel sharing: shares panel
- Bot user → Genshin damage: requests damage
- Bot user → Genshin updater: requests update
- Bot user → Star Rail updater: requests update
- Bot user → Wuthering updater: requests update
- Panel sharing → Custom panels: calls import/export
apps/sharePanel.js - Panel sharing → Player panels: reads panel data
apps/sharePanel.js - Custom panels → Player panels: writes panel data
apps/panel/panel.js - Genshin damage → Reaction and buffs: imports buffs
damage/calc_basic_gs.js - Genshin model → Team buffs: registers team buffs
damage/liangshi-gs/index.js - Genshin model → Genshin damage: provides calculation model
- Star Rail model → Star Rail damage: provides calculation model
- Bot user → Star Rail damage: requests damage
- Genshin updater → Nanoka service: fetches game data
- Star Rail updater → Nanoka service: fetches game data
apps/new/StarRail/SRnanoka.js - Genshin updater → Game resources: updates resources
- Star Rail updater → Game resources: updates resources
- Wuthering updater → Game resources: updates resources
- Weapon and artifact → Genshin model: extends calculation
- Genshin model → Shared components: uses shared components
damage/liangshi-gs/index.js - Genshin model → Configuration: uses configuration