var result : bool = Globals.fight(room_node)
if result == true:
It's breaking at the if statement thinking that result is an object instead of a boolean. I don't understand how this error is happening since I made result to be of type boolean. fight function is a boolean function as well
func fight(monster) -> bool:
So the function returns a boolean in every path, (has too or else gdscript yells at you), and a variable of type boolean stores it's result. How is it confusing result as an object? I originally had this as just one line but decided to separate it to see if anything would change. I don't exactly need this to be fixed, I can do a different check, I just find it odd that what seems to be a guaranteed boolean, is being treated as an object