Mercurial > traipse_dev
comparison orpg/dieroller/rollers/hero.py @ 184:dcae32e219f1 beta
Traipse Beta 'OpenRPG' {100117-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 (Beta)
New Features:
Added Bookmarks
Added 'boot' command to remote admin
Added confirmation window for sent nodes
Minor changes to allow for portability to an OpenSUSE linux OS
Miniatures Layer pop up box allows users to turn off Mini labels, from
FlexiRPG
Zoom Mouse plugin added
Images added to Plugin UI
Switching to Element Tree
Map efficiency, from FlexiRPG
Added Status Bar to Update Manager
New TrueDebug Class in orpg_log (See documentation for usage)
Portable Mercurial
Tip of the Day added, from Core and community
New Reference Syntax added for custom PC sheets
New Child Reference for gametree
New Parent Reference for gametree
New Gametree Recursion method, mapping, context sensitivity, and
effeciency..
New Features node with bonus nodes and Node Referencing help added
Dieroller structure from Core
New DieRoller portability for odd Dice
Added 7th Sea die roller; ie [7k3] = [7d10.takeHighest(3).open(10)]
New 'Mythos' System die roller added
Added new vs. die roller method for WoD; ie [3v3] = [3d10.vs(3)].
Included for Mythos roller also
New Warhammer FRPG Die Roller (Special thanks to Puu-san for the
support)
New EZ_Tree Reference system. Push a button, Traipse the tree, get a
reference (Beta!)
Fixes:
Fix to Text based Server
Fix to Remote Admin Commands
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Fix to Map from gametree not showing to all clients
Fix to gametree about menus
Fix to Password Manager check on startup
Fix to PC Sheets from tool nodes. They now use the tabber_panel
Fix to Whiteboard ID to prevent random line or text deleting.
Fixes to Server, Remote Server, and Server GUI
Fix to Update Manager; cleaner clode for saved repositories
Fixes made to Settings Panel and now reactive settings when Ok is
pressed
Fixes to Alternity roller's attack roll. Uses a simple Tuple instead of
a Splice
Fix to Use panel of Forms and Tabbers. Now longer enters design mode
Fix made Image Fetching. New fetching image and new failed image
Modified ID's to prevent non updated clients from ruining the fix.
default_manifest.xml renamed to default_upmana.xml
author | sirebral |
---|---|
date | Sun, 17 Jan 2010 21:37:34 -0600 |
parents | ff48c2741fe7 |
children |
comparison
equal
deleted
inserted
replaced
183:0d9b746b5751 | 184:dcae32e219f1 |
---|---|
27 # Changed Killing damage roller to correct stun multiplier bug | 27 # Changed Killing damage roller to correct stun multiplier bug |
28 # Handled new rounding issues | 28 # Handled new rounding issues |
29 # | 29 # |
30 # v.1 original release DJM | 30 # v.1 original release DJM |
31 | 31 |
32 __version__ = "$Id: hero.py,v 1.15 2006/11/04 21:24:19 digitalxero Exp $" | 32 __version__ = "$Id: hero.py,v Traipse 'Ornery-Orc' prof.ebral Exp $" |
33 | 33 |
34 from time import time, clock | 34 from time import time, clock |
35 import random | 35 import random |
36 | |
37 from std import std | 36 from std import std |
38 from orpg.dieroller.base import * | 37 from orpg.dieroller.base import * |
39 | 38 |
40 # Hero stands for "Hero system" not 20 sided die :) | 39 # Hero stands for "Hero system" not 20 sided die :) |
41 | 40 |
43 name = "hero" | 42 name = "hero" |
44 | 43 |
45 def __init__(self,source=[]): | 44 def __init__(self,source=[]): |
46 std.__init__(self,source) | 45 std.__init__(self,source) |
47 | 46 |
48 # these methods return new die objects for specific options | |
49 | 47 |
50 def k(self,mod): | 48 def k(self,mod): |
51 return herok(self,mod) | 49 return herok(self,mod) |
52 | 50 |
53 def hl(self): | 51 def hl(self): |
70 class herocv(std): | 68 class herocv(std): |
71 def __init__(self,source=[],cv=10,mod=0): | 69 def __init__(self,source=[],cv=10,mod=0): |
72 std.__init__(self,source) | 70 std.__init__(self,source) |
73 self.cv = cv | 71 self.cv = cv |
74 self.mod = mod | 72 self.mod = mod |
75 | |
76 | 73 |
77 def __str__(self): | 74 def __str__(self): |
78 myStr = "[" + str(self.data[0]) | 75 myStr = "[" + str(self.data[0]) |
79 for a in self.data[1:]: | 76 for a in self.data[1:]: |
80 myStr += "," | 77 myStr += "," |
108 swapmod= -self.mod | 105 swapmod= -self.mod |
109 myStr += strAdd + str(swapmod) | 106 myStr += strAdd + str(swapmod) |
110 modSum = self.sum()-self.mod | 107 modSum = self.sum()-self.mod |
111 myStr += " = (" + str(modSum) + ")" | 108 myStr += " = (" + str(modSum) + ")" |
112 myStr += " vs " + str(self.sk) | 109 myStr += " vs " + str(self.sk) |
113 | 110 if self.is_success(): myStr += " or less <font color='#ff0000'>Success!" |
114 if self.is_success(): | 111 else: myStr += " or less <font color='#ff0000'>Failure!" |
115 myStr += " or less <font color='#ff0000'>Success!" | |
116 else: | |
117 myStr += " or less <font color='#ff0000'>Failure!" | |
118 | |
119 Diff = self.sk - modSum | 112 Diff = self.sk - modSum |
120 myStr += " by " + str(Diff) +" </font>" | 113 myStr += " by " + str(Diff) +" </font>" |
121 | |
122 return myStr | 114 return myStr |
123 | 115 |
124 class herok(std): | 116 class herok(std): |
125 def __init__(self,source=[],mod=0): | 117 def __init__(self,source=[],mod=0): |
126 std.__init__(self,source) | 118 std.__init__(self,source) |
228 self.bodtot=self.bodtot-1 | 220 self.bodtot=self.bodtot-1 |
229 myStr += "] = (<font color='#ff0000'><b>" + str(self.bodtot) + "</b></font>)" | 221 myStr += "] = (<font color='#ff0000'><b>" + str(self.bodtot) + "</b></font>)" |
230 myStr += " <b>Body</b> and " | 222 myStr += " <b>Body</b> and " |
231 myStr += "(<font color='#ff0000'><b>" + str(int(round(self.sum()))) + "</b></font>) <b>Stun</b>" | 223 myStr += "(<font color='#ff0000'><b>" + str(int(round(self.sum()))) + "</b></font>) <b>Stun</b>" |
232 return myStr | 224 return myStr |
225 |