creep.owner != creep.room.controller.owner
-
But:
creep.owner.username == creep.room.controller.owner.usernameIf owner isnt some global object that identifies me its understandable
But isn't this wrong? I mean it should be. Why do we need many instances of this?
-
I do not see any room.owner object defined anywhere.
Are you sure that this is what you meant?
-
Whoops, sorry.
creep.owner != creep.room.controller.owner
and
creep.owner.username == creep.room.controller.owner.usernameLooks right now.. Yes.
Thansk for comment, that was done in hurrty a bit.
-
This is intended. Comparing objects is considered a bad practice in JavaScript.