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

torneko3js

v0.1.14

Published

library for PS2 game Torneko3

Downloads

22

Readme

license twitter

PS2 ゲーム「トルネコ 3」の JavaScript ライブラリ及びスモコンシミュレータscsです。
TypeScript で開発しています。

  • スモコンシミュレータscs
  • モンスターの能力値計算
  • 行動順補助用の関数
  • ~~解析データ~~

☣ インストール

Nodejs の場合

npm install --save torneko3js
# or
yarn add torneko3js

ブラウザの場合

example/browserを参照してください。
browserifyで bundle 化しています。

google spreadsheet の場合

調べています。claspを使うっぽい?

☣ 使用例

scs(CLI ツール)

$ scs -h
Usage: scs [options]

Options:
  -V, --version      output the version number
  -d --debug         debug mode
  -i --input <path>  specify your json input file
  -h, --help         output usage information

ライブラリ(JavaScript, TypeScript)

import { Manager, sampleSCSInputs } from 'torneko3js';

const inp = sampleSCSInputs['4キラーマ倍速'];
const m = new Manager(inp);
m.trial();
console.log(m.toJson());

☣ 実装

システム

  • [x] scs 移植
  • [x] kompota さんの分裂方向
  • [x] はぐれ状態ホイミン
  • [x] 行動順補助用の関数
  • [x] 解析データ

特技

確率が判明していないものも多いので、おいおい実装します。

  • [x] キラーマシン/さそりかまきり
  • [x] ホイミスライム
  • [x] おばけキノコ
  • [x] メイジももんじゃ/ハエまどう/はねせんにん
  • [x] フライングデビル/ランガー/キングマーマン
  • [x] ミステリードール/いしにんぎょう
  • [x] スライムブレス/ドラゴスライム/ドラゴメタル
  • [ ] さつじんき/エリミネーター
  • [ ] シャドーナイト
  • [x] リリパット/ドックスナイパー
  • [x] ドラゴン
  • [ ] 力をためる系(レノファイター/グレートホーン/あくましんかん)
  • [ ] 単体状態異常系(タップペンギー/いわとびあくま/だいまどう/ダンスキャロット/あめふらし/テンツク/ラストテンツク/まどうし)
  • [ ] おおめだま/キラープラスター
  • [ ] デスマシーン
  • [ ] 貝系(つのうしがい/しびれマイマイ)
  • [ ] 人手系(おばけひとで/マージスター)
  • [ ] 氷系(ひょうがまじん/ベビーニュート/ドラゴンキッズ/メラリザード)
  • [ ] ギガンテス
  • [ ] 敵に効果なし系(ゾンビマスター/シャーマン/がいこつけんし/どろにんぎょう/ベビーサタン)
  • [x] きとうし/ようじゅつしは封印が前提となるため実装しない
  • [x] カエル系は封印が前提となるため実装しない
  • [x] 爆発系(デビルアンカー/リビングハンマー/キラースター/ばくだんいわ/メガザルロック)は実装しない
  • [x] ゆうれいは scs を根本から見直す必要があるので実装しない
  • [x] げんじゅつしはスモコンに悪影響なので実装しない
  • [x] ダースドラゴンはスモコンに悪影響なので実装しない
  • [x] コロマージはバイキルトが悪影響なので実装しない
  • [x] トロルは意味が無いので実装しない
  • [x] 鈍足(アイアンタートル)は面倒なので実装しない
  • [x] モシャスナイトは複雑すぎるので実装しない

受身形効果

  • [x] スモールグール
  • [ ] ラリホーアント
  • [ ] じごくのよろい
  • [ ] モストン/おどるほうせき
  • [x] カニ系や魔法無効化系はスモコン/ブラコンに影響しないので実装しない
  • [x] ゾンビ系のホイミは確実に倒れるので実装しない

ホイミンの行動モデル

  1. 周囲の傷ついたキャラの数を取得
  2. ホイミ発動を判断(ランダム) ← ダメージを負ったユニットごとに判定する
  3. 攻撃可能なキャラの数を取得
  4. 攻撃を判断(ランダム) ← 攻撃可能なユニットごとに判定する
  5. 移動可能なマスの数を取得
  6. いっしょにいてね、はぐれ状態の場合、移動を判断(ランダム)

☣ 入出力構成

全て JSON 形式です。
詳細はsrc/lib/interfaces.tsを参照してください。

☣ JSON validation

typescript-json-schemaで雛形を作って整形した。

あとはajvに食わせただけ。