make fixCollisionBugs an integer again (2) (#241)

This commit is contained in:
Isaac0-dev 2022-11-30 18:44:49 +10:00 committed by GitHub
parent 3214fc1de2
commit 571d80aebf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -633,7 +633,7 @@
--- @field public exitCastleArea integer
--- @field public exitCastleLevel LevelNum
--- @field public exitCastleWarpNode integer
--- @field public fixCollisionBugs boolean
--- @field public fixCollisionBugs integer
--- @field public fixVanishFloors boolean
--- @field public floorLowerLimit integer
--- @field public floorLowerLimitMisc integer

View file

@ -928,7 +928,7 @@
| exitCastleArea | `integer` | |
| exitCastleLevel | [enum LevelNum](constants.md#enum-LevelNum) | |
| exitCastleWarpNode | `integer` | |
| fixCollisionBugs | `boolean` | |
| fixCollisionBugs | `integer` | |
| fixVanishFloors | `boolean` | |
| floorLowerLimit | `integer` | |
| floorLowerLimitMisc | `integer` | |

View file

@ -37,7 +37,7 @@ struct StarPositions {
};
struct LevelValues {
bool fixCollisionBugs;
u8 fixCollisionBugs;
bool fixVanishFloors;
enum LevelNum entryLevel;
enum LevelNum exitCastleLevel;

View file

@ -734,7 +734,7 @@ static struct LuaObjectField sLevelValuesFields[LUA_LEVEL_VALUES_FIELD_COUNT] =
{ "exitCastleArea", LVT_S16, offsetof(struct LevelValues, exitCastleArea), false, LOT_NONE },
{ "exitCastleLevel", LVT_S32, offsetof(struct LevelValues, exitCastleLevel), false, LOT_NONE },
{ "exitCastleWarpNode", LVT_U8, offsetof(struct LevelValues, exitCastleWarpNode), false, LOT_NONE },
{ "fixCollisionBugs", LVT_BOOL, offsetof(struct LevelValues, fixCollisionBugs), false, LOT_NONE },
{ "fixCollisionBugs", LVT_U8, offsetof(struct LevelValues, fixCollisionBugs), false, LOT_NONE },
{ "fixVanishFloors", LVT_BOOL, offsetof(struct LevelValues, fixVanishFloors), false, LOT_NONE },
{ "floorLowerLimit", LVT_S16, offsetof(struct LevelValues, floorLowerLimit), false, LOT_NONE },
{ "floorLowerLimitMisc", LVT_S16, offsetof(struct LevelValues, floorLowerLimitMisc), false, LOT_NONE },