Changeset 1032


Ignore:
Timestamp:
09/11/09 06:26:45 (2 years ago)
Author:
james
Message:

support bothmixin option too

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/abstract.tcl

    r1031 r1032  
    7272set BMOTION_MIXIN_REVERSE 1 
    7373set BMOTION_MIXIN_NONE 2 
     74set BMOTION_MIXIN_BOTH 3 
    7475 
    7576if { [bMotion_setting_get "abstractMaxAge"] != "" } { 
     
    400401                        # mix-in the gender one with the vanilla one 
    401402                                bMotion_putloglev 1 * "mixing in $bMotionInfo(gender) version of $abstract" 
    402                                 set final_version $final_version [bMotion_abstract_all "${abstract}_$bMotionInfo(gender)"]] 
     403                                set final_version [concat $final_version [bMotion_abstract_all "${abstract}_$bMotionInfo(gender)"]] 
    403404                        } else { 
    404405                                set final_version [bMotion_abstract_all $abstract] 
     
    421422                2 { 
    422423                        # noop, we did it already before the switch 
     424                } 
     425                3 { 
     426                        if [bMotion_abstract_exists "${abstract}_male"] { 
     427                                bMotion_putloglev 1 * "mixing in male version of $abstract" 
     428                                set final_version [concat $final_version [bMotion_abstract_all "${abstract}_male"]] 
     429                        } 
     430                        if [bMotion_abstract_exists "${abstract}_female"] { 
     431                                bMotion_putloglev 1 * "mixing in female version of $abstract" 
     432                                set final_version [concat $final_version [bMotion_abstract_all "${abstract}_female"]] 
     433                        } 
    423434                } 
    424435                default { 
  • trunk/modules/abstracts/en/abstracts.tcl

    r1029 r1032  
    11531153bMotion_abstract_register "ranjoins" { 
    11541154        "are you here to fumigate the moose head?" 
    1155         "are you here to fumigate the moose %VAR{bodypart}?" 
     1155        "are you here to fumigate the moose %VAR{bodypart:bothmixin}?" 
    11561156        "hey %%" 
    11571157        "hi %%" 
     
    11721172        "welcome to our next contestant, %%!" 
    11731173        "wasn't expecting %%!%|/hides" 
    1174         "hey %% %VAR{food}%VAR{bodypart}" 
     1174        "hey %% %VAR{food}%VAR{bodypart:bothmixin}" 
    11751175} 
    11761176 
     
    35653565        "yarr%|%VAR{randomZimness}" 
    35663566        "%VAR{lols} %VAR{smiles} %colen%|/%VAR{smacks} %himherself in the %VAR{bodypart}" 
    3567         "no i spent my time contemplating how i %VAR{smacked} %ruser in the %VAR{bodypart}" 
     3567        "no i spent my time contemplating how i %VAR{smacked} %ruser in the %VAR{bodypart:nomixin}" 
    35683568        "yes but i wish i'd gone %VAR{dNouns}-%VAR{dVerbs}ing %VAR{smiles}" 
    35693569} 
     
    35773577        "yahyahayayahayahahayh%colen" 
    35783578        "indeed i do%|%VAR{randomZimness}" 
    3579         "yarr or i would be %VAR{smacked} with %rusers %VAR{bodypart}!" 
     3579        "yarr or i would be %VAR{smacked} with %rusers %VAR{bodypart:nomixin}!" 
    35803580        "omg yes" 
    35813581        "any chance i get %VAR{rarrs}%|%VAR{randomGirness}" 
     
    40404040        "%VAR{sounds} %VAR{sounds} %VAR{sounds}" 
    40414041        "ode to %ruser" 
    4042         "shake your %VAR{bodypart}" 
     4042        "shake your %VAR{bodypart:bothmixin}" 
    40434043        "the Doom Song" 
    40444044        "God Save the Queen" 
     
    42674267        "Day %NUMBER{500} %VAR{bb_time}: Big Brother has locked %ruser in the %VAR{bb_places} for %VAR{bb_naughty}" 
    42684268        "Day %NUMBER{500} %VAR{bb_time}: Big Brother has set the housemates a %VAR{bb_task} task" 
    4269         "Day %NUMBER{500} %VAR{bb_time}: %ruser is in the %VAR{bb_places}. The other housemates are in the %VAR{bb_places}, talking about %OWNER{%ruser{prev}} %VAR{bodypart}" 
     4269        "Day %NUMBER{500} %VAR{bb_time}: %ruser is in the %VAR{bb_places}. The other housemates are in the %VAR{bb_places}, talking about %OWNER{%ruser{prev}} %VAR{bodypart:nomixin}" 
    42704270        "Day %NUMBER{500} %VAR{bb_time}: %ruser is in the diary room, talking to Big Brother about %VAR{bb_diary}" 
    42714271        "Day %NUMBER{500} %VAR{bb_time}: %ruser has hidden %OWNER{%ruser} %VAR{bb_posession} in %VAR{bb_hide}" 
     
    43164316 
    43174317bMotion_abstract_register "bb_diary" { 
    4318         "their %VAR{colours} %VAR{bodypart}" 
    4319         "their %VAR{bodypart}" 
     4318        "their %VAR{colours} %VAR{bodypart:nomixin}" 
     4319        "their %VAR{bodypart:nomixin}" 
    43204320        "%ruser" 
    43214321        "how much they like the %VAR{bb_places}" 
  • trunk/modules/abstracts/en/randomstuff.tcl

    r1031 r1032  
    562562        "r" 
    563563        "*schwing*" 
    564         "oh really well what do you think, talking %VAR{bodypart}?" 
     564        "oh really well what do you think, talking %VAR{bodypart:bothmixin}?" 
    565565        "oh yeah? fuck your theory." 
    566566        "PUT YOUR KNICKERS ON AND GO GET ME A CUP OF TEA" 
  • trunk/plugins/en/output_VAR.tcl

    r1031 r1032  
    2424proc bMotion_plugin_output_VAR { channel line } { 
    2525        bMotion_putloglev 4 * "bMotion_plugin_output_VAR $channel $line" 
    26         global BMOTION_MIXIN_NONE BMOTION_MIXIN_REVERSE BMOTION_MIXIN_DEFAULT 
     26        global BMOTION_MIXIN_NONE BMOTION_MIXIN_REVERSE BMOTION_MIXIN_DEFAULT BMOTION_MIXIN_BOTH 
    2727 
    2828        set line [string map { "%noun" "%VAR{sillyThings}" } $line] 
     
    5656                        bMotion_putloglev 1 * "mixin type for $abstract is none" 
    5757                        set mixin_type $BMOTION_MIXIN_NONE 
     58                } elseif {[lsearch $options_list "bothmixin"] > -1} { 
     59                        bMotion_putloglev 1 * "mixin type for $abstract is both" 
     60                        set mixin_type $BMOTION_MIXIN_BOTH 
    5861                } 
    5962 
     
    7477                        set replacement $newText 
    7578                } 
    76  
    7779 
    7880                if {[lsearch $options_list "strip"] == -1} { 
     
    118120                                } 
    119121                                "plural" { 
     122                                        bMotion_putloglev 1 * "pluralising $replacement" 
    120123                                        set replacement [bMotionMakePlural $replacement] 
    121124                                } 
Note: See TracChangeset for help on using the changeset viewer.