Changeset 74

Show
Ignore:
Timestamp:
04/02/02 09:08:13 (6 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBFoundation/RBFoundation/ContextApply.py

    r66 r74  
    9595            result = apply(self.MethodList[self.ReturnNth], args, kw) 
    9696 
     97            # Normally you would think to just add one to ReturnNth, 
     98            # But by splitting it twice, self.ReturnNth can be -1 as well 
    9799            for method in self.MethodList[self.ReturnNth:][1:]: 
    98100                apply(method, args, kw) 
  • trunk/RBJabber/RBJabber/SubjectObserver/AssociativeObserver.py

    r66 r74  
    5252        for each, value in UpdateDict.iteritems(): 
    5353            for callback in self._associations.get(each, []): 
    54                 callback(subject, each, valuse) 
     54                if callback: callback(subject, each, valuse) 
    5555                 
  • trunk/RBJabber/RBJabber/iqResponse.py

    r66 r74  
    4545 
    4646class iqResponseBase: 
     47    BidValue = 1 
     48     
    4749    def __init__(self, JabberClient): 
    4850        self.JC = weakref.ref(JabberClient) 
     
    5759            if bMatch: bMatch = iq.Elements(namespace=self.nsQuery) and 1 or 0 
    5860            # then we have a match 
    59             return bMatch and 1 or 0 
     61            return bMatch and self.BidValue or 0 
    6062        return 0 
    6163 
     
    8688    def __init__(self, JabberClient, ReplyCallback): 
    8789        iqResponseBase.__init__(self, JabberClient) 
    88         self.ReplyCallback = BindCallable(ReplyCallback) 
     90        self.Update = BindCallable(ReplyCallback) 
    8991 
    90     def Update(self, subject, **UpdateDict): 
    91         # Notify our callback 
    92         apply(self.ReplyCallback, (subject,), UpdateDict) 
    93  
    94  
  • trunk/RBPrivate/Prototypes/brian/jagon.xml

    r73 r74  
    11<?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'> 
    44        <strength     abbrev='Str' value='16' modifier='+3' /> 
    55        <dexterity    abbrev='Dex' value='15' modifier='+2' /> 
     
    1010    </abilities> 
    1111 
    12     <background xmlns='Character.Background' type='Borderlander'> 
     12    <background xmlns='WheelOfTime.Character.Background' type='Borderlander'> 
    1313        <bio>Jagon Tradarigan is descended from a Minor Malkieri noble who was sent off with a  
    1414            retinue and family on quest to find an object that could help defeat the Blight forever.  
     
    2323            Lan and trying to learn about Tar'mon Gaidan and the Dragon Reborn. 
    2424        </bio> 
    25         <heritage xmlns='Character.Background.Heritage'> 
     25        <heritage xmlns='WheelOfTime.Character.Background.Heritage'> 
    2626            <lineage> 
    2727                <bloodline name='Malkieri' contribution='8/8' /> 
     
    5858     
    5959    </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> 
    6363        <name>Jagon Tradarigan</name> 
    6464        <age>22</age> 
     
    6969        <eyecolor>hazel</eyecolor> 
    7070    </misc> 
    71     <skills xmlns='Character.Skills'> 
     71    <skills xmlns='WheelOfTime.Character.Skills'> 
    7272        <skill rank='4' type='background'  keyability='Dex' skillpoints='0' lvlgained='0' name='Move Silently' /> 
    7373        <skill rank='4' type='class'       keyability='Str' skillpoints='4' lvlgained='0' name='Climb' /> 
     
    8282        <skill rank='1' type='cross-class' keyability='Wis' skillpoints='2' lvlgained='0' name='Spot' /> 
    8383    </skills> 
    84     <feats xmlns='Character.Feats'> 
     84    <feats xmlns='WheelOfTime.Character.Feats'> 
    8585        <feat type='background' name='Stealthy' lvlgained='0' benefit='+2 circumstance bonus on Hide/Move Silently checks' /> 
    8686        <feat type='general' name='Ambidexterity' lvlgained='0' benefit='Ignore all off-hand penalties' /> 
     
    8888        <feat type='lost' name='Latent Dreamer' lvlgained='3' benefit='Pre-req for dreamwalking' /> 
    8989    </feats> 
    90     <equipment xmlns='Character.Equipment'> 
     90    <equipment xmlns='WheelOfTime.Character.Equipment'> 
    9191        <item type='background' cost='0' weight='0' name='Horse, Heavy' location='na' qty='1' /> 
    9292        <item type='background' cost='0' weight='0' name='bit and bridle' location='Horse, Heavy' qty='1' /> 
     
    107107    </equipment> 
    108108 
    109     <onepower xmlns='Character.OnePower'> 
    110         <affinities xmlns='Character.OnePower.Affinities'> 
     109    <onepower xmlns='WheelOfTime.Character.OnePower'> 
     110        <affinities xmlns='WheelOfTime.Character.OnePower.Affinities'> 
    111111            <affinity type='normal' lvlgained='0' name='Fire' /> 
    112112        </affinities> 
    113         <talents xmlns='Character.OnePower.Talents'> 
     113        <talents xmlns='WheelOfTime.Character.OnePower.Talents'> 
    114114            <talent type='normal' lvlgained='0' name='Elementalism' /> 
    115115        </talents> 
    116         <spells xmlns='Character.OnePower.Spells'> 
     116        <spells xmlns='WheelOfTime.Character.OnePower.Spells'> 
    117117            <spell name='Create Fire' talent='Elementalism' affinities='Fire' lvlgained='0' lvlrange='0-12' availability='Common' /> 
    118118        </spells> 
    119119    </onepower> 
    120     <classes xmlns='Character.Classes'> 
     120    <classes xmlns='WheelOfTime.Character.Classes'> 
    121121        <class name='Armsman' lvlgained='0' level='1' xp='0' hitdie='d10' baseattackbonus='+1' fortsavebonus='+2' refsavebonus='+1' willsavebonus='+0' defbonus='+2' reputationscore='0' /> 
    122122    </classes> 
    123     <weapons xmlns='Character.Weapons'> 
     123    <weapons xmlns='WheelOfTime.Character.Weapons'> 
    124124        <item name='Sword, Short' totalattackbonus='+2' damage='1d6+3' critical='19-20' range='0' weight='' category='Martial-Melee' size='S' specialproperties='' loc='right'/> 
    125125        <item name='Sword, Short' totalattackbonus='+2' damage='1d6+1' critical='19-20' range='0' weight='' category='Martial-Melee' size='S' specialproperties='' loc='left' /> 
     
    127127        <item name='Dagger'       totalattackbonus='+4' damage='1d4+3' critical='19-20' critmult='2' range='0' weight='' category='Simple-Melee' size='T' specialproperties='' loc='belt'/> 
    128128    </weapons> 
    129     <armor xmlns='Character.Armor'> 
     129    <armor xmlns='WheelOfTime.Character.Armor'> 
    130130        <item name='Leather'      totalbonus='+2' basebonus='+2' maxdexbonus='+6' armorcheck='+0' speed='30' loc='worn'/> 
    131131    </armore> 
    132     <combat xmlns='Character.Combat'> 
     132    <combat xmlns='WheelOfTime.Character.Combat'> 
    133133        <melee totalattackbonus='+4' ability='+3'  formula='Character.classes.class.baseattackbonus+Character.abilities.strength.modifier+Character.misc.size.modifier' /> 
    134134        <ranged totalattackbonus='+3' ability='+2' formula='Character.classes.class.baseattackbonus+Character.abilities.dexterity.modifier+Character.misc.size.modifier' /> 
     
    139139        <defense total='14' base='10' equipbonus='+2' classbonus='+0' abilitymod='+2' sizemod='0' naturalmod='0' miscmod='0' /> 
    140140    </combat> 
    141     <savingrolls xmlns='Character.SavingThrows'> 
     141    <savingrolls xmlns='WheelOfTime.Character.SavingThrows'> 
    142142        <fortitude total='+4' base='+2' ability='+2' keyability='constitution' formula='Character.abilities.constitution.modifier+Character.Classes.class.fortsavebonus' /> 
    143143        <reflex    total='+3' base='+2' ability='+2' keyability='dexterity'    formula='Character.abilities.constitution.modifier+Character.Classes.class.reflexsavebonus' />  
    144144        <will      total='+2' base='+0' ability='+2' keyability='wisdom'       formula='Character.abilities.constitution.modifier+Character.Classes.class.willsavebonus' />  
    145145    </savingrolls> 
    146     <physical xmlns='Character.Physical.Oversimplified'> 
     146    <physical xmlns='WheelOfTime.Character.Physical.Oversimplified'> 
    147147        <height>Tall</height> 
    148148        <girth>Skinny</girth> 
     
    151151    </physical> 
    152152     
    153     <factions xmlns='Character.Factions'> 
     153    <factions xmlns='WheelOfTime.Character.Factions'> 
    154154        <faction who='Shienar'> 
    155155            <modifier value='+10'>For being from an ancient and respected bloodline</modifier>