Conditionals overhaul (#666)

* more general type check

* conditional work + characterInfo

* conditional work + characterInfo

* conditional overhaul WIP

* fix typo with BagLearnedRecipes

* Cursed Eye + Black Candle synergy

* conditional stuff

* Change Brittle wording

* Teleport 2.0 Red Room check

* Changed collectiblesToCheck format, moved some mods to conds

* Add getPlayerName, tweak replaceNameMarkupStrings

* massive conditional overhaul

* AB+ birthright check fix

* oh yeah birthright isn't zero-indexed yet

* update with mirades

* update with mirades

* Move blank card / rune IDs

* move rune IDs, reduce reused code

* Add {{NameOnlyX###}} markup

* more conditionals

* more conditionals

* Update eid_conditionals.lua

* separate icon from name in variablecharge

* keep old localizations working

* split Dead Cat so it doesn't have a variable text

* Blank Card + ? Card

* moving Blank Card + ? Card

* Pretend english detailed doesn't exist

* Oops! No Comma!

* milk override

* Placenta no red hp

* actually no placenta still gives +1 health

* Dark Arts conditional

* Marbles percentage

* Dark Arts conditional
This commit is contained in:
Buurazu authored and GitHub committed 2024-06-09 17:59:56 +02:00
1 parent 68caf34fed
commit ac2aecae92
30 files changed
+614 -358

No files matched your search

+4 -4
View File
@@ -28,11 +28,11 @@ for _,lang in ipairs(languageFilesToCheck) do
if not table2[k] then
print(" Table '" .. prevKey .. "' does not contain key: " .. k)
progress[2] = progress[2] + 1
elseif type(table2[k]) ~= type(table1[k]) then
print("Type mismatch in table '" .. prevKey .. "', key: " .. k)
progress[2] = progress[2] + 1
elseif type(table2[k]) == "table" then
if type(table1[k]) ~= "table" then
print("Type mismatch in table '" .. prevKey .. "', key: " .. k)
progress[2] = progress[2] + 1
else EID:compareTables(table1[k], table2[k], k, progress) end
EID:compareTables(table1[k], table2[k], k, progress) end
else
-- check for broken markup stuff
local filteredText = EID:replaceShortMarkupStrings(table2[k])