A dungeon delver roguelike using Pathfinder 2nd edition rules
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added bit-checking macros

+47
+47
gb/src/macros/dungeon.inc
··· 1 + MACRO IsUsed 2 + ld a, \1 3 + cp [BIT_USED_ROOM] 4 + jp z, \2 5 + ENDM 6 + 7 + MACRO IsEntrance 8 + ld a, \1 9 + cp [BIT_ENTRANCE] 10 + jp z, \2 11 + ENDM 12 + 13 + MACRO HasNorthDoor 14 + ld a, \1 15 + cp [BIT_DOOR_NORTH] 16 + jp z, \2 17 + ENDM 18 + 19 + MACRO HasWestDoor 20 + ld a, \1 21 + cp [BIT_DOOR_WEST] 22 + jp z, \2 23 + ENDM 24 + 25 + MACRO HasSouthDoor 26 + ld a, \1 27 + cp [BIT_DOOR_SOUTH] 28 + jp z, \2 29 + ENDM 30 + 31 + MACRO HasEastDoor 32 + ld a, \1 33 + cp [BIT_DOOR_EAST] 34 + jp z, \2 35 + ENDM 36 + 37 + MACRO HasStairDown 38 + ld a, \1 39 + cp [BIT_STAIR_BELOW] 40 + jp z, \2 41 + ENDM 42 + 43 + MACRO HasStairUp 44 + ld a, \1 45 + cp [BIT_STAIR_UP] 46 + jp z, \2 47 + ENDM