LEB: Difference between revisions

Line 150: Line 150:
First there is 4 bytes which define the usage of actor switches 0-3 respectively:
First there is 4 bytes which define the usage of actor switches 0-3 respectively:


*0: uncertain purpose. Observable on dungeon torches (ObjDungeonFaceLamp)
*0: Appears to define an index in set a of local flags for the room. For example, whether a torch is lit or not, a bush is cut or not, etc.
*1: The actor switch is the index of a global flag.
*1: The actor switch is the index of a global flag.
*2: Defines a hardcoded value for the switch, usually 1. For example, while some treasure chests appear based on a global flag being set, some don't; these ones would just use this hardcoded 1 instead of a flag index.
*2: Defines a hardcoded value for the switch, usually 1. For example, while some treasure chests appear based on a global flag being set, some don't; these ones would just use this hardcoded 1 instead of a flag index.
39

edits