From be5593356177166a2da34dab2f7e2113bb62a7e2 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sun, 23 May 2021 19:29:33 +0200 Subject: [PATCH] Implemented Binge Eater Buff informations --- descriptions/rep/en_us.lua | 13 +++++++++++++ main.lua | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/descriptions/rep/en_us.lua b/descriptions/rep/en_us.lua index 8f41e31b..c09b7fb7 100644 --- a/descriptions/rep/en_us.lua +++ b/descriptions/rep/en_us.lua @@ -348,6 +348,19 @@ EID.descriptions["en_us"].birthright ={ {"Tainted Forgotten Soul", "", "Tainted Soul gains the Recall ability {{Collectible714}}, to automatically retrieve the Tainted Forgotten from a distance"}, } +-- Buffs caused by Binge Eater +-- Note: "#" will be replaced with "#{{Collectible664}} " automatically, in order to add Binge eater icon infront of each buff-bulletpoint +EID.descriptions["en_us"].bingeEaterBuffs = { + [22] = {"22", "", "↑+0.5 Tears up#↑+1.5 Range up"}, -- Lunch + [23] = {"23", "", "↑+0.5 Tears up#↑+0.2 Shot Speed up"}, -- Dinner + [24] = {"24", "", "↑+1.0 Damage up#↑+0.2 Speed up"}, -- Dessert + [25] = {"25", "", "↑+0.2 Speed up#↑+1.5 Range up"}, -- Breakfast + [26] = {"26", "", "↑+1.0 Damage up#↑+1.5 Range up"}, -- Rotten Meat + [456] = {"456", "", "↑+1.0 Damage up#↑+1.0 Luck up"}, -- Midnight Snack + [346] = {"346", "", "↑+0.2 Shot Speed up#↑+1.0 Luck up"}, -- A Snack + [707] = {"707", "", "↑+0.5 Tears up#↑+1.0 Luck up"}, -- Supper +} + EID.descriptions["en_us"].spindownError = "Item disappears" ---------- Trinkets ---------- diff --git a/main.lua b/main.lua index e36e89ae..c974ab1e 100644 --- a/main.lua +++ b/main.lua @@ -641,6 +641,14 @@ local function onRender(t) descriptionObj.Description = "{{CustomTransformation}} {{ColorGray}}"..playerName.."{{CR}}#"..birthrightDesc[3] end end + -- Handle Bingeeater description addition + if player:HasCollectible(664) then + local bingeBuff = EID.descriptions[EID.Config["Language"]]["bingeEaterBuffs"][closest.SubType] or EID.descriptions["en_us"]["bingeEaterBuffs"][closest.SubType] or nil + if bingeBuff ~= nil then + local bingeStr = "#{{Collectible664}} " + descriptionObj.Description = descriptionObj.Description..bingeStr..bingeBuff[3]:gsub("#",bingeStr) + end + end -- Handle Spindown Dice description addition if player:HasCollectible(723) then descriptionObj.Description = descriptionObj.Description.."#{{Collectible723}} :"