Skip to content

Commit cfae75e

Browse files
committed
修改部分json
1 parent 1380e78 commit cfae75e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/main/java/xyz/lisbammisakait/item/HutouzhanjinqiangItem.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public HutouzhanjinqiangItem(ToolMaterial material, float attackDamage, float at
3636
}
3737
@Override
3838
public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) {
39-
tooltip.add(Text.translatable("itemskill.relight-the-three-point-strategy.hutouzhanjinqiang").formatted(Formatting.GOLD));
39+
tooltip.add(Text.translatable("itemskill.relight-the-three-point-strategy.hutouzhanjinqiang",COOLDOWN).formatted(Formatting.GOLD));
4040
}
4141
@Override
4242
public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) {
@@ -75,14 +75,14 @@ public boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attack
7575
RelightTheThreePointStrategy.LOGGER.info("攻击者传送到目标位置");
7676
return super.postHit(stack, target, attacker);
7777
}
78-
@Override
79-
public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) {
80-
if (stack.contains(RtTPSComponents.COOLDOWN_TYPE)) {
81-
//int rct = stack.get(RtTPSComponents.COOLDOWN_TYPE);
82-
int rct = stack.getOrDefault(RtTPSComponents.COOLDOWN_TYPE, COOLDOWN);
83-
tooltip.add(Text.translatable("item.relight-the-three-point-strategy.hutouzhanjinqiang.remaining-cooldown-time", rct).formatted(Formatting.GOLD));
84-
}
85-
}
78+
// @Override
79+
// public void appendTooltip(ItemStack stack, TooltipContext context, List<Text> tooltip, TooltipType type) {
80+
// if (stack.contains(RtTPSComponents.COOLDOWN_TYPE)) {
81+
// //int rct = stack.get(RtTPSComponents.COOLDOWN_TYPE);
82+
// int rct = stack.getOrDefault(RtTPSComponents.COOLDOWN_TYPE, COOLDOWN);
83+
// tooltip.add(Text.translatable("item.relight-the-three-point-strategy.hutouzhanjinqiang.remaining-cooldown-time", rct).formatted(Formatting.GOLD));
84+
// }
85+
// }
8686

8787
@Override
8888
public ActionResult use(World world, PlayerEntity user, Hand hand) {

src/main/resources/assets/relight-the-three-point-strategy/lang/zh_cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"----------------------------------------": "--------------------------------------",
2626
"-------------------------------------武器描述": "-----------------------------------",
2727
"-------------------------------------": "-----------------------------------------",
28-
"itemskill.relight-the-three-point-strategy.hutouzhanjinqiang": "§6[主动][20s] §f右键强化武器,提高武器伤害与加速效果直到下次普攻。"
28+
"itemskill.relight-the-three-point-strategy.hutouzhanjinqiang": "§6[主动][%1$ss] §f右键强化武器,提高武器伤害与加速效果直到下次普攻。"
2929
}

0 commit comments

Comments
 (0)