Skip to content

Commit

Permalink
feat: Show New Year Cake Year
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed May 13, 2024
1 parent 4dfa90a commit 6a3613d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2300,6 +2300,16 @@ object Config : Vigilant(
)
var showOrigin = false

@Property(
type = PropertyType.SWITCH, name = "Show New Year Cake Year",
description = "Shows the year of a New Year Cake as the stack size.",
category = "Miscellaneous", subcategory = "Items",
i18nName = "skytils.config.miscellaneous.items.show_new_year_cake_year",
i18nCategory = "skytils.config.miscellaneous",
i18nSubcategory = "skytils.config.miscellaneous.items"
)
var showNYCakeYear = false

@Property(
type = PropertyType.SWITCH, name = "Show NPC Sell Price",
description = "Shows the NPC Sell Price on certain items.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,9 @@ object ItemFeatures {
UGraphics.enableDepth()
}
}
if (Skytils.config.showNYCakeYear && extraAttributes.hasKey("new_years_cake")) {
stackTip = extraAttributes.getInteger("new_years_cake").toString()
}
}
if (Skytils.config.showPetCandies && item.item === Items.skull) {
val petInfoString = getExtraAttributes(item)?.getString("petInfo")
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/skytils/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ skytils.config.miscellaneous.items.etherwarp_teleport_position_color=Etherwarp T
skytils.config.miscellaneous.items.show_gemstones=Show Gemstones
skytils.config.miscellaneous.items.show_head_floor_number=Show Head Floor Number
skytils.config.miscellaneous.items.show_item_origin=Show Item Origin
skytils.config.miscellaneous.items.show_new_year_cake_year=Show New Year Cake Year
skytils.config.miscellaneous.items.show_npc_sell_price=Show NPC Sell Price
skytils.config.miscellaneous.items.show_potion_tier=Show Potion Tier
skytils.config.miscellaneous.items.show_pet_candies=Show Pet Candies
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/skytils/lang/zh_CN.lang
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ skytils.config.miscellaneous.items.etherwarp_teleport_position_color=Etherwarp
skytils.config.miscellaneous.items.show_gemstones=显示宝石
skytils.config.miscellaneous.items.show_head_floor_number=显示金头/钻头所属地牢层数
skytils.config.miscellaneous.items.show_item_origin=显示物品来源
skytils.config.miscellaneous.items.show_new_year_cake_year=显示新年蛋糕年份
skytils.config.miscellaneous.items.show_npc_sell_price=显示NPC出售价格
skytils.config.miscellaneous.items.show_potion_tier=显示药水等级
skytils.config.miscellaneous.items.show_pet_candies=显示宠物使用糖果数
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/skytils/lang/zh_TW.lang
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ skytils.config.miscellaneous.items.etherwarp_teleport_position_color=Etherwarp
skytils.config.miscellaneous.items.show_gemstones=顯示寶石
skytils.config.miscellaneous.items.show_head_floor_number=顯示金頭/鑽頭所屬地牢層數
skytils.config.miscellaneous.items.show_item_origin=顯示物品來源
skytils.config.miscellaneous.items.show_new_year_cake_year=顯示新年蛋糕年份
skytils.config.miscellaneous.items.show_npc_sell_price=顯示NPC出售價格
skytils.config.miscellaneous.items.show_potion_tier=顯示藥水等級
skytils.config.miscellaneous.items.show_pet_candies=顯示寵物使用糖果數
Expand Down

0 comments on commit 6a3613d

Please sign in to comment.