Changeset 74
- Timestamp:
- 04/02/02 09:08:13 (6 years ago)
- Files:
-
- trunk/RBFoundation/RBFoundation/ContextApply.py (modified) (1 diff)
- trunk/RBJabber/RBJabber/SubjectObserver/AssociativeObserver.py (modified) (1 diff)
- trunk/RBJabber/RBJabber/iqResponse.py (modified) (3 diffs)
- trunk/RBPrivate/Prototypes/brian/jagon.xml (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBFoundation/RBFoundation/ContextApply.py
r66 r74 95 95 result = apply(self.MethodList[self.ReturnNth], args, kw) 96 96 97 # Normally you would think to just add one to ReturnNth, 98 # But by splitting it twice, self.ReturnNth can be -1 as well 97 99 for method in self.MethodList[self.ReturnNth:][1:]: 98 100 apply(method, args, kw) trunk/RBJabber/RBJabber/SubjectObserver/AssociativeObserver.py
r66 r74 52 52 for each, value in UpdateDict.iteritems(): 53 53 for callback in self._associations.get(each, []): 54 callback(subject, each, valuse)54 if callback: callback(subject, each, valuse) 55 55 trunk/RBJabber/RBJabber/iqResponse.py
r66 r74 45 45 46 46 class iqResponseBase: 47 BidValue = 1 48 47 49 def __init__(self, JabberClient): 48 50 self.JC = weakref.ref(JabberClient) … … 57 59 if bMatch: bMatch = iq.Elements(namespace=self.nsQuery) and 1 or 0 58 60 # then we have a match 59 return bMatch and 1or 061 return bMatch and self.BidValue or 0 60 62 return 0 61 63 … … 86 88 def __init__(self, JabberClient, ReplyCallback): 87 89 iqResponseBase.__init__(self, JabberClient) 88 self. ReplyCallback= BindCallable(ReplyCallback)90 self.Update = BindCallable(ReplyCallback) 89 91 90 def Update(self, subject, **UpdateDict):91 # Notify our callback92 apply(self.ReplyCallback, (subject,), UpdateDict)93 94 trunk/RBPrivate/Prototypes/brian/jagon.xml
r73 r74 1 1 <?xml version='1.0'?> 2 <character xmlns=' Character'>3 <abilities xmlns=' Character.Abilities.WheelOfTime'>2 <character xmlns='WheelOfTime.Character'> 3 <abilities xmlns='WheelOfTime.Character.Abilities'> 4 4 <strength abbrev='Str' value='16' modifier='+3' /> 5 5 <dexterity abbrev='Dex' value='15' modifier='+2' /> … … 10 10 </abilities> 11 11 12 <background xmlns=' Character.Background' type='Borderlander'>12 <background xmlns='WheelOfTime.Character.Background' type='Borderlander'> 13 13 <bio>Jagon Tradarigan is descended from a Minor Malkieri noble who was sent off with a 14 14 retinue and family on quest to find an object that could help defeat the Blight forever. … … 23 23 Lan and trying to learn about Tar'mon Gaidan and the Dragon Reborn. 24 24 </bio> 25 <heritage xmlns=' Character.Background.Heritage'>25 <heritage xmlns='WheelOfTime.Character.Background.Heritage'> 26 26 <lineage> 27 27 <bloodline name='Malkieri' contribution='8/8' /> … … 58 58 59 59 </background> 60 <misc xmlns=' Character.Misc'>61 <level xmlns=' Character.Misc.Level'>1</level>62 <money xmlns=' Character.Misc.Money'>11 GM</money>60 <misc xmlns='WheelOfTime.Character.Misc'> 61 <level xmlns='WheelOfTime.Character.Misc.Level'>1</level> 62 <money xmlns='WheelOfTime.Character.Misc.Money'>11 GM</money> 63 63 <name>Jagon Tradarigan</name> 64 64 <age>22</age> … … 69 69 <eyecolor>hazel</eyecolor> 70 70 </misc> 71 <skills xmlns=' Character.Skills'>71 <skills xmlns='WheelOfTime.Character.Skills'> 72 72 <skill rank='4' type='background' keyability='Dex' skillpoints='0' lvlgained='0' name='Move Silently' /> 73 73 <skill rank='4' type='class' keyability='Str' skillpoints='4' lvlgained='0' name='Climb' /> … … 82 82 <skill rank='1' type='cross-class' keyability='Wis' skillpoints='2' lvlgained='0' name='Spot' /> 83 83 </skills> 84 <feats xmlns=' Character.Feats'>84 <feats xmlns='WheelOfTime.Character.Feats'> 85 85 <feat type='background' name='Stealthy' lvlgained='0' benefit='+2 circumstance bonus on Hide/Move Silently checks' /> 86 86 <feat type='general' name='Ambidexterity' lvlgained='0' benefit='Ignore all off-hand penalties' /> … … 88 88 <feat type='lost' name='Latent Dreamer' lvlgained='3' benefit='Pre-req for dreamwalking' /> 89 89 </feats> 90 <equipment xmlns=' Character.Equipment'>90 <equipment xmlns='WheelOfTime.Character.Equipment'> 91 91 <item type='background' cost='0' weight='0' name='Horse, Heavy' location='na' qty='1' /> 92 92 <item type='background' cost='0' weight='0' name='bit and bridle' location='Horse, Heavy' qty='1' /> … … 107 107 </equipment> 108 108 109 <onepower xmlns=' Character.OnePower'>110 <affinities xmlns=' Character.OnePower.Affinities'>109 <onepower xmlns='WheelOfTime.Character.OnePower'> 110 <affinities xmlns='WheelOfTime.Character.OnePower.Affinities'> 111 111 <affinity type='normal' lvlgained='0' name='Fire' /> 112 112 </affinities> 113 <talents xmlns=' Character.OnePower.Talents'>113 <talents xmlns='WheelOfTime.Character.OnePower.Talents'> 114 114 <talent type='normal' lvlgained='0' name='Elementalism' /> 115 115 </talents> 116 <spells xmlns=' Character.OnePower.Spells'>116 <spells xmlns='WheelOfTime.Character.OnePower.Spells'> 117 117 <spell name='Create Fire' talent='Elementalism' affinities='Fire' lvlgained='0' lvlrange='0-12' availability='Common' /> 118 118 </spells> 119 119 </onepower> 120 <classes xmlns=' Character.Classes'>120 <classes xmlns='WheelOfTime.Character.Classes'> 121 121 <class name='Armsman' lvlgained='0' level='1' xp='0' hitdie='d10' baseattackbonus='+1' fortsavebonus='+2' refsavebonus='+1' willsavebonus='+0' defbonus='+2' reputationscore='0' /> 122 122 </classes> 123 <weapons xmlns=' Character.Weapons'>123 <weapons xmlns='WheelOfTime.Character.Weapons'> 124 124 <item name='Sword, Short' totalattackbonus='+2' damage='1d6+3' critical='19-20' range='0' weight='' category='Martial-Melee' size='S' specialproperties='' loc='right'/> 125 125 <item name='Sword, Short' totalattackbonus='+2' damage='1d6+1' critical='19-20' range='0' weight='' category='Martial-Melee' size='S' specialproperties='' loc='left' /> … … 127 127 <item name='Dagger' totalattackbonus='+4' damage='1d4+3' critical='19-20' critmult='2' range='0' weight='' category='Simple-Melee' size='T' specialproperties='' loc='belt'/> 128 128 </weapons> 129 <armor xmlns=' Character.Armor'>129 <armor xmlns='WheelOfTime.Character.Armor'> 130 130 <item name='Leather' totalbonus='+2' basebonus='+2' maxdexbonus='+6' armorcheck='+0' speed='30' loc='worn'/> 131 131 </armore> 132 <combat xmlns=' Character.Combat'>132 <combat xmlns='WheelOfTime.Character.Combat'> 133 133 <melee totalattackbonus='+4' ability='+3' formula='Character.classes.class.baseattackbonus+Character.abilities.strength.modifier+Character.misc.size.modifier' /> 134 134 <ranged totalattackbonus='+3' ability='+2' formula='Character.classes.class.baseattackbonus+Character.abilities.dexterity.modifier+Character.misc.size.modifier' /> … … 139 139 <defense total='14' base='10' equipbonus='+2' classbonus='+0' abilitymod='+2' sizemod='0' naturalmod='0' miscmod='0' /> 140 140 </combat> 141 <savingrolls xmlns=' Character.SavingThrows'>141 <savingrolls xmlns='WheelOfTime.Character.SavingThrows'> 142 142 <fortitude total='+4' base='+2' ability='+2' keyability='constitution' formula='Character.abilities.constitution.modifier+Character.Classes.class.fortsavebonus' /> 143 143 <reflex total='+3' base='+2' ability='+2' keyability='dexterity' formula='Character.abilities.constitution.modifier+Character.Classes.class.reflexsavebonus' /> 144 144 <will total='+2' base='+0' ability='+2' keyability='wisdom' formula='Character.abilities.constitution.modifier+Character.Classes.class.willsavebonus' /> 145 145 </savingrolls> 146 <physical xmlns=' Character.Physical.Oversimplified'>146 <physical xmlns='WheelOfTime.Character.Physical.Oversimplified'> 147 147 <height>Tall</height> 148 148 <girth>Skinny</girth> … … 151 151 </physical> 152 152 153 <factions xmlns=' Character.Factions'>153 <factions xmlns='WheelOfTime.Character.Factions'> 154 154 <faction who='Shienar'> 155 155 <modifier value='+10'>For being from an ancient and respected bloodline</modifier>
