Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The main error I encountered when trying to fix the mod, was the "RoomType.ROOM_TREASURE" was causing the crash. In the line of code you posted, because of the "and", the code will have to meet both conditions to run successfully. It'll attempt to define the room type and crash at that point. That's why I removed it from the original and replaced it with the suggested line in the OP. I don't know why it doesn't like the "RoomType" bit, it's just the conclusion I came to when testing what line breaks it.
If it works for you with the code you entered, that's great. Honestly i'm pretty clueless when it comes to this and it was trial and error, if you've figured something out I've missed, please explain so I can learn and make it better. Thanks
My apologies, I had a typo in the original version I posted. Please try this instead:
I trimmed some of the original code. I got rid of the itemPoolType == ItemPoolType.POOL_TREASURE bit since I believe there is a possibility of that portion of the code causing the mod to not function properly if you start an Eden run with Chaos.
In short, this new version of my code will check for 1) if they are on the first floor and 2) if the player has entered a Treasure Room. I believe this version of the code should work the best for most people!
Instead I've changed to
`if (Game():GetLevel():GetStage() == LevelStage.STAGE1_1) and (Game():GetLevel():GetCurrentRoom():GetType() == RoomType.ROOM_TREASURE) then` (notice the GetStage() at the end)