comparison plugins/xxsimpleinit.py @ 227:81d0bfd5e800 alpha

Traipse Alpha 'OpenRPG' {100612-00} 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 (Preparing to close updates) New Features: New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order Fixes: Fix to InterParse that was causing an Infernal Loop with Namespace Internal Fix to XML data, removed old Minidom and switched to Element Tree Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread Fix to metaservers.xml file not being created
author sirebral
date Sat, 12 Jun 2010 03:50:37 -0500
parents c54768cffbd4
children
comparison
equal deleted inserted replaced
182:4b2884f29a72 227:81d0bfd5e800
1 import os 1 import os, wx
2 import orpg.pluginhandler 2 import orpg.pluginhandler
3 from orpg.orpgCore import * 3 from orpg.orpgCore import *
4 import wx 4 from orpg.tools.InterParse import Parse
5 5
6 class Plugin(orpg.pluginhandler.PluginHandler): 6 class Plugin(orpg.pluginhandler.PluginHandler):
7 # Initialization subroutine. 7 # Initialization subroutine.
8 # 8 #
9 # !self : instance of self 9 # !self : instance of self
213 msg = '<br><center><font color="#0000ff" ><b>== START INIT LIST ==</b></font></center><br>' 213 msg = '<br><center><font color="#0000ff" ><b>== START INIT LIST ==</b></font></center><br>'
214 msg += '<font color="#000000"><b>' 214 msg += '<font color="#000000"><b>'
215 for i in xrange(0, self.frame.initList.GetItemCount()): 215 for i in xrange(0, self.frame.initList.GetItemCount()):
216 self.frame.currentInit = i 216 self.frame.currentInit = i
217 if self.frame.currentInit.manual == 'No': 217 if self.frame.currentInit.manual == 'No':
218 initRoll = self.chat.ParseDice('[1d20' + self.frame.currentInit.initMod + ']') 218 initRoll = Parse.Dice('[1d20' + self.frame.currentInit.initMod + ']')
219 219
220 initRoll = initRoll.split('(') 220 initRoll = initRoll.split('(')
221 initRoll = initRoll[1].replace(')','') 221 initRoll = initRoll[1].replace(')','')
222 self.frame.initList.SetStringItem(i, 4, initRoll) 222 self.frame.initList.SetStringItem(i, 4, initRoll)
223 self.frame.initList.SetItemData(i, int(initRoll)) 223 self.frame.initList.SetItemData(i, int(initRoll))