Esempio n. 1
0
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super(CharacterCmdSet, self).at_cmdset_creation()
        self.remove(default_cmds.CmdDrop())
        self.remove(default_cmds.CmdGet())
        self.remove(default_cmds.CmdGive())
        self.remove(default_cmds.CmdHome())
        self.remove(default_cmds.CmdInventory())
        self.remove(default_cmds.CmdPose())
        self.remove(default_cmds.CmdSay())
        self.remove(default_cmds.CmdSetDesc())
        self.remove(default_cmds.CmdWho())
        self.remove(default_cmds.CmdWhisper())
        self.remove(default_cmds.CmdAbout())
        self.remove(default_cmds.CmdTime())
        self.remove(default_cmds.CmdAccess())
        self.remove(default_cmds.CmdNick())

        # Add Vancia commands
        self.add(CmdAfk())
        self.add(CmdEmote())
        self.add(CmdSay())
        self.add(CmdTell())
        self.add(CmdWho())
Esempio n. 2
0
 def at_cmdset_creation(self):
     """populate the cmdset."""
     self.add(CmdTutorial())
     self.add(CmdLookDark())
     self.add(CmdDarkHelp())
     self.add(CmdDarkNoMatch())
     self.add(default_cmds.CmdSay())
     self.add(default_cmds.CmdQuit())
     self.add(default_cmds.CmdHome())
Esempio n. 3
0
    def at_cmdset_creation(self):
        """
        Populates the cmdset
        """
        super().at_cmdset_creation()
        # remove these so they don't exist anymore alongside their
        # translated versions.
        self.remove(default_cmds.CmdLook())
        self.remove(default_cmds.CmdInventory())
        self.remove(default_cmds.CmdGet())
        self.remove(default_cmds.CmdDrop())
        self.remove(default_cmds.CmdGive())
        #
        # overriding default commands with they translated version:
        #
        self.add(translated.CmdLook())
        self.add(translated.CmdInventory())
        self.add(translated.CmdGet())
        self.add(translated.CmdDrop())
        self.add(translated.CmdGive())

        # slow exit module
        self.add(slow_exit.CmdSetSpeed())

        # new commands from scratch:
        self.add(wilderness.CmdOrienta())
        self.add(general.CmdRimappa())
        self.add(general.CmdVai())

        # custom building tools:
        self.add(building.CmdTunnel())
        self.add(building.CmdPortal())

        # noexit "fake" commands:
        self.add(noexit.CmdNord())
        self.add(noexit.CmdSud())
        self.add(noexit.CmdOvest())
        self.add(noexit.CmdEst())
        self.add(noexit.CmdAlto())
        self.add(noexit.CmdBasso())
        self.add(noexit.CmdDentro())
        self.add(noexit.CmdFuori())
        self.add(noexit.CmdNordovest())
        self.add(noexit.CmdNordest())
        self.add(noexit.CmdSudovest())
        self.add(noexit.CmdSudest())

        #
        # disabled:
        #
        self.remove(
            default_cmds.CmdWhisper())  # whispers are handled by CmdSay
        self.remove(default_cmds.CmdHome())
Esempio n. 4
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(CmdAttack())
        self.add(CmdBuy())
        self.add(CmdBrief())
        self.add(CmdCast())
        self.add(CmdClear())
        self.add(CmdDebug())
        self.add(CmdDot())
        self.remove(default_cmds.CmdDrop())
        self.add(CmdDrop())
        self.add(CmdEquip())
        self.add(CmdExpress())
        self.remove(default_cmds.CmdGet())
        self.add(CmdGet())
        self.remove(default_cmds.CmdGive())
        self.remove(default_cmds.CmdHome())
        self.add(CmdHide())
        self.remove(default_cmds.CmdInventory())
        self.add(CmdInventory())
        self.add(CmdLearn())
        self.remove(default_cmds.CmdLook())
        self.add(CmdLook())
        self.add(CmdMake())
        self.remove(default_cmds.CmdName())
        self.add(CmdName())
        self.remove(default_cmds.CmdNick())
        self.remove(default_cmds.CmdPose())
        self.add(CmdPunch())
        self.add(CmdRest())
        self.add(CmdReveal())
        self.remove(default_cmds.CmdSay())
        self.add(CmdSay())
        self.add(CmdSheet())
        self.add(CmdShout())
        self.add(CmdShow())
        self.add(CmdSearch())
        self.add(CmdSell())
        self.add(CmdUnequip())
        self.remove(default_cmds.CmdWhisper())
        self.add(CmdWhisper())
        self.remove(default_cmds.CmdWho())
        self.add(CmdWho())

        # add back the original name command as 'rename'
        rename = default_cmds.CmdName(key="rename", aliases="")
        self.add(rename)