一个用于 Small Ships 的简易物品升级实现
物品
实现了三种物品,分别对应船只的主要属性:速度、生命值和货物容量。
smallships_upgrades:speed_upgrade
smallships_upgrades:health_upgrade
smallships_upgrades:cargo_upgrade
要应用升级,请右键点击一艘船。如果该船有足够的升级槽来接受升级,升级物品将被消耗,相应的属性将增加。
注意
模组添加了这些物品,但并未添加它们的合成配方或将其加入战利品表。你需要自行处理。
配置
upgradeRecyclePercentage
当船只被摧毁时,掉落升级物品的百分比(向上取整)。默认为 100。
speedIncrement
每次应用升级时,船只速度增加的点数。默认为 10。
healthIncrement
每次应用升级时,船只生命值增加的点数。默认为 20。
cargoIncrement
每次应用升级时,添加到船只货物容量的 9 格行数。默认为 6(54 格,即一整页)。
caps
每种船只类型的升级上限列表,格式如下
{
"name": "cog",
"speed": 8,
"health": 2,
"cargo": 6
}
未知的船只类型将被忽略。如果存在同一船只类型的重复条目,最后一个条目生效。
A simple implmentation of upgrade items for Small Ships
Items
There are three items implemented, one for each major ship attribute: speed, health, and cargo.
smallships_upgrades:speed_upgrade
smallships_upgrades:health_upgrade
smallships_upgrades:cargo_upgrade
To apply an upgrade, right click on a ship with it. If the ship has enough upgrade slots to
accept the upgrade, the upgrade item will be consumed and the appropriate attribute will be increased.
Note
The mod adds these items, but does not add recipes for them or add them to loot tables. You'll have to do that yourself.
Configuration
upgradeRecyclePercentage
The percentage of upgrade items to drop when the ship is destroyed, rounding up. Defaults to 100.
speedIncrement
The number of points to increase a ship's speed for each upgrade applied. Defaults to 10.
healthIncrement
The number of points to increase a ship's health for each upgrade applied. Defaults to 20.
cargoIncrement
The number of 9-slot rows to add to the ship's cargo capacity for each upgrade applied. Defaults to 6 (54 slots, one
full page).
caps
A list of upgrade caps for each ship type, in the format
{
"name": "cog",
"speed": 8,
"health": 2,
"cargo": 6
}
Unknown ship types will be ignored. If there are duplicate entries for a ship type, the last entry wins.
评论 0
登录后参与评分
还没有评论,来抢沙发吧