Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wormtql/genshin_artifact
莫娜占卜铺 | 原神 | 圣遗物搭配 | 圣遗物潜力。多方向圣遗物自动搭配,多方向圣遗物潜力与评分, Genshin Impact artifacts assessment, artifacts auto combination, artifacts statistics, artifacts potential, and more.
https://github.com/wormtql/genshin_artifact
genshin-impact rust vue wasm webassembly
Last synced: 26 days ago
JSON representation
莫娜占卜铺 | 原神 | 圣遗物搭配 | 圣遗物潜力。多方向圣遗物自动搭配,多方向圣遗物潜力与评分, Genshin Impact artifacts assessment, artifacts auto combination, artifacts statistics, artifacts potential, and more.
- Host: GitHub
- URL: https://github.com/wormtql/genshin_artifact
- Owner: wormtql
- License: mit
- Created: 2020-11-11T10:46:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T15:45:29.000Z (7 months ago)
- Last Synced: 2024-04-24T16:07:50.460Z (7 months ago)
- Topics: genshin-impact, rust, vue, wasm, webassembly
- Language: Rust
- Homepage: https://www.mona-uranai.com/
- Size: 43.9 MB
- Stars: 1,138
- Watchers: 10
- Forks: 113
- Open Issues: 80
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- stars - wormtql/genshin_artifact
- awesome-genshin-impact - genshin_artifact
README
# 莫娜占卜铺
[![Netlify Status](https://api.netlify.com/api/v1/badges/3a2fc38c-d9dd-4257-98d5-11891cf9b064/deploy-status)](https://app.netlify.com/sites/jovial-chandrasekhar-293ccd/deploys)
![GitHub Repo stars](https://img.shields.io/github/stars/wormtql/genshin_artifact)
![GitHub forks](https://img.shields.io/github/forks/wormtql/genshin_artifact)## 简介
### 伤害计算与分析
- 增删BUFF
- 参数调整
- 伤害明细
- 面板构成
### 圣遗物配装与分析
- 虚拟圣遗物优化算法
- 启发式优化算法
- 队伍圣遗物自动搭配
- 词条收益曲线
- 圣遗物养成推荐
- 圣遗物词条分析
- 圣遗物潜力与评分
### 数据库
- 基于计算结果的圣遗物、武器统计## 本地运行
### 环境
该项目依赖[Rust](https://www.rust-lang.org/)
1. 安装Rust工具链,详见官网
2. 安装Rust Webassembly工具链(wasm-pack)
3. node
### 运行步骤
1. 克隆仓库
```
git clone --recursive https://github.com/wormtql/genshin_artifact
```
2. 编译wasm依赖
```
npm run build:wasm
```
3. 生成数据文件(武器、角色、圣遗物等的信息)
```
npm run gen_meta
```
4. 安装 npm 依赖
```
npm install
```
5. 运行
```
npm run serve
```
6. 打包
```
npm run build
```[//]: # (## Docker)
[//]: # (```)
[//]: # (docker build -t mona .)
[//]: # (docker run -dp 8080:80 mona)
[//]: # (```)
[//]: # (## 贡献)
[//]: # (### 添加目标函数)
[//]: # (目标函数位于[https://github.com/wormtql/mona-core](mona-core) )
[//]: # (`src/target_functions/target_functions`)
[//]: # (1. 在上述文件夹的对应位置建立新目标函数文件)
[//]: # (2. 在`target_functions/target_function_name.rs`新建目标函数名)
[//]: # (3. 创建一个struct,必须以`TargetFunction`结尾)
[//]: # (```rust)
[//]: # (pub struct NewTargetFunction {)
[//]: # ( ...)
[//]: # (})
[//]: # (```)
[//]: # (4. 如果该函数有设置,在`target_functions/target_function_config.rs`新建同名enum)
[//]: # (5. 为`NewTargetFunction`实现两个trait,`TargetFunctionMetaTrait`和`TargetFunction`)
[//]: # (```rust)
[//]: # (impl TargetFunctionMetaTrait for NewTargetFunction {)
[//]: # ( // 该目标函数的元数据)
[//]: # ( #[cfg(not(target_family = "wasm"))])
[//]: # ( const META_DATA: TargetFunctionMeta = TargetFunctionMeta {)
[//]: # ( name: TargetFunctionName::GanyuDefault,)
[//]: # ( chs: "chs",)
[//]: # ( description: "description",)
[//]: # ( tags: "tag1,tag2",)
[//]: # ( four: TargetFunctionFor::SomeWho(CharacterName::Ganyu),)
[//]: # ( image: TargetFunctionMetaImage::Avatar)
[//]: # ( };)
[//]: # ()
[//]: # ( // 目标函数的设置,没有设置可以省略)[//]: # ( #[cfg(not(target_family = "wasm"))])
[//]: # ( const CONFIG: Option<&'static [ItemConfig]> = Some(&[)
[//]: # ( ItemConfig {)
[//]: # ( name: "melt_rate",)
[//]: # ( title: "融化占比",)
[//]: # ( config: ItemConfig::RATE01_TYPE)
[//]: # ( })
[//]: # ( ]);)
[//]: # ()
[//]: # ( fn create(character: &CharacterCommonData, weapon: &WeaponCommonData, config: &TargetFunctionConfig) -> Box {)[//]: # ( // create boxed target function)
[//]: # ( })
[//]: # (})
[//]: # ()
[//]: # (impl TargetFunction for NewTargetFunction {)[//]: # ( // 可以参考其他文件)
[//]: # (})
[//]: # (```)
[//]: # (6. 在`target_functions/target_functions//mod.rs`中,重导出`NewTargetFunction`)
[//]: # (```rust)
[//]: # (// in .rs)
[//]: # (pub use new_target_function::NewTargetFunction;)
[//]: # (```)