def battle_add(self, battle):
        if not self.battles:
            battle.id = 1
        else:
            battle.id = max(self.battles.keys()) + 1
        self.battles[battle.id] = battle
        self.log.debug(str(self.battles) % "Battles: %s")
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/lib/world.py/World.battle_add/swapped operands of `%`