Compare commits

..
3 Commits
3 changed files with 6 additions and 14 deletions

No files matched your search

@@ -51,11 +51,8 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
stack = new ItemStack(Blocks.fire);
tooltips.add(String.format("no entries found for oredict \"%s\"", component.getOreDictName()));
}
float chance = component.getChance() / totalMeteorWeight;
tooltips.add(I18n.format("nei.recipe.meteor.chance", getFormattedChance(chance)));
tooltips.add(I18n.format("nei.recipe.meteor.amount", getEstimatedAmount(chance, meteor.radius)));
tooltips.add(I18n.format("nei.recipe.meteor.chance", getFormattedChance(component.getChance() / totalMeteorWeight)));
this.outputs.add(new TooltipStack(stack, xPos, yPos, tooltips));
col++;
if (col > 8) {
col = 0;
@@ -200,11 +197,7 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
.collect(Collectors.toList());
}
private String getFormattedChance(float chance) {
private String getFormattedChance(double chance) {
return new DecimalFormat("0.##").format(chance * 100);
}
private int getEstimatedAmount(float chance, int radius) {
return (int) Math.ceil(3f / 4 * Math.PI * Math.pow(radius, 3) * chance);
}
}
@@ -265,7 +265,6 @@ nei.recipe.meteor.category=Meteor Ritual
nei.recipe.meteor.cost=Cost: %s LP
nei.recipe.meteor.radius=Radius: %s
nei.recipe.meteor.chance=Chance: %s%%
nei.recipe.meteor.amount=Estimated amount: %s
#Rituals
ritual.AW001Water.name=Ritual of the Full Spring
@@ -265,7 +265,6 @@ nei.recipe.meteor.category=陨星仪式
nei.recipe.meteor.cost=消耗: %s LP
nei.recipe.meteor.radius=半径: %s
nei.recipe.meteor.chance=几率: %s%%
nei.recipe.meteor.amount=期望数量: %s
#Rituals
ritual.AW001Water.name=涌泉仪式
@@ -361,9 +360,9 @@ commands.network.fill.success=成功填充 %s 的LP网络.
commands.network.cap.help=将指定玩家的LP网络填充到其持有的最高级气血宝珠可以存储的最大值。
commands.network.cap.success=成功锁定了 %s 的LP网络.
commands.bind.usage=/bloodmagic bind [true|false] [玩家]
commands.bind.usage=/bind <玩家>
commands.bind.help=尝试将手持物品绑定(解绑)
commands.bind.success=绑定成功
commands.bind.success=物品成功绑定!
commands.bind.remove.success=解绑成功
commands.orb.usage=/bloodmagic orb [set|get] player [等级]
@@ -608,4 +607,5 @@ bm.versioning.doneDownloading=已完成下载 %s 重新加载您的游戏以进
bm.versioning.error=下载mod时出错!
bm.versioning.downloadedAlready=你已经拥有最新版本,重新加载游戏以进行更新!
bm.versioning.downloadingAlready=正在下载! 耐心点!
bm.versioning.disabled=此功能已禁用.
bm.versioning.disabled=此功能已禁用.