Home

Awesome

mh4-skillsimu

Deprecated: Use mh-skillsimu instead.

Skill Simulator for MH4

Skill Simulator find combinations of equipments for activated skills.

mh4g-skillsimu is here.

How to build

Before you can build mh4-skillsimu, you must install and configure the following dependencies on your machine:

At first, clone mh4-skillsimu from github repository.

$ git clone --depth=10 https://github.com/sakusimu/mh4-skillsimu

And change directory.

$ cd mh4-skillsimu

Install dependence mudules.

$ npm install

Build your mh4-skillsimu.js in dist directory.

$ grunt dist

How to use

For example, the following code:

'use strict';
var myapp = require('./test/lib/driver-myapp.js'),
    simu = require('./index.js');

var simulator = new simu.Simulator();
var assemblies = simulator.simulateEquip([ '斬れ味レベル+1', '耳栓', '集中' ]);
console.log(assemblies);

run:

$ node example.js
[ { head: 'ミヅハ【烏帽子】',
    body: 'アカムトウルンテ',
    arm: 'EXレックスアーム',
    waist: 'クシャナアンダ',
    leg: 'アークグリーヴ',
    weapon: null,
    oma: null },
  { head: 'ミヅハ【烏帽子】',
    body: 'アカムトウルンテ',
    arm: 'EXレックスアーム',
    waist: 'クシャナアンダ',
    leg: 'ゾディアスグリーヴ',
    weapon: null,
    oma: null } ]

Running Tests

At first, download & build test data.

$ grunt testdata

To run all unit tests, use:

$ grunt test:node

To run a unit test, use:

$ grunt test:node:test/unit/~.js

To run all unit tests on Browser, use:

$ grunt test:browser

Running Benchmark

To run a benchmark script, use:

$ node benchmark/equip-simu.js

To run a benchmark script on Browser, use:

$ grunt benchmark

And open benchmark/html/~.html on your browser.

Author

sakusimu.net

Acknowledgment

Author of GANSIMU
When I create the simulator, I use the algorithm author of GANSIMU was published.
検索ロジック:MHP2G スキルシミュレータ 頑シミュ

License

Copyright (C) sakusimu.net

Licensed under the MIT license.