Cobblemon Breeding API 是 Cobblemon 繁殖机制的基础实现,其中有一个特别之处:它提供了多个事件,允许通过模组来扩展和添加自定义的繁殖机制。
本模组开箱即用地包含了一套基础的繁殖机制,并附带一个独立的模组(Cobblemon Breeding Extras),用于展示如何扩展繁殖机制的一些选项。
对于最终用户(不基于此模组进行二次开发的普通玩家),使用方法如下:使用一根木棍、一堆干草捆和任意类型的木板合成一个蛋篮。将蛋篮放置在任意位置,在其周围 11x11x11 的立方体范围内,所有在该区域活动的宝可梦都会进行繁殖。
蛋篮会检测该区域内牧场上的放牧宝可梦,以及来自你和其他训练家队伍中派出的宝可梦。经过一段时间(大约 1 到 2 分钟),每对符合条件的配对会在蛋篮中产下一枚蛋,最多可容纳 25 枚(可在配置文件中调整)。
右键点击蛋篮即可收取蛋。如果没有蛋,它会提示无蛋。(蛋篮在内部存有蛋时不会显示数量)。这些蛋需要一定的时间才能孵化,根据配置的不同,鼠标悬停提示会告知你何时即将孵化,并且会出现一个类似“耐久度”的进度条,显示孵化剩余时间。
在配置文件中,你可以设置为允许野生宝可梦也在蛋篮中产蛋。激活该选项后,将蛋篮放置在荒野中央,稍后再回来查看,会有惊喜彩蛋等着你!
对于那些想要更多功能且愿意(并有能力)进行编码的用户,本模组提供了覆盖繁殖和蛋生成所有步骤的能力,包括选择参与繁殖的宝可梦配对、蛋的种类及其特性、性别、招式、特性、个体值(IVs)、每次游戏刻(tick)繁殖进程推进多少刻、孵化所需的游戏刻数等。请查看模组的源代码或将其导入你的开发环境以查看所有可用事件。
请注意,本模组目前处于 Beta(测试)阶段。此次发布旨在收集用户反馈,了解大家希望在繁殖步骤中操控哪些功能,并检查当前实现在 Bulbapedia 词条基础上是否有遗漏(我尽力严格遵循了 Bulbapedia 的说明,但部分机制不得不“即兴发挥”……)。另一个原因则是接口可能发生变化,直到 API 的最终稳定版本确定为止。
最后,希望你享受这款模组,如果你愿意的话,也可以尝试它的配套模组 Cobblemon Breeding Extras。我会持续修复本模组中发现的任何错误。
Cobblemon Breeding API is a base implementation of the breeding mechanics for Cobblemon, with one twist: It has several events that can be used to expand and add own Breeding mechanics through a mod.
This comes with a basic breeding mechanic out-of-the-box, with a separate mod (Cobblemon Breeding Extras) showcasing some options for expanding the breeding mechanics.
For the end user (mod user that does not expand on the mod), to use, craft an Egg Basket with a stick, a bale of hay and 5 planks of any kind. Place the basket anywhere, and on a 11x11x11 box around it, it will breed any pokemon that are out and about.
The basket will detect any pasture pokemon on pastures placed on that area as well as pokemon sent out from your party, and of other trainers. After a while (about 1 to 2 minutes), one eggs per valid couple will spawn in the basket, up to a max of 25 (configurable).
Right-click on the basket to withraw the eggs. If there aren't any, it will say so. (The basket does not show when there are eggs). These eggs will take some variable time to hatch, and depending on the config, your tooltip will tell when it's about to hatch, as well as a "durability" bar being filled up for when the egg will hatch.
On the configs, you can set it to also allow for wild pokemon to be able to lay eggs on the basket. Activate the option, place a basket in the middle of the wilderness, and come back later to find surprise eggs!
For those that want more, and are willing (and able) to code it, this mod offers the ability to override all steps of breeding and egg generation, from the choice of pokemon pairs that will breed, the species of the egg and its nature, gender, moves, abilities, ivs, how many ticks per tick should the breeding process advance by, ticks for hatching, and more. Check the source code of the mod or import it onto your development environment to see all the events.
Do note this mod is in Beta, right now. It is being released as-is so people can tell me what features they would like to be manipulated in the breeding steps, and check if there is anything missing from the current implementation (I tried to follow bulbapedia's article to a T, but some stuff had to be "improvised"...). Other reason for beta is due to the interface being able to change, before a final, finalized version of the API.
Finally, I hope you will enjoy this mod, and its companion Cobblemon Breeding Extras if you so would like. I'll be around for a while fixing whateever bugs are found on this mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧