Ignore:
Timestamp:
02/17/08 18:54:27 (4 years ago)
Author:
james
Message:

exciting times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/system.tcl

    r886 r891  
    400400proc bMotionLike {nick { host "" }} { 
    401401        global bMotionInfo mood bMotionSettings 
     402 
     403        bMotion_putloglev 4 * "bMotionLike: $nick $host" 
     404         
     405        if {$bMotionSettings(melMode) == 1} { 
     406                bMotion_putloglev 3 * "like: melmode is on, i'll do anyone" 
     407                return 1 
     408        } 
     409 
    402410        if {$host == ""} { 
    403411                set host [getchanhost $nick] 
     
    405413 
    406414        set host "$nick!$host" 
    407  
    408         if {$bMotionSettings(melMode) == 1} { 
    409                 return 1 
    410         } 
    411415 
    412416        set handle [finduser $host] 
     
    415419                #if i'm stoned enough, i'll sleep with anyone 
    416420                if {$mood(stoned) > 20} { 
     421                        bMotion_putloglev 3 * "like: i'm sufficiently stoned to do anyone" 
    417422                        return 1 
    418423                } 
     
    420425                #if i'm horny enough, i'll sleep with anyone 
    421426                if {$mood(horny) > 10} { 
     427                        bMotion_putloglev 3 * "like: i'm sufficiently horny to do anyone" 
    422428                        return 1 
    423429                } 
    424430                #else they can get lost 
     431                bMotion_putloglev 3 * "like: $host doesn't have a matching handle, so they can go away" 
    425432                return 0 
    426433        } 
    427434 
    428435        #don't like people who aren't my friends 
    429         if {![bMotionIsFriend $nick]} { return 0 } 
     436        if {![bMotionIsFriend $nick]} {  
     437                bMotion_putloglev 3 * "like: I don't do people I'm not friends with" 
     438                return 0  
     439        } 
    430440 
    431441        # we're friends, now get their gender 
    432442        set gender [getuser $handle XTRA gender] 
    433443        if {$gender == ""} { 
     444                bMotion_putloglev 3 * "like: $handle is genderless, so I'll do them. it's only 50/50 anyway. i like those odds!" 
    434445                # they don't have a gender. let's assume we'd have sex with them too 
    435446                return 1 
     
    438449                #they're my gender 
    439450                if {($bMotionInfo(orientation) == "bi") || ($bMotionInfo(orientation) == "gay") || ($bMotionInfo(orientation) == "lesbian")} { 
     451                        bMotion_putloglev 3 * "like: $handle is my gender and I like that" 
    440452                        return 1 
    441453                } 
     454                bMotion_putloglev 3 * "like: $handle is my gender and that's not koo" 
    442455                return 0 
    443456        } 
    444457        #they're not my gender. what now? 
    445458        if {($bMotionInfo(orientation) == "bi") || ($bMotionInfo(orientation) == "straight")} { 
     459                bMotion_putloglev 3 * "like: $handle isn't my gender and that's not koo" 
    446460                return 1 
    447461        } 
    448462        # that only leaves lesbian and gay who won't sleep with the opposite gender 
     463        bMotion_putloglev 3 * "like: nope, default case" 
    449464        return 0 
    450465} 
Note: See TracChangeset for help on using the changeset viewer.