mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
Compare commits
3
Commits
1.3.16
..
1.3.12-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53f48697a1 | ||
|
|
4a9e0c071c | ||
|
|
5b1be24b1d |
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;
|
||||
@@ -129,7 +126,6 @@ public class NEIMeteorRecipeHandler extends TemplateRecipeHandler {
|
||||
}
|
||||
|
||||
private boolean matchItem(ItemStack compared, ItemStack compareTo) {
|
||||
if (compared == null || compareTo == null) return false;
|
||||
if (NEIServerUtils.areStacksSameTypeCrafting(compared, compareTo)) {
|
||||
return true;
|
||||
}
|
||||
@@ -201,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
|
||||
@@ -369,6 +368,8 @@ commands.bind.remove.success=Unbinding successful
|
||||
commands.orb.usage=/bloodmagic orb [set|get] player [tier]
|
||||
commands.orb.help=Used to set or get the Player's max Blood Orb tier.
|
||||
|
||||
commands.bind.usage=/bind <player>
|
||||
commands.bind.success=Item successfully bound!
|
||||
commands.bind.failed.noPlayer=There is no player specified
|
||||
commands.bind.failed.alreadyBound=Item is already bound; use /unbind to unbind it
|
||||
commands.bind.failed.notBindable=Item cannot be bound
|
||||
|
||||
@@ -277,7 +277,7 @@ entity.AWWayofTime.MinorDemonGrunt.name=Демон Грунт
|
||||
|
||||
#Commands
|
||||
commands.soulnetwork.usage=/soulnetwork <игрок>
|
||||
commands.bind.usage=/bloodmagic bind [true|false] <игрок>
|
||||
commands.bind.usage=/bind <игрок>
|
||||
commands.bind.success=Предмет успешно привязан!
|
||||
commands.bind.failed.noPlayer=Игрок не выбран
|
||||
commands.bind.failed.alreadyBound=Предмет уже привязан; используйте /unbind для отвязки
|
||||
|
||||
@@ -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,14 +360,16 @@ 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 [等级]
|
||||
commands.orb.help=用来设定或获取指定玩家的最高等级气血宝珠.
|
||||
|
||||
commands.bind.usage=/bind <玩家>
|
||||
commands.bind.success=物品成功绑定!
|
||||
commands.bind.failed.noPlayer=没有指定玩家
|
||||
commands.bind.failed.alreadyBound=物品已经被绑定; 使用 /unbind 来解除绑定
|
||||
commands.bind.failed.notBindable=物品无法被绑定
|
||||
@@ -606,4 +607,5 @@ bm.versioning.doneDownloading=已完成下载 %s 重新加载您的游戏以进
|
||||
bm.versioning.error=下载mod时出错!
|
||||
bm.versioning.downloadedAlready=你已经拥有最新版本,重新加载游戏以进行更新!
|
||||
bm.versioning.downloadingAlready=正在下载! 耐心点!
|
||||
bm.versioning.disabled=此功能已禁用.
|
||||
bm.versioning.disabled=此功能已禁用.
|
||||
|
||||
@@ -284,7 +284,7 @@ entity.AWWayofTime.MinorDemonGrunt.name=格倫魔
|
||||
|
||||
#Commands
|
||||
commands.soulnetwork.usage=/soulnetwork <玩家>
|
||||
commands.bind.usage=/bloodmagic bind [true|false] <玩家>
|
||||
commands.bind.usage=/bind <玩家>
|
||||
commands.bind.success=物品成功綁定!
|
||||
commands.bind.failed.noPlayer=沒有指定玩家
|
||||
commands.bind.failed.alreadyBound=物品已經被綁定; 使用 /unbind 來解除綁定
|
||||
|
||||
Reference in new issue
Block a user