Skip to content

Commit fdb4787

Browse files
committed
renamed insulin to insulinResponse in Lang
1 parent 7886c3f commit fdb4787

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// 1.21.1 2025-05-21T16:07:34.0788642 Languages: zh_cn for mod: ifw
2-
a5bc30112c502f165eda1f7bf77a4c73cf13909b assets/ifw/lang/zh_cn.json
1+
// 1.21.1 2025-05-21T20:37:00.9245207 Languages: zh_cn for mod: ifw
2+
4b3304e0af16db78b28322ac151e77927bd4cd08 assets/ifw/lang/zh_cn.json
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// 1.21.1 2025-05-21T16:07:34.0804569 Languages: en_us for mod: ifw
2-
8db0b3c380c3da7addbf2d590907ef2eeff6def6 assets/ifw/lang/en_us.json
1+
// 1.21.1 2025-05-21T20:37:00.9271374 Languages: en_us for mod: ifw
2+
ba5dea6a263a17fef20347d08083b733df8d6460 assets/ifw/lang/en_us.json

src/generated/resources/assets/ifw/lang/en_us.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"commands.day.message": "It is day %s of this world",
5656
"commands.give.curse.player": "Applied curse %s to %s",
5757
"commands.give.curse.players": "Applied curse %s to %s players",
58-
"commands.stats.insulin": "Insulin Resistance: %d/%d (%.1f%%/%.1f%%)",
58+
"commands.stats.insulinResponse": "Insulin Response: %d/%d (%.1f%%/%.1f%%)",
5959
"commands.stats.phytonutrients": "Phytonutrients: %d/%d (%.1f%%/%.1f%%)",
6060
"commands.stats.protein": "Protein: %d/%d (%.1f%%/%.1f%%)",
6161
"commands.status.armor": "ArmorValue: %f",

src/generated/resources/assets/ifw/lang/zh_cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"commands.day.message": "今天是第 %s 天",
5656
"commands.give.curse.player": "应用诅咒 %s 至 %s",
5757
"commands.give.curse.players": "应用诅咒 %s 至 %s 个玩家",
58-
"commands.stats.insulin": "胰岛素抵抗: %d/%d (%.1f%%/%.1f%%)",
58+
"commands.stats.insulinResponse": "胰岛素抵抗: %d/%d (%.1f%%/%.1f%%)",
5959
"commands.stats.phytonutrients": "植物营养素: %d/%d (%.1f%%/%.1f%%)",
6060
"commands.stats.protein": "蛋白质: %d/%d (%.1f%%/%.1f%%)",
6161
"commands.status.armor": "护甲值: %f",

src/main/java/huix/infinity/common/command/PlayerCommands.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void onRegisterCommands(RegisterCommandsEvent event) {
6969
// 计算百分比
7070
double phytPercent = (double) phytonutrients / PHYTONUTRIENTS_MAX * 100;
7171
double proteinPercent = (double) protein / PROTEIN_MAX * 100;
72-
double insulinPercent = (double) insulinResponse / INSULIN_RESPONSE_MAX * 100;
72+
double insulinResponsePercent = (double) insulinResponse / INSULIN_RESPONSE_MAX * 100;
7373

7474
// 构建带颜色的 Component
7575
Component phytComponent = Component.translatable(
@@ -83,8 +83,8 @@ public static void onRegisterCommands(RegisterCommandsEvent event) {
8383
).withStyle(ChatFormatting.YELLOW);
8484

8585
Component insulinComponent = Component.translatable(
86-
"commands.stats.insulin",
87-
insulinResponse, INSULIN_RESPONSE_MAX, insulinPercent, 100.0
86+
"commands.stats.insulinResponse",
87+
insulinResponse, INSULIN_RESPONSE_MAX, insulinResponsePercent, 100.0
8888
).withStyle(ChatFormatting.LIGHT_PURPLE);
8989

9090
// 拼接为多行 Component

src/main/java/huix/infinity/datagen/lang/IFWCNLang.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected void addTranslations() {
4141
add("commands.day.message", "今天是第 %s 天");
4242
add("commands.stats.phytonutrients", "植物营养素: %d/%d (%.1f%%/%.1f%%)");
4343
add("commands.stats.protein", "蛋白质: %d/%d (%.1f%%/%.1f%%)");
44-
add("commands.stats.insulin", "胰岛素抵抗: %d/%d (%.1f%%/%.1f%%)");
44+
add("commands.stats.insulinResponse", "胰岛素抵抗: %d/%d (%.1f%%/%.1f%%)");
4545
add("commands.status.harvesting", "采集速度: %s");
4646
add("commands.status.crafting", "合成速度: %s");
4747
add("commands.status.melee_damage", "近战伤害: %s");

src/main/java/huix/infinity/datagen/lang/IFWUSLang.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected void addTranslations() {
4141
add("commands.day.message", "It is day %s of this world");
4242
add("commands.stats.phytonutrients", "Phytonutrients: %d/%d (%.1f%%/%.1f%%)");
4343
add("commands.stats.protein", "Protein: %d/%d (%.1f%%/%.1f%%)");
44-
add("commands.stats.insulin", "Insulin Resistance: %d/%d (%.1f%%/%.1f%%)");
44+
add("commands.stats.insulinResponse", "Insulin Response: %d/%d (%.1f%%/%.1f%%)");
4545
add("commands.status.harvesting", "Harvesting: %s");
4646
add("commands.status.crafting", "Crafting: %s");
4747
add("commands.status.melee_damage", "Melee Damage: %s");

0 commit comments

Comments
 (0)