creep.owner != creep.room.controller.owner



  • But:
    creep.owner.username == creep.room.controller.owner.username

    If 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?


  • Culture

    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.username

    Looks right now.. Yes.

    Thansk for comment, that was done in hurrty a bit.


  • Dev Team

    This is intended. Comparing objects is considered a bad practice in JavaScript.