示例#1
0
 def test_cmddice(self, mocked_randint):
     from evennia.contrib import dice
     self.call(
         dice.CmdDice(), "3d6 + 4",
         "You roll 3d6 + 4.| Roll(s): 5, 5 and 5. Total result is 19.")
     self.call(dice.CmdDice(), "100000d1000",
               "The maximum roll allowed is 10000d10000.")
     self.call(dice.CmdDice(), "/secret 3d6 + 4",
               "You roll 3d6 + 4 (secret, not echoed).")
示例#2
0
 def at_cmdset_creation(self):
     """
     Populates the cmdset
     """
     super().at_cmdset_creation()
     #
     # any commands you add below will overload the default ones.
     #
     self.add(dice.CmdDice())  # Somewhere it says dice.CmdDice()
     self.add(extended_room.ExtendedRoomCmdSet())
     self.add(barter.CmdTrade())
     self.add(movecommands.CmdExitErrorNorth())
     self.add(movecommands.CmdExitErrorEast())
     self.add(movecommands.CmdExitErrorSouth())
     self.add(movecommands.CmdExitErrorWest())
     self.add(movecommands.CmdExitErrorNortheast())
     self.add(movecommands.CmdExitErrorNorthwest())
     self.add(movecommands.CmdExitErrorSoutheast())
     self.add(movecommands.CmdExitErrorSouthwest())
     self.add(movecommands.CmdExitErrorUp())
     self.add(movecommands.CmdExitErrorDown())
     self.add(npcshop.CmdBuildShop())
     self.add(charactercreation.CmdCharacterSetup())
     self.add(command.CmdStats())
     self.add(combat.CmdCast())
     self.add(combat.CmdAttack())
示例#3
0
 def at_cmdset_creation(self):
     """
     Populates the cmdset
     """
     super(CharacterCmdSet, self).at_cmdset_creation()
     #
     # any commands you add below will overload the default ones.
     #
     self.add(dice.CmdDice())
     self.add(command.CmdAttack())
     self.add(command.CmdEquip())
 def at_cmdset_creation(self):
     """
     Populates the cmdset
     """
     super(CharacterCmdSet, self).at_cmdset_creation()
     #
     # any commands you add below will overload the default ones.
     #
     self.add(dice.CmdDice())
     self.add(CmdMultiDesc())
     self.add(CmdMail())
示例#5
0
 def at_cmdset_creation(self):
     """
     Populates the cmdset
     """
     super(CharacterCmdSet, self).at_cmdset_creation()
     #
     # any commands you add below will overload the default ones.
     #
     self.add(gendersub.SetGender())  # Setting Gender
     self.add(slow_exit.CmdSetSpeed())  # Slow exit movement speed
     self.add(slow_exit.CmdStop())  # Slow exit movement stop
     self.add(dice.CmdDice())  # Dice Roller
     self.add(CmdMultiDesc())  # Multidescriptor
     self.add(simpledoor.CmdOpen())  # Simple Doors
     self.add(simpledoor.CmdOpenCloseDoor())  # Simple Doors
     self.add(extended_room.CmdExtendedLook())  # Extended Room
     self.add(extended_room.CmdExtendedDesc())  # Extended Room
     self.add(extended_room.CmdGameTime())  # Extended Room
     self.add(CmdMobOnOff())  # Apply command mobon / moboff