Use ItemConfig for more stuff that was done by the LUT (#838)

* Use ItemConfig for more stuff that was done by the LUT

* Missed some stuff

* Update lookuptable_generator.py
This commit is contained in:
kittenchilly authored and GitHub committed 2025-05-02 20:27:35 +02:00
1 parent 90fa6f0358
commit e774aa9186
8 files changed
+47 -76

No files matched your search

+2 -13
View File
@@ -236,18 +236,8 @@ function EID:addCard(id, description, itemName, language)
EID.descriptions[language].custom["5.300." .. id] = {id, itemName, description, EID._currentMod}
end
---Adds a metadata for a card. Used for Blank Card/Clear Rune.
---@param id Card
---@param mimicCharge integer @Range: [1, 12]
---@param isRune? boolean @Whether the card is a rune
-- DEPRECATED! Does nothing! Don't use!
function EID:addCardMetadata(id, mimicCharge, isRune)
if isRune then
EID.blankCardHidden[id] = true
EID.runeIDs[id] = true
end
EID.cardMetadata[id] = {
mimiccharge = type(mimicCharge) == "number" and mimicCharge or -1
}
end
---Adds a description for a PillEffect id
@@ -290,11 +280,10 @@ end
---Adds a metadata for a pilleffect. Used for Placebo/False PHD
---@param id PillEffect
---@param mimicCharge integer @Range: [1, 12]
---@param mimicCharge integer @DEPRECATED, does nothing
---@param class? EID_PillClass @Default: "0". With False PHD, "3-" gives +0.6 Damage, "2-" and "1-" spawn a Black Heart
function EID:addPillMetadata(id, mimicCharge, class)
EID.pillMetadata[id] = {
mimiccharge = type(mimicCharge) == "number" and mimicCharge or -1,
class = class or "0",
}
end