epfly6 / RepentanceAPIIssueTracker

An unofficial issue tracker for issues with The Binding of Isaac: Repentance's API.
19 stars 1 forks source link

Allow for modifying Room Data via lua. #47

Open AgentCucco opened 3 years ago

AgentCucco commented 3 years ago

Right now in the API there isn't any sort of method to change a room's Data, the only workaround we've been able to find is to overwrite their RoomDescriptorData with the one of another room. It would be nice to able to change the room's type via lua, room backdrop, among other options regarding their data.

Meowlala commented 3 years ago

Not only this, but also some information in the RoomDescriptor itself is immutable and should be possible to change, such as RoomDescriptor.HasWater, for water pits.

im-tem commented 3 years ago

Not only this, but also some information in the RoomDescriptor itself is immutable and should be possible to change, such as RoomDescriptor.HasWater, for water pits.

I am here to inform you that it is possible to change HasWater value since Game():GetLevel():GetRoomByIdx(idx) gives modifiable RoomDescriptor object :)

image