Added Stat Change Predictors for Experimental Treatment and Dataminer by Pattieburger
This commit is contained in:
1 parent
d98397ec26
commit
0162ef2e35
4 files changed
+137
-7
No files matched your search
@@ -141,6 +141,29 @@ local function BlackRuneCallback(descObj)
|
||||
return VoidCallback(descObj, true)
|
||||
end
|
||||
|
||||
local function RandomStatIncreaseCallback(descObj)
|
||||
for i = 1, #EID.coopAllPlayers do
|
||||
local player = EID.coopAllPlayers[i]
|
||||
-- only add description for relevant players
|
||||
if not EID.InsideItemReminder or (EID.InsideItemReminder and EID.ItemReminderPlayerEntity == player) then
|
||||
local playerID = player:GetPlayerType()
|
||||
EID:appendToDescription(descObj, "#"..EID:GetPlayerIcon(playerID) .. " {{ColorIsaac}}"..player:GetName().."{{CR}}#")
|
||||
|
||||
if descObj.ObjSubType == 240 then
|
||||
-- Experimental Treatment
|
||||
local itemDataTable = EID:ExperimentalTreatmentRNGCheck(player)
|
||||
EID:appendToDescription(descObj, EID:GenerateDescriptionFromStatTable(itemDataTable))
|
||||
else
|
||||
-- Dataminer
|
||||
local itemDataTable = EID:DataminerRNGCheck(player)
|
||||
EID:appendToDescription(descObj, EID:GenerateDescriptionFromStatTable(itemDataTable))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return descObj
|
||||
end
|
||||
|
||||
-- Map each text block of Pandora's Box to the AbsoluteStage number. Second entry is the block used for Alt-Stages
|
||||
local pandoraStages = {
|
||||
[1] = { 1, 1 }, -- B1
|
||||
@@ -1302,6 +1325,10 @@ local function EIDConditionsAB(descObj)
|
||||
if EID.collectiblesOwned[477] then table.insert(callbacks, VoidCallback) end
|
||||
if EID.collectiblesOwned["5.300.41"] then table.insert(callbacks, BlackRuneCallback) end
|
||||
end
|
||||
if EID.Config["ItemReminderShowRNGCheats"] then
|
||||
if descObj.ObjSubType == 240 then table.insert(callbacks, RandomStatIncreaseCallback) end
|
||||
if descObj.ObjSubType == 481 then table.insert(callbacks, RandomStatIncreaseCallback) end
|
||||
end
|
||||
|
||||
elseif descObj.ObjVariant == PickupVariant.PICKUP_TRINKET then
|
||||
if descObj.ObjSubType == 80 then table.insert(callbacks, BlackFeatherCallback) end
|
||||
|
||||
Reference in new issue
Block a user