MotocalDevelopers / motocal

元カレ計算機(グラブル攻撃力計算機)
MIT License
89 stars 76 forks source link

motocal

This is a repository for the development of motocal calculator (Granblue Fantasy ATK Calculator).

Deploy to Heroku Edit on CodeSandbox Open in Gitpod

Preparation for development

Local Development

$ git clone https://github.com/MotocalDevelopers/motocal.git motocal
$ cd motocal
$ npm install
$ npm run build
$ open index.html

or

$ git clone https://github.com/MotocalDevelopers/motocal.git motocal
$ cd motocal
$ npm install
$ npm run build
$ npm run start
$ open localhost:8000

Docker version

$ git clone https://github.com/MotocalDevelopers/motocal.git motocal
$ cd motocal
$ docker-compose up

Build command

Commands for development environment

$ npm run start

Debug Build

$ npm run build

Debug Watch

$ npm run watch-dev

Build for release

$ npm run production-build

Release Watch

$ npm run production-watch-dev

Structure

Workflow

Function development

  1. Fiddling inside src
  2. Generate dist / main.js etc. with npm run build
    • For release builds, run ''npm run production-build''
    • Or monitor with ''npm run watch-dev''
  3. Merge the production branch on release and then run ''npm run production-build''

Updating weapon templates

  1. For the weapon you want to add, copy the corresponding line of the wiki and paste it on the top of txt_source/armData-ssr.txt
  2. Run arm_data_converter.py
    • When dealing with new skills, please add the corresponding new skill name to arm_data_converter.py => Add the new skill to the calculator.

SSR: https://gbf-wiki.com/index.php?%C9%F0%B4%EFSSR
SSR2: https://gbf-wiki.com/index.php?%C9%F0%B4%EFSSR%2F%C6%C3%BC%EC%C9%F0%B4%EF
SR: https://gbf-wiki.com/index.php?%C9%F0%B4%EFSR

* For new upper limit breaking weapon it is necessary, to add a status at the end for 4 stars and 5 stars, the data added at the end is ○ (4 stars) or ◎ (5 stars) and Lv 100, Lv 150 stats. Please add it appropriately with reference to the examples.

Updating character templates

  1. For the character you want to add, copy the corresponding line of the wiki and paste it on the top of txt_source/charaData.txt
  2. Run chara_data_converter.py

SSR: https://gbf-wiki.com/index.php?%BF%CD%CA%AASSR
SR: https://gbf-wiki.com/index.php?%BF%CD%CA%AASR
R: https://gbf-wiki.com/index.php?%BF%CD%CA%AAR

* For new upper limit breaking of a character, it is OK just to update the stats (All characters stats are for their highest uncap, only exception are eternal character that have a version for 4 and 5 star)
* Updating of Base Multiattack Rate and C.A. Multiplier is done by adding to chara_data_converter.py.

Note

About scripts

This is section for scripts that generates json data for templates and pulls weapon/character image data from gbfwiki.

* Downloading images from the game is possible, but that may be considered as a bannable offense, if you use that script, you use it on your own personal responsibility.

For python scripts

$ python3 ./scripts/arm_data_converter.py

Please execute in the order of.

arm_data_converter.py

chara_data_converter.py

download_images.py arm

download_images.py chara

LICENSE

MIT