Improved formatting of T-Cain Salvage description
This commit is contained in:
1 parent
fd4370df19
commit
a6f59530d7
3 files changed
+14
-6
No files matched your search
+6
-3
@@ -368,10 +368,13 @@ EID.UserConfig = {
|
||||
-- Some descriptions can be completely different depending on what character you are, here you can disable the most extreme ones
|
||||
|
||||
-- Changes Health Ups and removes healing effect text when playing as a character that can't have red health
|
||||
-- Default = true
|
||||
["DynamicHealthUps"] = true,
|
||||
|
||||
-- As Tainted Cain, replaces pedestal descriptions with what they will turn into
|
||||
["DynamicSalvageResult"] = true,
|
||||
-- As Tainted Cain, replaces pedestal descriptions with what they will turn
|
||||
-- REPENTANCE ONLY!!!
|
||||
-- Default = true
|
||||
["DisplayTCainSalvageResults"] = true,
|
||||
|
||||
---------- Bag of Crafting ------------
|
||||
|
||||
@@ -642,7 +645,7 @@ EID.DefaultConfig = {
|
||||
["ItemReminderShowRNGCheats"] = false,
|
||||
|
||||
["DynamicHealthUps"] = true,
|
||||
["DynamicSalvageResult"] = true,
|
||||
["DisplayTCainSalvageResults"] = true,
|
||||
|
||||
["SpindownDiceResults"] = 3,
|
||||
["SpindownDiceDisplayID"] = false,
|
||||
|
||||
@@ -475,8 +475,8 @@ if MCMLoaded then
|
||||
|
||||
EID:AddBooleanSetting("Display", "DynamicHealthUps", "Dynamic Health Up Text",
|
||||
{infoText = "Changes Health Ups and removes healing effect text when playing as a character that can't have red health"})
|
||||
EID:AddBooleanSetting("Display", "DynamicSalvageResult", "Show Tainted Cain Salvage Result",
|
||||
{repOnly = true, infoText = "As Tainted Cain, replaces pedestal descriptions with what they will turn into"})
|
||||
EID:AddBooleanSetting("Display", "DisplayTCainSalvageResults", "Show Tainted Cain Salvage Results",
|
||||
{repOnly = true, infoText = "As Tainted Cain, replaces pedestal descriptions with what they will turn into on touch"})
|
||||
|
||||
|
||||
--------Obstruction---------
|
||||
|
||||
@@ -838,7 +838,7 @@ if EID.isRepentance then
|
||||
|
||||
-- Handle Tainted Cain pedestals
|
||||
local function TaintedCainPedestalCallback(descObj)
|
||||
if EID.isDeathCertRoom or not descObj.Entity or not EID.Config["DynamicSalvageResult"] then return descObj end
|
||||
if EID.isDeathCertRoom or not descObj.Entity or not EID.Config["DisplayTCainSalvageResults"] then return descObj end
|
||||
local item = EID.itemConfig:GetCollectible(descObj.ObjSubType)
|
||||
if (item.Tags and item.Tags & ItemConfig.TAG_QUEST == ItemConfig.TAG_QUEST) then return descObj end
|
||||
|
||||
@@ -850,6 +850,9 @@ if EID.isRepentance then
|
||||
local hasBirthright = closestPlayer:HasCollectible(619)
|
||||
local salvageDesc = hasBirthright and EID:getDescriptionEntry("TaintedCainPedestalBaseBirthright") or EID:getDescriptionEntry("TaintedCainPedestalBase")
|
||||
local pickupNames = EID:getDescriptionEntry("PickupNames")
|
||||
|
||||
-- add T-Cain icon at start of line
|
||||
salvageDesc = "{{Player23}} ".. salvageDesc
|
||||
|
||||
-- Guaranteed items from room type
|
||||
local roomType = game:GetLevel():GetCurrentRoomDesc().Data.Type
|
||||
@@ -882,6 +885,8 @@ if EID.isRepentance then
|
||||
salvageDesc = salvageDesc .. "#" .. newLine
|
||||
end
|
||||
descObj.Description = salvageDesc
|
||||
descObj.Transformation = nil -- remove transformation info. useless for T-Cain because item will not count towards transformations
|
||||
|
||||
for i = 1, #EID.coopAllPlayers do
|
||||
local t = EID.coopAllPlayers[i]:GetPlayerType()
|
||||
if t ~= PlayerType.PLAYER_CAIN_B then
|
||||
|
||||
Reference in new issue
Block a user