#pokemon #calculator #type #tera #command-line-utilities

bin+lib poke-type

一个接受任意类型组合的宝可梦类型效果计算器

1 个不稳定版本

0.1.2 2022 年 11 月 21 日
0.1.0 2022 年 11 月 21 日

#444游戏

MIT/Apache

12KB
190

poke-type

Crates.io Build Status License

一个接受任意类型组合的宝可梦类型效果计算器。

此计算器目前仅支持计算防御类型效果,但未来可能扩展到包括攻击类型覆盖。

宝可梦朱紫

随着宝可梦朱紫的发布,现在可以通过泰拉石化拥有三个类型的宝可梦。我很难找到允许超过两种类型的类型计算器,所以我决定自己制作一个。

安装

二进制文件包含在发行标签下,或者您可以通过 cargo 进行安装

cargo install poke-type

用法

计算器接受至少一个类型的列表,由空格分隔,忽略大小写,并输出每种类型针对给定类型的效率,同时忽略重复项。

poketype [TYPE 1] [TYPE 2]...[TYPE N]

例如,计算具有类型 飞行 的宝可梦的效率

poketype fire flying

输出

Pokemon typed as {Flying, Fire} will receive:
  4x damage from [Rock]
  2x damage from [Water, Electric]
  1x damage from [Normal, Ice, Poison, Flying, Psychic, Ghost, Dragon, Dark]
  0.5x damage from [Fire, Fighting, Steel, Fairy]
  0.25x damage from [Grass, Bug]
  0x damage from [Ground]

泰拉石化

当与泰拉石化一起使用时,此计算器非常出色,因为它允许宝可梦有三个类型。

例如,计算具有类型 飞行,但还有 的宝可梦的效率

poketype fire flying dragon

输出

Pokemon typed as {Dragon, Fire, Flying} will receive:
  4x damage from [Rock]
  2x damage from [Ice, Dragon]
  1x damage from [Normal, Water, Electric, Poison, Flying, Psychic, Ghost, Dark, Fairy]
  0.5x damage from [Fighting, Steel]
  0.25x damage from [Fire, Bug]
  0.125x damage from [Grass]
  0x damage from [Ground]

任意数量类型

此计算器还支持任意数量的类型,因此您可以计算具有类型 飞行战斗地面普通心理幽灵黑暗妖精岩石 的不可能的宝可梦的效率。

poketype fire flying dragon fighting bug grass ground normal water electric poison psychic ghost dark fairy steel ice rock

输出

Pokemon typed as {Ghost, Flying, Steel, Electric, Ground, Dragon, Water, Rock, Bug, Dark, Ice, Normal, Poison, Fighting, Psychic, Fairy, Fire, Grass} will receive:
  2x damage from [Rock]
  1x damage from [Fire, Water, Ice, Flying, Fairy]
  0.5x damage from [Dark, Steel]
  0.0625x damage from [Grass, Bug]
  0x damage from [Normal, Electric, Fighting, Poison, Ground, Psychic, Ghost, Dragon]

重复类型

当传递相同类型的多个实例时,计算器将忽略重复项,并只计算该类型的一次有效性。

poketype fire fire fire

输出

Pokemon typed as {Fire} will receive:
  2x damage from [Water, Ground, Rock]
  1x damage from [Normal, Electric, Fighting, Poison, Flying, Psychic, Ghost, Dragon, Dark]
  0.5x damage from [Fire, Grass, Ice, Bug, Steel, Fairy]

依赖关系

~1.2–1.8MB
~34K SLoC