diff --git a/assets/mods/basegame/locales/en/itemdesc.json b/assets/mods/basegame/locales/en/itemdesc.json index 2ae8b3762..fa6178eae 100644 --- a/assets/mods/basegame/locales/en/itemdesc.json +++ b/assets/mods/basegame/locales/en/itemdesc.json @@ -31,8 +31,8 @@ "TOOLTIP_item@basegame:20": "Cuts trees", "TOOLTIP_item@basegame:21": "Cuts trees", "TOOLTIP_item@basegame:22": "Cuts trees, just barely", - "TOOLTIP_item@basegame:23": "Cuts trees", - "TOOLTIP_item@basegame:24": "Breaks rocks", + "TOOLTIP_item@basegame:23": "Breaks rocks", + "TOOLTIP_item@basegame:24": "Cuts trees", "TOOLTIP_item@basegame:25": "Finer grains of dirts that gets stronger when burned", /* 26 is Steel Ingot */ "TOOLTIP_item@basegame:27": "Every blacksmith gotta start from somewhere", diff --git a/assets/mods/basegame/locales/koKR/itemdesc.json b/assets/mods/basegame/locales/koKR/itemdesc.json index 0e8f18aae..3df05eea7 100644 --- a/assets/mods/basegame/locales/koKR/itemdesc.json +++ b/assets/mods/basegame/locales/koKR/itemdesc.json @@ -31,8 +31,8 @@ "TOOLTIP_item@basegame:20": "나무를 자릅니다", "TOOLTIP_item@basegame:21": "나무를 자릅니다", "TOOLTIP_item@basegame:22": "나무를 간신히 자릅니다", - "TOOLTIP_item@basegame:23": "나무를 자릅니다", - "TOOLTIP_item@basegame:24": "돌을 부숩니다", + "TOOLTIP_item@basegame:23": "돌을 부숩니다", + "TOOLTIP_item@basegame:24": "나무를 자릅니다", "TOOLTIP_item@basegame:25": "태우면 더 단단해지는 고운 흙입니다", /* 26 is Steel Ingot */ "TOOLTIP_item@basegame:27": "모든 대장장이는 초보 시절이 있는 법이죠", diff --git a/src/net/torvald/terrarum/ui/UIItemInventoryElemSimple.kt b/src/net/torvald/terrarum/ui/UIItemInventoryElemSimple.kt index b1bf653fa..78d4bc4b0 100644 --- a/src/net/torvald/terrarum/ui/UIItemInventoryElemSimple.kt +++ b/src/net/torvald/terrarum/ui/UIItemInventoryElemSimple.kt @@ -1,5 +1,8 @@ package net.torvald.terrarum.ui +import com.badlogic.gdx.Gdx +import com.badlogic.gdx.Input +import com.badlogic.gdx.Input.Keys import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.graphics.OrthographicCamera import com.badlogic.gdx.graphics.g2d.SpriteBatch @@ -136,7 +139,7 @@ class UIItemInventoryElemSimple( val grey = App.fontGame.toColorCode(11, 11, 11) val itemIDstr = "\n$grey(${item?.originalID}${if (item?.originalID == item?.dynamicID) "" else "/${item?.dynamicID}"})" val nameStr0 = if (item?.nameSecondary?.isNotBlank() == true) "${item?.name}\n$grey${item?.nameSecondary}" else "${item?.name}" - val nameStr = if (App.IS_DEVELOPMENT_BUILD) nameStr0 + itemIDstr else nameStr0 + val nameStr = if (Gdx.input.isKeyPressed(Input.Keys.ALT_LEFT)) nameStr0 + itemIDstr else nameStr0 val descStr = Lang.getOrNull("TOOLTIP_${item?.originalID}")?.replace("\n","\n$grey") val finalStr = if (descStr != null) "$nameStr\n$grey$descStr" else nameStr diff --git a/src/net/torvald/terrarum/ui/UIItemInventoryElemWide.kt b/src/net/torvald/terrarum/ui/UIItemInventoryElemWide.kt index cd2cad078..47916eb92 100644 --- a/src/net/torvald/terrarum/ui/UIItemInventoryElemWide.kt +++ b/src/net/torvald/terrarum/ui/UIItemInventoryElemWide.kt @@ -1,5 +1,7 @@ package net.torvald.terrarum.ui +import com.badlogic.gdx.Gdx +import com.badlogic.gdx.Input import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.graphics.OrthographicCamera import com.badlogic.gdx.graphics.g2d.SpriteBatch @@ -168,7 +170,7 @@ class UIItemInventoryElemWide( val grey = App.fontGame.toColorCode(11, 11, 11) val itemIDstr = "\n$grey(${item?.originalID}${if (item?.originalID == item?.dynamicID) "" else "/${item?.dynamicID}"})" val nameStr0 = if (item?.nameSecondary?.isNotBlank() == true) "${item?.name}\n$grey${item?.nameSecondary}" else "${item?.name}" - val nameStr = if (App.IS_DEVELOPMENT_BUILD) nameStr0 + itemIDstr else nameStr0 + val nameStr = if (Gdx.input.isKeyPressed(Input.Keys.ALT_LEFT)) nameStr0 + itemIDstr else nameStr0 val descStr = Lang.getOrNull("TOOLTIP_${item?.originalID}")?.replace("\n","\n$grey") val finalStr = if (descStr != null) "$nameStr\n$grey$descStr" else nameStr