KhymChanur: In 2.x, "special" things for a cave square, like a fountain or a monster trap, are stored in the cave_type fields special and special2. This means if you want to do something special to a cave square, you're limited to two integers in which to store your information, and you can't do two different special things to the same square unless each uses a different special field; doing three different special things to the same square is impossible. So I propose that these two fields be replaced by a flagset field, probably simply named flags: you can store arbitrary amounts of information in a flagset, and you can avoid overlap/collision by creating new flags. This will increase the size of the save file some, but I haven't any idea of how much, since I know nothing about the save/restore functionality of the T-Engine.

NeilStevens: Given that this would fix the bugs involving staircases moved by traps and turned into branch stairs, I'm all for it.

DarkGod: An empty flags structure is not very big. And anyway I really do not care if the savefiles take 10k more or not, it adds so much usability. (That, and the fact thaht the savefiles are gzipped anyway)

Developers Corner/Proposals/Replace cave type 'special' fields with flagset (last edited 2006-03-13 11:03:15 by DarkGod)