Mercurial > traipse_dev
comparison orpg/chat/commands.py @ 87:eb1b275699c4 alpha
Traipse Alpha 'OpenRPG' {090917-01}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary:
00:
Adds menu changes to draw attention to important updates, errors, or other events. (image info coming soon)
Traipse URL is not included in the repos tab and is set as default.
01:
Fixes Copy for Windows and Linux (finally!!) users.
Fixes incomplete update to Grid and List nodes.
Fixes incomplete update to Chat Commands.
author | sirebral |
---|---|
date | Thu, 17 Sep 2009 03:23:03 -0500 |
parents | 449a8900f9ac |
children | 910942d07574 dcf4fbe09b70 |
comparison
equal
deleted
inserted
replaced
86:bdbeafcb2ef4 | 87:eb1b275699c4 |
---|---|
12 import time | 12 import time |
13 import orpg.orpg_version | 13 import orpg.orpg_version |
14 import orpg.orpg_windows | 14 import orpg.orpg_windows |
15 import traceback | 15 import traceback |
16 | 16 |
17 from orpg.orpgCore import component | |
17 from orpg.tools.orpg_log import logger | 18 from orpg.tools.orpg_log import logger |
18 from orpg.tools.decorators import debugging | 19 from orpg.tools.decorators import debugging |
19 | 20 |
20 ##-------------------------------------------------------------- | 21 ##-------------------------------------------------------------- |
21 ## dynamically loading module for extended developer commands | 22 ## dynamically loading module for extended developer commands |
260 "<br />GMT: "+time.strftime(format_string,gmt_time)) | 261 "<br />GMT: "+time.strftime(format_string,gmt_time)) |
261 | 262 |
262 @debugging | 263 @debugging |
263 def on_dieroller(self, cmdargs): | 264 def on_dieroller(self, cmdargs): |
264 args = string.split(cmdargs,None,-1) | 265 args = string.split(cmdargs,None,-1) |
265 rm = self.chat.DiceManager | 266 rm = component.get('DiceManager') |
266 try: | 267 try: |
267 rm.setRoller(args[0]) | 268 rm.setRoller(args[0]) |
268 self.chat.SystemPost("You have changed your die roller to the <b>\"" + args[0] + "\"</b> roller.") | 269 self.chat.SystemPost("You have changed your die roller to the <b>\"" + args[0] + "\"</b> roller.") |
269 self.settings.set_setting('dieroller',args[0]) | 270 self.settings.set_setting('dieroller',args[0]) |
270 except Exception, e: | 271 except Exception, e: |