Skip to content

Support true and false as valid comparison values for var operator #73

@PCG06

Description

@PCG06

Title.

I created a new macro and added its case to AutoVar, and then used it in my pory script. But it gave me an error because of == true.

-        if(islevelcapactive == true) {
+       if(islevelcapactive) {
            setvar(B_LEVEL_CAP_VARIABLE, 17)
        }

Error if used == true:

data/maps/CastbellePath/scripts.pory: Assembler messages:
data/maps/CastbellePath/scripts.pory:246: Error: non-constant expression in ".if" statement
data/maps/CastbellePath/scripts.pory:81:  Info: macro invoked from here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions